About Vertical Lines?

 
Hi, i want to draw a vertical line in next days or week Bar.
How could i do so for example today date is = 2009.03.26
and when i want to draw a vertical line i'm writing this:
ObjectCreate("line1",OBJ_VLINE,0,Time[0],0);
it works fine, BUT when i want to draw a vertical line at 2009.03.27 (tomorrow) it doesn't work;
ObjectCreate("line1",OBJ_VLINE,0,Time[-5],0);
i did Time[-5] because i want to choose the next 5 Bar but it doesn't works.
Any ideas guys?
Thank you
 
haitham_elnemr:
Hi, i want to draw a vertical line in next days or week Bar.
How could i do so for example today date is = 2009.03.26
and when i want to draw a vertical line i'm writing this:
ObjectCreate("line1",OBJ_VLINE,0,Time[0],0);
it works fine, BUT when i want to draw a vertical line at 2009.03.27 (tomorrow) it doesn't work;
ObjectCreate("line1",OBJ_VLINE,0,Time[-5],0);
i did Time[-5] because i want to choose the next 5 Bar but it doesn't works.
Any ideas guys?
Thank you

why would you want to draw a line on a bar that does not exist?

 
23510 wrote >>

why would you want to draw a line on a bar that does not exist?

because i predection that something well happen at that bar.

any help??

 
any ideas guys ?
 
Hi Friends
One of the ways:
int ali.Shift = 5 ;
int ali.VTime = iTime ( Symbol (), Period (), 0 ) + ali.Shift * Period () * 60 ;
Best regards
Ais


 
Thank you veru much Ais :)
 

Welcome u salam galaikum

Reason: