For my strategy I want to check that the MACD lines stay below the zero line between the current bar (yellow arrow) and the previous swing low (orange arrow).
I'm able to use the Swing indicator to count the number of bars the previous swing low occurred but the number of bars will vary depending on when the trade is taken.
I was therefore wondering what the best way would be to retrieve the values, is it possible to store the values in a series then use the number of bars between the yellow and orange arrows to call back the data of each bar against the series to then check if they meet the conditions?
Any help you can provide is appreciated.
Thanks,
Neil
Comment