Simply going long and short based on Gaussian channel was not consistent enough so I also included an filter. We only go long if Index is greater than the last candle (more money is flowing in than out). The opposite for short. Also employed function (white background) to avoid sideways market.
A 2% stop loss seems to be the most balanced for this strategy but can can altered in the settngs.
Also included a take-profit function but it seems this is best not implemented for this strategy, at least in the case of XBT/USD.
A derivative of The is also plotted on the chart simply to compare the current candle with the last candle visually.
- Green = Long
- Red = Short
- White = No Trade
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.