Repulse .. Code needed
Forums › ProRealTime English forum › ProBuilder support › Repulse .. Code needed
- This topic has 5 replies, 2 voices, and was last updated 6 years ago by JohnScher.
-
-
03/19/2018 at 4:13 PM #65711
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
JohnScher03/19/2018 at 4:58 PM #65724Are you talking about this one?
123456789101112//////////////////// repulsea = 100 * ( 3 * CLOSE - 2 * LOW - OPEN ) / CLOSEb = 100 * ( OPEN + 2 * HIGH - 3 * CLOSE ) / CLOSEd = EXPONENTIALAVERAGE[P1](a) - EXPONENTIALAVERAGE[P1](b)RETURN d as "repulse",0 as "zero"1 user thanked author for this post.
03/19/2018 at 6:26 PM #65746Hello, 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
JohnScher05/27/2018 at 4:57 PM #71433Hello, 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
JohnScher05/28/2018 at 8:34 AM #71478You should make the comparison yourself, about the type of average and its period, cause I don’t know what are the originals one:
1234567891011//////////////////// repulsea = 100 * ( 3 * CLOSE - 2 * LOW - OPEN ) / CLOSEb = 100 * ( OPEN + 2 * HIGH - 3 * CLOSE ) / CLOSEd = EXPONENTIALAVERAGE[P1](a) - EXPONENTIALAVERAGE[P1](b)avg = average[30,1](d)RETURN d as "repulse",0 as "zero", avgYou 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.
1 user thanked author for this post.
06/10/2018 at 2:05 PM #72768 -
AuthorPosts