new Prorealtime indicator: CMUMA -(CM_Ultimate_MA_MTF)
Forums › ProRealTime English forum › ProBuilder support › new Prorealtime indicator: CMUMA -(CM_Ultimate_MA_MTF)
- This topic has 5 replies, 5 voices, and was last updated 4 years ago by GenesisEX.
-
-
05/02/2019 at 5:02 PM #97562
Hello Nicola,
hello all,
about 2 years ago, I introduced here the LazyBear-Indicator (originally from tradingview) click here; with the help of Nicola, it was coded for PROREALTIME!
Since then I made great pips every, every day…still today my 1st “pip generator”.
Today, I would like to ask for support in coding a new indicator from tradingview; just like the first one, it generates every day ~30-40pips/trade!
(–> https://www.tradingview.com/script/8KVcQiJM-CM-Ultimate-MA-MTF-V2/)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495//@version=3study(title="CM_Ultimate_MA_MTF_V2", shorttitle="CM_Ultimate_MA_MTF_V2", overlay=true)//inputsuseCurrentRes = input(true, title="Use Current Chart Resolution?")resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="D")len = input(20, title="Moving Average Length - LookBack Period")//periodT3 = input(defval=7, title="Tilson T3 Period", minval=1)factorT3 = input(defval=7, title="Tilson T3 Factor - *.10 - so 7 = .7 etc.", minval=0)atype = input(1,minval=1,maxval=8,title="1=SMA, 2=EMA, 3=WMA, 4=HullMA, 5=VWMA, 6=RMA, 7=TEMA, 8=Tilson T3")spc=input(false, title="Show Price Crossing 1st Mov Avg - Highlight Bar?")cc = input(true,title="Change Color Based On Direction?")smoothe = input(2, minval=1, maxval=10, title="Color Smoothing - Setting 1 = No Smoothing")doma2 = input(false, title="Optional 2nd Moving Average")spc2=input(false, title="Show Price Crossing 2nd Mov Avg?")len2 = input(50, title="Moving Average Length - Optional 2nd MA")sfactorT3 = input(defval=7, title="Tilson T3 Factor - *.10 - so 7 = .7 etc.", minval=0)atype2 = input(1,minval=1,maxval=8,title="1=SMA, 2=EMA, 3=WMA, 4=HullMA, 5=VWMA, 6=RMA, 7=TEMA, 8=Tilson T3")cc2 = input(true,title="Change Color Based On Direction 2nd MA?")warn = input(false, title="***You Can Turn On The Show Dots Parameter Below Without Plotting 2nd MA to See Crosses***")warn2 = input(false, title="***If Using Cross Feature W/O Plotting 2ndMA - Make Sure 2ndMA Parameters are Set Correctly***")sd = input(false, title="Show Dots on Cross of Both MA's")src = closeres = useCurrentRes ? period : resCustom//hull ma definitionhullma = wma(2*wma(src, len/2)-wma(src, len), round(sqrt(len)))//TEMA definitionema1 = ema(src, len)ema2 = ema(ema1, len)ema3 = ema(ema2, len)tema = 3 * (ema1 - ema2) + ema3//Tilson T3factor = factorT3 * 0.10gd(src, len, factor) => ema(src, len) * (1 + factor) - ema(ema(src, len), len) * factort3(src, len, factor) => gd(gd(gd(src, len, factor), len, factor), len, factor)tilT3 = t3(src, len, factor)avg = atype == 1 ? sma(src,len) : atype == 2 ? ema(src,len) : atype == 3 ? wma(src,len) : atype == 4 ? hullma : atype == 5 ? vwma(src, len) : atype == 6 ? rma(src,len) : atype == 7 ? 3 * (ema1 - ema2) + ema3 : tilT3//2nd Ma - hull ma definitionhullma2 = wma(2*wma(src, len2/2)-wma(src, len2), round(sqrt(len2)))//2nd MA TEMA definitionsema1 = ema(src, len2)sema2 = ema(sema1, len2)sema3 = ema(sema2, len2)stema = 3 * (sema1 - sema2) + sema3//2nd MA Tilson T3sfactor = sfactorT3 *.10sgd(src, len2, sfactor) => ema(src, len2) * (1 + sfactor) - ema(ema(src, len2), len2) * sfactorst3(src, len2, sfactor) => sgd(sgd(gd(src, len2, sfactor), len2, sfactor), len2, sfactor)stilT3 = st3(src, len2, sfactor)avg2 = atype2 == 1 ? sma(src,len2) : atype2 == 2 ? ema(src,len2) : atype2 == 3 ? wma(src,len2) : atype2 == 4 ? hullma2 : atype2 == 5 ? vwma(src, len2) : atype2 == 6 ? rma(src,len2) : atype2 == 7 ? 3 * (ema1 - ema2) + ema3 : stilT3out = avgout_two = avg2out1 = security(tickerid, res, out)out2 = security(tickerid, res, out_two)//Formula for Price Crossing Moving Average #1cr_up = open < out1 and close > out1cr_Down = open > out1 and close < out1//Formula for Price Crossing Moving Average #2cr_up2 = open < out2 and close > out2cr_Down2 = open > out2 and close < out2//barcolor Criteria for Price Crossing Moving Average #1iscrossUp() => cr_upiscrossDown() => cr_Down//barcolor Criteria for Price Crossing Moving Average #2iscrossUp2() => cr_up2iscrossDown2() => cr_Down2ma_up = out1 >= out1[smoothe]ma_down = out1 < out1[smoothe]col = cc ? ma_up ? lime : ma_down ? red : aqua : aquacol2 = cc2 ? ma_up ? lime : ma_down ? red : aqua : whitecircleYPosition = out2plot(out1, title="Multi-Timeframe Moving Avg", style=line, linewidth=4, color = col)plot(doma2 and out2 ? out2 : na, title="2nd Multi-TimeFrame Moving Average", style=circles, linewidth=4, color=col2)plot(sd and cross(out1, out2) ? circleYPosition : na,style=cross, linewidth=15, color=aqua)//barcolor Plot for Price Crossing Moving Average #1barcolor(spc and iscrossUp() ? (iscrossUp() ? yellow : na) : na)barcolor(spc and iscrossDown() ? (iscrossDown() ? yellow : na) : na)//barcolor Plot for Price Crossing Moving Average #2barcolor(spc2 and iscrossUp2() ? (iscrossUp2() ? yellow : na) : na)barcolor(spc2 and iscrossDown2() ? (iscrossDown2() ? yellow : na) : na)colorChanged = barstate.isconfirmed and col != col[1]alertcondition(colorChanged, title="Alert on MA Color Change", message="MA has changed its color!")(All credits go to Chris Moody from trdvw!)
Please Nicola, would you take a look into the code and try to re-code for PRT?
Many thanks in advance.
Merci Beaucoup.
Micha
05/13/2019 at 12:03 PM #9835005/14/2019 at 2:57 PM #9848712/06/2019 at 9:09 PM #11437112/06/2019 at 9:46 PM #11437207/12/2020 at 3:44 PM #139085 -
AuthorPosts
Find exclusive trading pro-tools on