2 Pole Oscillator by Big Beluga
Forums › ProRealTime English forum › ProBuilder support › 2 Pole Oscillator by Big Beluga
- This topic has 4 replies, 3 voices, and was last updated 3 weeks ago by
adeelq79.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
02/03/2025 at 8:48 PM #243406
Good evening all,
Please can you help to convert this indicator on Trading View – https://www.tradingview.com/script/2Ssn4yDZ-Two-Pole-Oscillator-BigBeluga/
Many thanks.
02/03/2025 at 8:59 PM #24340702/03/2025 at 10:32 PM #24341002/10/2025 at 12:05 PM #243679Hi. here it is:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162//---------------------------------------------////PRC_Two Pole oscillator//version = 0//10.02.2025//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//---------------------------------------------//// inputs//---------------------------------------------//length=20 // filter lengthdispLevels= 1 // display levels?prd=25 // moving average periods//---------------------------------------------//// source calculation//---------------------------------------------//sma1=average[prd](close)smaN1=((close-sma1)-average[prd](close-sma1))/std[prd](close-sma1)area=average[100](high-low)//---------------------------------------------//// Oscillator//---------------------------------------------//source=smaN1alpha=2/(length+1)if barindex<max(prd*2,length) thensmooth1=sourcesmooth2=smooth1elsesmooth1=(1-alpha)*smooth1+alpha*sourcesmooth2=(1-alpha)*smooth2+alpha*smooth1endiftwoP=smooth2twoPP=twoP[4]//---------------------------------------------//// Colors//---------------------------------------------//if twoP>twoPP thenr=85g=255b=218elser=140g=91b=255endif//---------------------------------------------//// Signals//---------------------------------------------//buySignal=twoP crosses over twoPP and twoP<0sellSignal=twoP crosses under twoPP and twoP>0if buysignal thendrawpoint(barindex[1],twoP[1],2)coloured(r,g,b)drawpoint(barindex[1],twoP[1],5)coloured(r,g,b,100)elsif sellSignal thendrawpoint(barindex[1],twoP[1],2)coloured(r,g,b)drawpoint(barindex[1],twoP[1],5)coloured(r,g,b,100)endif//---------------------------------------------//return twoP coloured(r,g,b)style(line,2), 1 coloured("grey",100), 0.5 coloured("grey",100), 0 coloured("black")style(dottedline3), -1 coloured("grey",100), -0.5 coloured("grey",100)1 user thanked author for this post.
02/10/2025 at 8:54 PM #243710Thanks Ivan. Thats great.
1 user thanked author for this post.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)