SDA2 Trend Trading system is nothing but a trend trading system made using Standard Deviation(SD) and ATR(2) – Average True range. This is just the variation of the AFBI Channel Trading system with a better performance and backtesting results.
The Above chart is for Educational Purpose only not for any kind of Buy or Sell Recommendation in Nifty
Channel has been Built using the following formula
And the Colour of the Candlestick will be toggled between Green and Red each time when it breaks the Upper Channel or the Lower Channel.
1)Candlestick turn green if the Candle stick breaks and closes above the Upper Channel which indicates the buy signal
2)Candlestick turn red if the Candle stick breaks and closes above the Lower Channel which indicates the sell signal
3)The stop loss for the Buy Signal is the lower Channel and the stop loss for the Sell Signal is the Upper Channel
The following code is use to toggle the Candlestick colour between Green/Red
Further Buy or Sell Signals, Scanning Functionality and Exploration has been added to the AFL code as usual