Nicolas

Smoothed repulse

Category: Indicators By: Nicolas Created: July 7, 2016, 8:09 AM
July 7, 2016, 8:09 AM
Indicators
2 Comments
Smoothed repulse

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.

 

// 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"

 

Download
Filename: PRC_Smoother-Repulse.itf
Downloads: 161
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

bala01
6 years ago
#

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"

Altares
9 years ago
#

Wow thank you!

ProRealCode ProRealCode
Loading...