What I am looking to do essentially is to create an 'occurs within' condition that allows me to have two or more conditions being true within period range. For example:
20/50 EMA cross and 10/50 EMA cross occurring within 5 periods.
So, I need to be able to assign something to signal if both have occurred within 5 periods. So far, I can only get it to signal when both are true during the same period.
Lastly, is there a quick function that allows me to visualize the indicators used within the strategy on the chart?
Thank you much!
Comment