jurik smoothed kijun sen
Forums › ProRealTime English forum › ProBuilder support › jurik smoothed kijun sen
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by Patrick K Templar.
-
-
11/17/2020 at 6:22 PM #150809
jurik smoothed kijun sen
Hello and thank you for Conversion
It is what it says it is a kijun sen with Jurick moving average applied to it i’ve got an mq4 file with something very similar to it so I will link that
(This is a jurik smoothed kijun sen if you want a regular kijun sen just set the smooth length to 1.)
Thank you very much and kind regards
Patrick
11/17/2020 at 8:21 PM #150824the mq4 file of the jurik kijuns bands is wrong dont use that i belive you did a jurik macd So I believe the coding wouldn’t be too far different from that for what I would like I can’t seem to find a mq4 file of the code yet there might be a tradingview
11/17/2020 at 8:58 PM #150826this is jurik ma file in mq4 it shold help with the codeing
11/25/2020 at 3:09 PM #151563iv got the code for both just need help add them together
11/25/2020 at 3:13 PM #1515641234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556Series = CustomClose//----------------------------//// JMA - Jurik Moving Average ////----------------------------//IF MAType = 1 THENPeriod = MAX(Period, b)// Pow = 5 ({ 1..10 })// R = 1.5 ({0.5..2.5})Pow = 4R = 1beta = 0.45 * (Period - 1) / (0.45 * (Period - 1) + 2)IF Pow = 1 THENalpha = betaELSIF Pow = 2 THENalpha = beta * betaELSIF Pow = 3 THENalpha = beta * beta * betaELSIF Pow = 4 THENalpha = beta * beta * beta * betaELSIF Pow = 5 THENalpha = beta * beta * beta * beta * betaELSIF Pow = 6 THENalpha = beta * beta * beta * beta * beta * betaELSIF Pow = 7 THENalpha = beta * beta * beta * beta * beta * beta * betaELSIF Pow = 8 THENalpha = beta * beta * beta * beta * beta * beta * beta * betaELSIF Pow = 9 THENalpha = beta * beta * beta * beta * beta * beta * beta * beta * betaELSIF Pow = 10 THENalpha = beta * beta * beta * beta * beta * beta * beta * beta * beta * betaENDIFIF BarIndex = 0 THENFilt0 = SeriesFilt1 = SeriesAFR = SeriesELSEFilt0 = (1 - alpha) * Series + alpha * Filt0[1]Det0 = (Series - Filt0[0]) * (1 - beta) + beta * Det0[1]Filt1 = Filt0[0] + R * Det0[0]Det1 = (Filt1[0] - AFR[1]) * ((1 - alpha) * (1 - alpha)) + (alpha * alpha) * Det1[1]AFR = AFR[1] + Det1[0]ENDIFENDIF// RETURN //RETURN AFR as "AFRjmc"1234Kijunsen = (highest[a](high)+lowest[b](low))/2RETURN Kijunsen11/25/2020 at 4:25 PM #151579Here is the code of the KijunSen smooth with a Jurik Filter:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960p2 = 26 //period of KijunPeriod = 5 //period of smoothingif barindex>p2+Period thenSeries = (highest[p2](high)+lowest[p2](low))/2//----------------------------//// JMA - Jurik Moving Average ////----------------------------////Period = MAX(Period, b)// Pow = 5 ({ 1..10 })// R = 1.5 ({0.5..2.5})Pow = 4R = 1beta = 0.45 * (Period - 1) / (0.45 * (Period - 1) + 2)IF Pow = 1 THENalpha = betaELSIF Pow = 2 THENalpha = beta * betaELSIF Pow = 3 THENalpha = beta * beta * betaELSIF Pow = 4 THENalpha = beta * beta * beta * betaELSIF Pow = 5 THENalpha = beta * beta * beta * beta * betaELSIF Pow = 6 THENalpha = beta * beta * beta * beta * beta * betaELSIF Pow = 7 THENalpha = beta * beta * beta * beta * beta * beta * betaELSIF Pow = 8 THENalpha = beta * beta * beta * beta * beta * beta * beta * betaELSIF Pow = 9 THENalpha = beta * beta * beta * beta * beta * beta * beta * beta * betaELSIF Pow = 10 THENalpha = beta * beta * beta * beta * beta * beta * beta * beta * beta * betaENDIFIF BarIndex = 0 THENFilt0 = SeriesFilt1 = SeriesAFR = SeriesELSEFilt0 = (1 - alpha) * Series + alpha * Filt0[1]Det0 = (Series - Filt0[0]) * (1 - beta) + beta * Det0[1]Filt1 = Filt0[0] + R * Det0[0]Det1 = (Filt1[0] - AFR[1]) * ((1 - alpha) * (1 - alpha)) + (alpha * alpha) * Det1[1]AFR = AFR[1] + Det1[0]ENDIFendif// RETURN //RETURN AFR as "AFRjmc"1 user thanked author for this post.
11/25/2020 at 5:27 PM #151586Thank you very much appreciate a lot
-
AuthorPosts