Raja Ribon
Raja Ribon
Raja Ribon
0 at
https://mozilla.org/MPL/2.0/
// © ripster47
//@version=5
indicator('RAJA RIBON', 'RAJA RIBON', overlay=true)
matype = input.string(title='MA Type', defval='EMA', options=['EMA', 'SMA'])
ma_len1 = 8
ma_len2 = 9
ma_len3 = 5
ma_len4 = 12
ma_len5 = 34
ma_len6 = 50
ma_len7 = 72
ma_len8 = 89
ma_len9 = 180
ma_len10 = 200
f_ma(malen) =>
float result = 0
if matype == 'EMA'
result := ta.ema(src, malen)
result
if matype == 'SMA'
result := ta.sma(src, malen)
result
result
htf_ma1 = f_ma(ma_len1)
htf_ma2 = f_ma(ma_len2)
htf_ma3 = f_ma(ma_len3)
htf_ma4 = f_ma(ma_len4)
htf_ma5 = f_ma(ma_len5)
htf_ma6 = f_ma(ma_len6)
htf_ma7 = f_ma(ma_len7)
htf_ma8 = f_ma(ma_len8)
htf_ma9 = f_ma(ma_len9)
htf_ma10 = f_ma(ma_len10)