OPEN-SOURCE SCRIPT

Multi EMA/SMA

Updated
Description:

This indicator combines both an Exponential Moving Average (EMA) and a Simple Moving Average (MA). The user can customize the lengths of both the EMA and the MA, as well as their respective colors and line widths.

Features:
  1. Custom Lengths for EMA and MA: The user can specify the desired length for both the EMA and the MA.
  2. Visibility Control: There are options to only display the MA and EMA during the times the price crosses them. This helps in highlighting significant crossover points. Additionally, the user can define how many bars before and after the crossover they wish to visualize the MA and EMA.
  3. Customizable Appearance: The color and line width for both the MA and the EMA can be adjusted as per user preferences.
  4. Dynamic Labels: The indicator provides labels that display the current values of the MA and the EMA. Additionally, these labels dynamically update to reflect any changes to the EMA or MA length input by the user.
Release Notes
Description:

This indicator combines both an Exponential Moving Average (EMA) and a Simple Moving Average (MA). The user can customize the lengths of both the EMA and the MA, as well as their respective colors and line widths.

Features:
  1. Custom Lengths for EMA and MA: The user can specify the desired length for both the EMA and the MA.
  2. Visibility Control: There are options to only display the MA and EMA during the times the price crosses them. This helps in highlighting significant crossover points. Additionally, the user can define how many bars before and after the crossover they wish to visualize the MA and EMA.
  3. Customizable Appearance: The color and line width for both the MA and the EMA can be adjusted as per user preferences.
  4. Dynamic Labels: The indicator provides labels that display the current values of the MA and the EMA. Additionally, these labels dynamically update to reflect any changes to the EMA or MA length input by the user.
Release Notes
Added an option to set a fixed TF
Release Notes
Added 1W option
Exponential Moving Average (EMA)Moving AveragesSimple Moving Average (SMA)

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