Ho fatto una prova modificando la stampa dei dati nel FUTURO, invece che nel passato (vedi la foto con 1 barra di distanza):
if ShowLong then
MySL1=MyPrice-(PointTarget*pipsize)
for i=1 to PointRR
MyPointTarget=PointTarget*i
MyTP=MyPrice+(MyPointTarget*pipsize)
DRAWSEGMENT(BarIndex+LineExt,MyTP, BarIndex, MyTP) COLOURED(0,153,0)
drawtext("+#MyPointTarget#",barindex+LineExt+1,MyTP-(1*pipsize),sansserif,standard,10)
next
DRAWSEGMENT(BarIndex+LineExt,MySL1, BarIndex, MySL1) COLOURED(255,0,10)
drawtext("-#PointTarget#",barindex+LineExt+1,MySL1-(1*pipsize),sansserif,standard,10)
DRAWSEGMENT(BarIndex+LineExt-2,MyPrice, BarIndex, MyPrice) COLOURED(0,0,0)
drawtext("#MyEntryPrice#",barindex + LineExt+1,MyPrice-(1*pipsize),sansserif,standard,10)
endif
if ShowShort then
MySL1=MyPrice+(PointTarget*pipsize)
for i=1 to PointRR
MyPointTarget=PointTarget*i
MyTP=MyPrice-(MyPointTarget*pipsize)
DRAWSEGMENT(BarIndex+LineExt,MyTP, BarIndex, MyTP) COLOURED(0,153,0)
drawtext("-#MyPointTarget#",barindex+LineExt+1,MyTP-(1*pipsize),sansserif,standard,10)
next
DRAWSEGMENT(BarIndex+LineExt,MySL1, BarIndex, MySL1) COLOURED(255,0,10)
drawtext("+#PointTarget#",barindex+LineExt+1,MySL1-(1*pipsize),sansserif,standard,10)
DRAWSEGMENT(BarIndex+LineExt-2,MyPrice, BarIndex, MyPrice) COLOURED(0,0,0)
drawtext("#MyEntryPrice#",barindex+LineExt+1,MyPrice-(1*pipsize),sansserif,standard,10)
endif
mi è sembrato più leggibile.
Grazie per il tuo lavoro e per averlo condiviso 🙂