ugh i have been working on this for days and i cant get my head around it..
i want to place a vertical line @ a specific time.. ok -- easy enough-- oninit/Drawline();
But how do i get the ea to run from that point on the chart (where the first line is drawn) up till TimeCurrent();? do i use a for loop in the oninit area-- bringing me to the current time and then have the ontick take over?
for(datetime i=start;i<TimeCurrent();i++)
Or
Do i use a for loop in the ontick area with a start date that == my start time and date?
and
will the for loop run every time a new tick comes in and or once a new candle comes in ? How do i only make the for lope run through once then let tick take over with a CheckSignal() function?
i want to place a vertical line @ a specific time.. ok -- easy enough-- oninit/Drawline();
But how do i get the ea to run from that point on the chart (where the first line is drawn) up till TimeCurrent();? do i use a for loop in the oninit area-- bringing me to the current time and then have the ontick take over?
for(datetime i=start;i<TimeCurrent();i++)
Or
Do i use a for loop in the ontick area with a start date that == my start time and date?
and
will the for loop run every time a new tick comes in and or once a new candle comes in ? How do i only make the for lope run through once then let tick take over with a CheckSignal() function?