How to plot time for a particular event?

desiben

desiben

New member
VIP
I am trying to plot the time when a particular event has happened.

For ex: Lets say I have price crossing over MA9. I want to track the time whenever this has happened and draw an AddVerticalLine.

I am looking to plot a Vertical line wherever this happened in the chart.

Can someone please help?

The reason I want this is because, I am creating a Dynamic watchlist based on a scanner (when price crosses MA9). If i have this I can sort it based on what came first in my Watchlist.
 
desiben

desiben

New member
VIP
I know how to addverticalline. I need to capture the time for a specific event. Thats the question i have
 
rad14733

rad14733

Well-known member
VIP
I know how to addverticalline. I need to capture the time for a specific event. Thats the question i have
You can only capture the time of the specific trade being processed and that can be fetched using GetTime...
 
S

Stasbz

New member
Id like to get price of open at 2:00 am.
how to code it?
 

Similar threads

Top