I have an intraday strategy which involves comparing High and low of first 6 candles from opening (say 9.30 am to 10.00 am) with 5 EMA
I want to assign
High of today’s first 6 candles to Variable A.
Low of today’s first 6 candles to Variable B.
Then I would compare 5 EMA value with Variable A & B
If 5 EMA is higher than A, Buy signal should be generated.
Or
If 5 EMA is lower than B, Short signal should be generated.
I guess Trade script doesn’t provide time based coding, could any one please recommend a work around for this strategy.