My apologies if this topic has already been addressed.
I am currently working on a strategy where I am entering at the close of the candle which crosses the 2 StDev BollingerBand (either at the upper or lower) and then exiting once the price closes across the center line of the BollingerBand. This part is working perfectly for me. What I am struggling with is my intended stop. I am wanting to have the the strategy exit if the price returns and closes past the close of the bar which signaled me to enter... if that makes any sense. So, lets say the upper BollingerBand is at 100, the price closes at 100.2, it then returns to 99.8, the center line is at 99.5 so it doesn't exit, and then the price goes up again and closes at 101. I would want my strategy to exit at this point and then wait to try to enter again once the price crosses below the BollingerBand center line.
Is there anyone who could help me with this? I recognize I would need to probably start a counter once the price entered so that I could tell the strategy how far to look back but other than that I am stuck.
Any help would be appreciated.
Comment