Dear friends I need help with coding the below strategy:
When the day opens I need to make note of the first 60-min candle’s high and low after it closes. BUY position will be initiated once a candle/ price crosses the high of the 60-min candle similarly a SELL position will be opened if the price goes below the low of this 60-min candle.
I also need to make a note of the candle that is crossing the high / low as the case may be. The Stoploss will be defined by the low of the candle crossing the 60-min candle in case of a BUY scenario and similarly high in case of a sell scenario.