A small indicator is use to show a trend line of across the chart representing the last price
Code: Select all
If (ShowLastPriceLine = true) then begin
TL_SetEnd_S(TL_LastPrice ,date,time_s[2],close);
TL_setbegin_S(TL_Lastprice,date,time_s[2],close);
end
Work fine for scale 1H and less. Higher scale, the line start at the border of the chart
Snap picture will explain better than me... Look at the left beginning of the blue trend line. I want it to start 2 bars ago for all scales. This little problem will be present for scale above 1 H
15 minute chart
http://screenpresso.com/=Fo2ld
2H chart
http://screenpresso.com/=JIptg
Martin