The smoothed repulse indicator is already included in the platform, but there is no instruction to refer to its value in the code. So here is the full code that can be used in any ProOrder automated trading strategy and for further experimentation.
Period or “Length” can be changed in the first line of the code, default is “5” like the platform indicator.
1 2 3 4 5 6 7 8 |
// parameters: Length=5 Bull=exponentialAverage[5*Length](((3*Close)-(2*lowest[Length](low))-Open[Length])/Close*100) Bear=exponentialAverage[5*Length]((Open[Length]+(2*highest[Length](high))-(3*Close))/Close*100) Repuls=Bull-Bear RETURN Repuls as "Smoothed Repulse", 0 as "0" |
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
Wow thank you!
If anyone is wanting it now for people like me then the following gives the same value as probuilder
RETURN 3*exponentialAverage[40](Repulse[5](close)) as “Smoothed Repulse”, 0 as “0”,Repulse[5](close) as “rep”