Im running into 2 problems:
1. When i place the study on the chart - it automatically goes back and fills in all the previous bars.. Id like to just start from where i pulled the data playback to.
2. Though it should be placing a line on each bar-- it doesnt..
This was done using TrendLines... Cause i cant find a way to code a TimeLine..
Code: Select all
vars:prev_bar_num(0.0);
if(CurrentBar > prev_bar_num) then begin
prev_bar_num = CurrentBar;
if open > close then
TL_New(d,t,0,d,t,9000);
if open < close then
TL_New(d,t,0,d,t,9000);
end;