OPEN-SOURCE SCRIPT

3 EMAs: Daily fixed and custom timeframe (cajole)

Updated
Simply adds 3 exponential moving averages (EMAs) to the chart. Two are fixed to the daily scale (e.g., 200 and 50 days) and one adjusts to the chart's scale (e.g. 8 bars).

To use the 8-EMA as a trail stop, you can enable labels on the plot or on the price axis.
Release Notes
Add option to allow repainting.
Release Notes
Add option to move labels to the right. Add option to disable daily EMAs.
Release Notes
Label right offset changed to variable.
Release Notes
Now detects end of session immediately at the closing time.
Chart patternsExponential Moving Average (EMA)movingtrailingstop

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer