I am trying to use a screener where it will signal when the 15EMA crosses below the 50SMA from above, when there is a Stochastic cycle high (%K above 80) – short signal…..and for a long signal when the 15EMA crosses above the 50SMA from below when there is a Stochastic cycle low (%K below 20)…..I have run this screener from a default 5 min timeframe over approximately 10 markets for several days and have never had a signal…..can you check this for me please in case I have made an error (although no error is showing), or perhaps the conditions have just not been met over a couple of days. Thank you
There’s a logical error in lines 5 and 13, since the “=” relation is impossible to be true (or very unlikely), try replacing it with “<=” or “>= and it’ll work (I don’t know if that will be what you expected, though!).
Thank you, I will try that this morning…I had also tried CROSSES UNDER and CROSSES OVER, and that never worked either.
It’s still due to unlikely conditions. I suggest that you add ALL indicators, with the same settings as in your code, to your chart, then identify visually WHEN a signal could have been triggered. If you never see one it’e because those settings have to be changed!
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