As every trader knows, the Bollinger Band is made up of an average plus/minus the standard deviation. This is a strong concept on which many variations can be made. This variation uses an exponential average based on the “High” plus one standard deviation based also on the “High” and an exponential average based on the “Low” minus one standard deviation also based on the “Low”.
In this variation, the trading system works better as a “Countertrend System” than as a “Trend Following System”. The two parameters, “PeriodHigh” and “PeriodLow”, can be optimized for use in certain stocks, indices, Forex, …
DefParam CumulateOrders=False
SCH=ExponentialAverage[PeriodHigh](High)+Std[PeriodHigh](High)
SCL=ExponentialAverage[PeriodLow](Low)-Std[PeriodLow](Low)
If High > SCH then
SellShort 1 contract at Market
EndIf
If Low < SCL then
Buy 1 contract at Market
EndIf