OPEN-SOURCE SCRIPT

SSL Channel BF

Aggiornato
SSL Channel Close is a great all-rounder based on 2 Simple Moving Averages, one of recent Highs, one of recent Lows.

The calculation prints a channel on the chart consisting of 2 lines.
This strategy gives a Long signal when price closes above the top of these 2 lines and a Short signal when it closes below the bottom.

Trading in choppy sideways markets can compound losses so we avoid that here by using recent ATR to determine relative volatility and refrain from trading when the background is White.

We use a basic 3% stop loss.

Charted on XBT/USD Bitmex Daily chart.

INSTRUCTIONS
  • Green = long
  • Red = short
  • White Background= No trade


The way I have set this strategy up is that if we get stopped out but we are still in a green or red background, we re-enter. Closing the trade only occurs on an opposing signal or if we get stopped out.
Note di rilascio
Removed ROC function, changed SL to 1% fixed and enabled "recalc after every order".
Note di rilascio
After realising that "recalc after order" seems to enter at the best possible point and appears inaccurate, rolling back to previous version. Re-added ROC, SL back to 3%
Note di rilascio
Included commissions for taker positions in Bitmex and changed the ROC settings.
Note di rilascio
Small changes
Simple Moving Average (SMA)SSLsslchannel

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità