OPEN-SOURCE SCRIPT
Aggiornato

Statistical Trailing Stop [LuxAlgo]

20 784
The Statistical Trailing Stop tool offers traders a way to lock in profits in trending markets with four statistical levels based on the log-normal distribution of volatility.

The indicator also features a dashboard with statistics of all detected signals.

🔶 USAGE

istantanea

The tool works out of the box, traders can adjust the data used with two parameters: data & distribution length.

By default, the tool takes volatility measures of groups of 10 candles, and statistical measures of the last 100 of these groups then traders can adjust the base level to use as trailing, the larger the level, the more resistant the tool will be to moves against the trend.

🔹 Base Levels

istantanea

Traders can choose up to 4 different levels of trailing, all based on the statistical distribution of volatility.

As we can see in the chart above, each higher level is more resistant to market movements, so level 0 is the most reactive and level 3 the least.

It is up to the trader to determine the best level for each underlying, time frame and market conditions.

🔹 Dashboard

istantanea

The tool provides a dashboard with the statistics of all trades, making it very easy to assess the performance of the parameters used for any given market.

As we can see on the chart, all Daily BTC signals with default parameters but different base levels, level 2 is the best performing of all four, giving a positive expectation of $2435 per trade, taking into account all long and short trades.

Of note are the long trades with a win rate of 76.47% and a risk-to-reward of 3.34, giving a positive expectation of $4839 per trade, with winners having an average duration of 210 days and losers 32 days.

This, compared to short trades with negative expectation, speaks to the uptrend bias of this particular market.

🔶 SETTINGS

  • Data Length: Select how many bars to use per data point
  • Distribution Length: Select how many data points the distribution will have
  • Base Level: Choose between 4 different trailing levels


🔹 Dashboard

  • Show Statistics: Enable/disable dashboard
  • Position: Select dashboard position
  • Size: Select dashboard size
Note di rilascio
- fixed wrong base 0 value

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.