OPEN-SOURCE SCRIPT
Updated

3 EMAs: Daily fixed and custom timeframe (cajole)

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.

Disclaimer