3 EMAs: Daily fixed and custom timeframe (cajole)

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.

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


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?