Bollinger Band With Conditions


I am planning to code Bollinger band with few condition using for loop. I am have band value let's sat 2ATR(30) days and now i want to keep this value constant till the time close is not above 2ATR(30). How should i put a condition in for loop that it'll remain constant till close is above this value.

For what it is worth Bollinger Bands use standard deviation, not ATR. Consider posting the code that you came up with this far. How to ask a good question

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.