Repulse .. Code needed
- This topic has 5 replies, 2 voices, and was last updated 7 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProBuilder support › Repulse .. Code needed
Hello again.
As some may know, I like to work with the Repulse indicator as a stop.
In PRT, the Repulse is preset as an indicator.
But how can the code be code? I didn’t find anything.
PRT gives me only this, see screenshot.
Kind regards
JohnScher
Are you talking about this one?
1 2 3 4 5 6 7 8 9 10 11 12 |
//////////////////// repulse a = 100 * ( 3 * CLOSE - 2 * LOW - OPEN ) / CLOSE b = 100 * ( OPEN + 2 * HIGH - 3 * CLOSE ) / CLOSE d = EXPONENTIALAVERAGE[P1](a) - EXPONENTIALAVERAGE[P1](b) RETURN d as "repulse",0 as "zero" |
Hello, Nicolas.
Very nice! Thank you very much!
That’s what I’ve been looking for.
Compare the ScreenShot. Above the default indicator of PRT below your indicator. There fits!
Can you still put in the rejecting moving average?
Child regards
JohnScher
Hello, Nicolas.
Very nice! Thank you very much! That’s what I’ve been looking for.
I would like to examine the reaction of the Repulse in relation to the rejecting average. My programming skills are very limited, so I wanted to ask you if you could integrate me the code into for the rejecting average? the red line in the screenshot.
Kind regards
JohnScher
You should make the comparison yourself, about the type of average and its period, cause I don’t know what are the originals one:
1 2 3 4 5 6 7 8 9 10 11 |
//////////////////// repulse a = 100 * ( 3 * CLOSE - 2 * LOW - OPEN ) / CLOSE b = 100 * ( OPEN + 2 * HIGH - 3 * CLOSE ) / CLOSE d = EXPONENTIALAVERAGE[P1](a) - EXPONENTIALAVERAGE[P1](b) avg = average[30,1](d) RETURN d as "repulse",0 as "zero", avg |
You can change the 2 settings in brackets: [30,1] , first is the period of the moving average, second one is the type of moving average.
Find exclusive trading pro-tools on