Conversion from TradengView – SlingShot
Forums › ProRealTime English forum › ProBuilder support › Conversion from TradengView – SlingShot
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by supermyguel.
-
-
08/04/2020 at 12:45 PM #140850
Hi! Someone can translate this indicator from Pine Editor (Tradingview) to PRT?
Thanks
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556study(“UCS_Momentum Oscillator Upper”, overlay=true)sae = input(true, title=”Show Aggressive Entry?, Or Use as Alert To Potential Conservative Entry?”)sce = input(true, title=”Show Conservative Entry?”)st = input(true, title=”Show Trend Arrows at Top and Bottom of Screen?”)def = input(false, title=”Only Choose 1 – Either Conservative Entry Arrows or ‘B’-‘S’ Letters”)pa = input(true, title=”Show Conservative Entry Arrows?”)sl = input(false, title=”Show ‘↑’-‘↓’ Letters?”)ma1 = ema(close, 13)ma2 = ema(close, 21)ma3 = ema(close, 34)ma = ema(close, 89)range = trrangema = ema(range, 89)upper = ma + rangema * 0.5lower = ma – rangema * 0.5midChan = (upper + lower)/2//Trend Definitiontr_up = ma1 > upper and ma2 > upper and ma3 > uppertr_down = ma1 < lower and ma2 < lower and ma3 < lower //Aggressive Entry pullbackUpT() => tr_up and close < upper pullbackDnT() => tr_down and close > lower//Conservative EntryentryUpT() => tr_up and close[1] < upper and close > upperentryDnT() => tr_down and close[1] > lower and close < lower //Conservative Entry True/False Condition entryUpTrend = ma1 > upper and ma2 > upper and ma3 > upper and close[1] < upper and close > upper ? 1 : 0entryDnTrend = ma1 < lower and ma2 < lower and ma3 < lower and close[1] > lower and close < lower ? 1 : 0 //Define Up and Down Trend for Trend Arrows at Top and Bottom of Screen upTrend = ma1 > upper and ma2 > upper and ma3 > upperdownTrend = ma1 < lower and ma2 < lower and ma3 < lower//Definition for Conseervative Entry Up and Down PlotArrowscodiff = entryUpTrend == 1 ? entryUpTrend : 0codiff2 = entryDnTrend == 1 ? entryDnTrend : 0//Trend Color Definition for Moving Averages and Channelscolor = tr_up ? green : tr_down ? red : bluebarcolor(sae and pullbackUpT() ? yellow : sae and pullbackDnT() ? yellow : na)barcolor(sce and entryUpT() ? aqua : sce and entryDnT() ? aqua : na)//Plot 3 MA’splot(ma1, title=”Fast MA”, color=scolor, style=circles, linewidth=1)plot(ma2, title=”Medium MA”,color=scolor, style=circles, linewidth=2)plot(ma3, title=”Slow MA”, color=scolor, style=circles, linewidth=3)//Channel Plotsp1 = plot(upper, title=”Upper Channel”, color=scolor, style=line, linewidth=3)p2 = plot(midChan, title=”Upper Channel”, color=silver, style=line, linewidth=1)p3 = plot(lower, title=”Lower Channel”, color=scolor, style=line, linewidth=3)fill(p1, p2, color=lime, transp=70)fill(p2, p3, color=red, transp=70)//Trend Triangles at Top and Bottom of Screenplotshape(st and upTrend ? upTrend : na, title=”Conservative Buy Entry Triangle”,style=shape.triangleup, location=location.bottom, color=lime, transp=0, offset=0)plotshape(st and downTrend ? downTrend : na, title=”Conservative Short Entry Triangle”,style=shape.triangledown, location=location.top, color=red, transp=0, offset=0)//Plot Arrows OR Letters ↑ and ↓ for Buy Sell Signalsplotarrow(pa and codiff ? codiff : na, title=”Up Entry Arrow”, colorup=lime, maxheight=60, minheight=50, transp=0)plotarrow(pa and codiff2*-1 ? codiff2*-1 : na, title=”Down Entry Arrow”, colordown=red, maxheight=60, minheight=50, transp=0)plotchar(sl and codiff ? low – tr : na, title=”Buy Entry”, offset=0, char=’↑’, location=location.absolute, color=lime, transp=0)plotchar(sl and codiff2 ? high + tr : na, title=”Short Entry”, offset=0, char=’↓’, location=location.absolute, color=red, transp=0)08/04/2020 at 1:02 PM #140852Please next time, follow the instructions on how to ask for a code conversion. And don’t double post! No reply in 24 hours doesn’t mean no one will reply.. I’m the only guy around that make the code conversion!
Your query is added into the conversion list and I’ll do it asap. In the meantime please be patient and don’t post again the same demand! Thank you.
08/04/2020 at 1:27 PM #140862Ok Thanks.
I’ll post twice because I dont’t know that you are the only one!
I’m sorry!
08/04/2020 at 2:10 PM #140867Just read the forum rules above each post form:
- Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
08/27/2020 at 4:29 PM #14272909/21/2020 at 2:28 PM #144898The indicator is now available in our library: CM_UCS_Modified SlingShot
1 user thanked author for this post.
09/25/2020 at 1:54 PM #145386Thank you very much Nicolas!
Number 1
-
AuthorPosts
Find exclusive trading pro-tools on