I want to screen all pairs that are either in Stochastic’s OverBought/OverSold AND the lines are already pointing the other way round, and applied it to 4h TF.
I wrote this simple screener (I use 75/25 for OB/OS, instead of the standard 80/20):
Aud/Nzd OB/OS
1
2
3
4
5
StocK=Stochastic[10,6](close)//10,6,3
StocD=Average[3](StocK)
OB=(StocK<StocD)AND(StocK>75)//K < D is going south despite being still in OB
OS=(StocK>StocD)AND(StocK<25)//K > D is going north despite being still in OS
SCREENER[OBorOS]//is there any error here ???
But, oddly enough, the pair AudNzd (h4), though displayed as having both conditions met, was absolutely not in OS/OB.
Can anyone help me find out what logic error I made?
Nicolas, I modified the screening program to scan the past H4 candle (not the current one) and still I get odd results for the GbpUsd pair, as you can see. In this case the odd results are returned for the current 4H candle, as well. Only one condition is met (both K and D are in OB).
Even for the GbpJpy pair only one condition is met, since the K line is NOT above 75 (but it is < D).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue