BUY 1 share when Symbol(INDICES_NIFTY 50, Close(0) crosses above Opening Range(High,hour) ) at hour candle interval using candlestick chart. Enter trade between 09:00 to 15:00
As per this strategy my aim is to enter when the latest close crosses above the opening range high of one hour this is working in some cases to my expectation but there are a few cases where the trade isnt being taken please see the screenshot below for 5th Jan 2021
the opening range high for the first one hour was 14114.5 so a close in any subsequent candles with a high above 14114.5 should trigger an entry signal
the very next candle shows a close of 14119 as you can see in screenshot below and as matter of fact there are multiple subsequent candles where the close is above 14114.5 no entry signal is provided in any of these
Please check the dates for 1st Feb and 5th Jan, these are among the dates where there are closes above the opening range but the trade isnt being taken
@Krishnendu It has been resolved for some dates, there are other dates within the back-test where this issue still occurs. For this strategy please see 1st Feb, there is an opening range breakout on 1st Feb.
Entry Signal is not generated for the dynamic contract.
Hi, Im still facing this issue, please check 1st Feb data for the same strategy there is an opening range breakout on Feb 1st and no entry signal has been taken
For a crossover to be TRUE in the current candle, the condition needs to FALSE in the previous candle. Example
But there are no candles in between the Opening range candle and the next candle that was lower than the opening range High so this cannot be verified as a crossover.
In order to enter in this trade, you need to write, Close(0) higher than Opening Range(High,hour) ) and Low(0) lower than Opening Range(High,hour) )
But if the next candle gaps up this will not be true. Then one condition can be validated
We have made several updates in the past week, one being the crossover logic, which I will update here. But the issue you are facing is because of data. Team is in touch with the data vendor and trying to get this expedited