I am trying to build a strategy where an entry is triggered by two separate but sequential events (lets say a moving average cross and a positive change in RSI) regardless of the time duration between these two events. I know how to lookback from a moving average cross to see if a desired change in RSI occurred 10 bars ago. But how can I look for the first moving average cross after the desired change in RSI, regardless of whether it happened 10, 20 or 30 bars ago.
For example I want to go long when RSI(9) goes above 45 and subsequently EMA(10) crosses above SMA(30) regardless of bars interval and time interval between these two events.
Do you think it is possible to do this in Ninja Trader? Any help will be appreciated.
Comment