For example, if i am using ADX, it is part of the strategy to have ADX below 20 for 15 bars in a row, and if after 15 consecutive times it breaks above 20, the strategy will buy or sell.
I have used loops and some other functions but did not have a working code.
I will appreciate any help in this regard.
Thanks
Comment