Hello
I need your help. I would like to draw a segment with the price at 9am (1min/5min/15min and 30min timeframe).
If I am using the following indicator script I get the segment with a future (ex. DAX or NQ) but not with a stock (ex. SAP or Apple).
What is wrong in my script ?
Thanks for your help.
DefParam CalculateOnLastBars = 1400 // one day (23h) when using 1min timeframe
IF time = 090000 then
backgroundcolor (0,255,255,70)
DRAWSEGMENT(barindex+1, close, barindex+120, close) coloured(255,255,0,255)
//drawtext(" openprice9am [#DAXhh#]",barindex-30,Daxhh,sansserif,bold,18)
endif
return
Are Apple and SAP open at 090000?
SAP is open at 09am(but 9am is exactly the opening minute). It is a Dax Stock.
For US Stocks like AAPL i am using 153000.
TIME is the time a candle closes, OPENTIME is when it opens but is not supported by ProScreener.
At 090000 or 153000 there’s no candle closed yet, try adding 1 minute.