Please add this feature in EMA

Hello sir/madam,

There is one additional features in EMA settings which is available in trading view but not available on fyers, it is of multi timeframe for EMA. This feature is must have feature.

I hope screenshot finds you helpful.

Hi, thanks for your valuable feedback! We will explore this feature.

@kishore_krishna below is the pin-script code, please add

study(“MTF 9 SMA/EMA”, overlay=true)

// SMA or EMA
SEswitch = input(title=“on:EMA off:SMA”, type=bool, defval=true)

//Get EMA Values // 200 EMA // 15min / 30Min/ 1H
maA = input(title=‘MA1’, type=integer, minval=1, step=1, defval=200)
maB = input(title=‘MA2’, type=integer, minval=1, step=1, defval=200)
maC = input(title=‘MA3’, type=integer, minval=1, step=1, defval=200)

//Set resolutions
resA = input(title=‘MA1’, type=resolution, defval=“15”)
resB = input(title=‘MA2’, type=resolution, defval=“30”)
resC = input(title=‘MA3’, type=resolution, defval=“60”)

//Set switches
emaAswitch = input(title=“MA1 On/Off”, type=bool, defval=true)
emaBswitch = input(title=“MA2 On/Off”, type=bool, defval=true)
emaCswitch = input(title=“MA3 On/Off”, type=bool, defval=true)

//Get EMA Values // 400 EMA // 15min / 1H/ 1D
maD = input(title=‘MA4’, type=integer, minval=1, step=1, defval=400)
maE = input(title=‘MA5’, type=integer, minval=1, step=1, defval=400)
maF = input(title=‘MA6’, type=integer, minval=1, step=1, defval=400)

//Set resolutions
resD = input(title=‘MA4’, type=resolution, defval=“15”)
resE = input(title=‘MA5’, type=resolution, defval=“60”)
resF = input(title=‘MA6’, type=resolution, defval=“1D”)

//Set switches
emaDswitch = input(title=“MA4 On/Off”, type=bool, defval=true)
emaEswitch = input(title=“MA5 On/Off”, type=bool, defval=true)
emaFswitch = input(title=“MA6 On/Off”, type=bool, defval=true)

//Get EMA Values // 200 EMA // 15min / 1H/ 1D
maG = input(title=‘MA7’, type=integer, minval=1, step=1, defval=200)
maH = input(title=‘MA8’, type=integer, minval=1, step=1, defval=200)
maI = input(title=‘MA9’, type=integer, minval=1, step=1, defval=200)

//Set resolutions
resG = input(title=‘MA7’, type=resolution, defval=“15”)
resH = input(title=‘MA8’, type=resolution, defval=“60”)
resI = input(title=‘MA9’, type=resolution, defval=“1D”)

//Set switches
emaGswitch = input(title=“MA7 On/Off”, type=bool, defval=true)
emaHswitch = input(title=“MA8 On/Off”, type=bool, defval=true)
emaIswitch = input(title=“MA9 On/Off”, type=bool, defval=true)

//get data
dataA = security(tickerid, resA, SEswitch ? ema(close, maA) : sma(close, maA))
dataB = security(tickerid, resB, SEswitch ? ema(close, maB) : sma(close, maB))
dataC = security(tickerid, resC, SEswitch ? ema(close, maC) : sma(close, maC))
dataD = security(tickerid, resD, SEswitch ? ema(close, maD) : sma(close, maD))
dataE = security(tickerid, resE, SEswitch ? ema(close, maE) : sma(close, maE))
dataF = security(tickerid, resF, SEswitch ? ema(close, maF) : sma(close, maF))
dataG = security(tickerid, resG, SEswitch ? ema(close, maG) : sma(close, maG))
dataH = security(tickerid, resH, SEswitch ? ema(close, maH) : sma(close, maH))
dataI = security(tickerid, resI, SEswitch ? ema(close, maI) : sma(close, maI))

//Plotting
plot(emaAswitch ? dataA : na, color=black, linewidth=2)
plot(emaBswitch ? dataB : na, color=black, linewidth=2)
plot(emaCswitch ? dataC : na, color=black, linewidth=2)
plot(emaDswitch ? dataD : na, color=black, linewidth=2)
plot(emaEswitch ? dataE : na, color=black, linewidth=2)
plot(emaFswitch ? dataF : na, color=black, linewidth=2)
plot(emaGswitch ? dataG : na, color=black, linewidth=2)
plot(emaHswitch ? dataH : na, color=black, linewidth=2)
plot(emaIswitch ? dataI : na, color=black, linewidth=2)