how to draw V_Line on the chart according to the specific time

 

how to draw V_Line on the chart according to the specific time

For instance, I need to draw a vertical line on the chart when time is 6am, 6:30am, 7am,7:30am, ...12pm, 12:30pm


thanks

 
zeeyeetee:

how to draw V_Line on the chart according to the specific time

For instance, I need to draw a vertical line on the chart when time is 6am, 6:30am, 7am,7:30am, ...12pm, 12:30pm


thanks

 ObjectCreate(obname,OBJ_VLINE,0,time,0);

obviously give the line a name and the time.

Look in the documentation.

 
Keith Watford:

obviously give the line a name and the time.

Look in the documentation

thanks Keith Watford

how to specifically draw VLine according to Date&Time,like

2018 05 05, 6:00 

2018 05 05, 6:30

2018 05 05, 7:00

2018 05 05, 7:30

...

2018 05 05, 14:00

2018 05 05, 14:30

 

Look in the documentation.

It's all there.

If you are not sure about how to set the time parameter, look up datetime and all is explained.

 
Keith Watford:

Look in the documentation.

It's all there.

If you are not sure about how to set the time parameter, look up datetime and all is explained.

thanks Watford,

I found out the documents, it's explained very clearly. 

thanks again