The equation is:
[ (Upper Bollinger Band - Lower Bollinger Band) / (Upper Bollinger Band) ] * 100 >= 20
I do not want any trades to be taken unless the above is true
This is the code I tried to implement (unsuccessfully):
((((Bollinger(2, 20).Upper[1]) - (Bollinger(2, 20).Lower[1])) / (Bollinger(2, 20).Upper[1])) * 100 >= 20)
I have multiple entries on the strategy, and when I add this condition, the entry does not open positions.
Please let me know what I need to modify to get the condition to work
Comment