PROTECTED SOURCE SCRIPT

Instant Start EMA Ribbon

23
Have you noticed that EMAs on Tradingview start to appear on chart after the number of candles required by the EMA has fulfilled?
Example, 200 EMA shows up only when 200 candles have been printed on the canvas irrespective of the timeframe.

You might also have noticed that in some other charting software, the EMAs start from the very first candle of the instrument/asset class, a good example is a newly listed stock. And then the EMA automatically aligns itself once the amount of candles required by the EMA is fulfilled.

So if you want similar behavior of EMAs on Tradingview, you can use this "Instant Start EMA Ribbon" specifically coded in Pinescript to exactly and accurately mimic the behavior of EMAs like the other software. You can check that EMAs with this custom indicator start from the very first candles after listing of the instrument/asset class. This indicator will optimize the EMAs and work as a normal EMA once the amount of candles required are fulfilled, until then, it will use custom parameters to calculate the EMAs (that is the available current candle data).

Tip: You can change the values and colors of EMAs from the indicator settings.

Disclaimer/Warning: This indicator does not provide Buy/Sell signals or nor is an investment advice. This indicator solely for the purpose of study of price and Exponential Moving Averages. Users are responsible for their own actions, profit/loss of the users is not the liability of author.

Disclaimer

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.