Good morning,
In delving into cyclical studies, I found this indicator by Martin Pring that brings together and weights 12 moving averages differently to combine them into a single indicator that works in the long term as well as in the medium and short term. It also works well in shorter timeframes. Those who would like to can improve and modify it for the Prorealcode community. It exists on Trading View platform and this below is the link of where to find all the information on the web.
https://school.stockcharts.com/doku.php?id=technical_indicators:pring_s_special_k
This is the code for PRT
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
// Pring Special K // indicatore di Martin Pring // creato da luxrun per PRC a=Average[10] (ROC[10](close)) *1 b=Average[10] (ROC[15](close)) *2 c=Average[10] (ROC[20](close)) *3 d=Average[15] (ROC[30](close)) *4 e=Average[50] (ROC[40](close)) *1 f=Average[65] (ROC[65](close)) *2 g=Average[75] (ROC[75](close)) *3 j=Average[100] (ROC[100](close)) *4 k=Average[130] (ROC[195](close)) *1 i=Average[130] (ROC[265](close)) *2 l=Average[130] (ROC[390](close)) *3 m=Average[195] (ROC[530](close)) *4 specialk=(a+b+c+d+e+f+g+j+k+i+l+m) media10=Average[one] (specialk) //default 10 media100=Average[two] (specialk) //default 100 smoothmedia100=Average[three] (media100)//default 100 return specialk as "special K",media10 as"sma 10",0, smoothmedia100 as"sma100 di media 100" |
With the hope that I have done something useful, a greeting
luxrun
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials