OPEN-SOURCE SCRIPT

Historical Average

This indicator calculates the sum of all past candles for each new candle.

For the second candle of the chart, the indicator shows the average of the first two candles. For the 10th candle, it's the average of the last ten candles.
Simple Moving Averages (SMAa) calculate the average of a specific timeframe (e.g. SMA200 for the last 200 candles). The historical moving average is an SMA 2 at the second candle, an SMA3 for the third candle, an SMA10 for the tenth, an SMA200 for the 200th candle etc.

Settings:

  • You can set the multiplier to move the Historical Moving Average along the price axis.
  • You can show two Historical Moving Averages with different multipliers.
  • You can add fibonacci multipliers to the Historical Moving Average.


This indicator works best on charts with a lot of historical data.

Recommended charts:
  • INDEX:BTCUSD
  • BLX


But you can use it e.g. on DJI or any other chart as well.
Bitcoin (Cryptocurrency)moving_averageMoving Averagessma

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


I had to lose 1400 BTC first to find out how easy crypto can make you financially free.

Check out my website to see more of my work.
Aussi sur:

Clause de non-responsabilité