OPEN-SOURCE SCRIPT

Day Trader's Anchored Moving Averages [wbburgin]

Mis à jour
For day traders, establishing a trend at the start of the day is critically important for setting targets and entering positions. This can be difficult when traditional moving averages lag from previous days, causing late entry and/or incorrect trend interpretation.

The Day Trader's Anchored MA indicator plots three dynamic moving averages which restart on each new period (session [daily] or monthly - more coming soon). This eliminates the lag in traditional moving averages while better identifying the trend, as the moving averages essentially 'build up' their lengths as the day progresses, until they reach your chosen maximum length.

This means that these anchored moving averages are
  1. Quicker to identify the start-of-day trend, as markets tend to establish and then follow one trend throughout the day;
  2. Dynamically increasing throughout the day (to your specifications)
  3. Completely independent from previous days


Quick usage note: make sure that your moving average length is less than the number of bars in the period, or it won't reach the maximum length you specified.

TL;DR: Moving average that resets every day and does not lag. Inspired by the VWAP.
Notes de version
Changed spacing of name slightly.
Notes de version
Removed unnecessary code.
daytradingmoving_averageMoving AveragesTrend Analysis

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 ?


FAQ: I am gradually phasing out my Patreon because of the time it takes to maintain.

BTC: 35PdMMMXFCvPjXKwn8wsRFNwMEPgStaKUJ

Test my strategies on CryptoRobotics: cryptorobotics.co/?trade=f23b09

Clause de non-responsabilité