OPEN-SOURCE SCRIPT

EMA 08:00

Updated
// Some traders prefer to start the charts at 8am in the morning.
// This chart setting is not possible as of today, but the following script lets you calculate ema for a defined time range.
// Right now it is set to include bars from 08:00 to 23:59, meaning that early pre market 04:00 to 07:59 is left out.
Release Notes
picture cleanup
Release Notes
added timeframe input so that ema can be bound to timeframe independently from chart timeframe; added comments
Release Notes
Changed the use of security() so that htf ema will now show a step line instead of a regular line. Changed the default time range for session of interest to 08:00 - 19:59
EMASMoving Averagespremarket

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?

Disclaimer