Ema logic screener errors

Forums ProRealTime English forum ProScreener support Ema logic screener errors

Viewing 6 posts - 1 through 6 (of 6 total)
  • #209642

    Hi

    I am trying to put together a screener that looks at several variables on a weekly timeframe.

    1 I want to screen for when the close of the current bar crosses the ema 5.

    2 I want to screen for when the ema 5 is rising. For when it is higher than the previous bars reading.

    3 I want to only screen stocks that have greater than 78 bars of data.

    My code:

     

    Condition 1 and 2 are showing faults but am not sure of the issues. Can anyone point me in the right direction?

    #209655

    You didn’t defined the EMA 5 periods in your code. To test the history, you should use BARINDEX which is the number of the bar:

    #209733

    Thanks Nicolas.

    I now understand what I was doing wrong. Maybe one day I might get the hang of the language.

    #210109

    Hi Nicolas,

    I have programmed exactly as you wrote the code but it doesnt give me the results I want. I have rewritten the code several times, tried copy and pasting your exact code but the code doesnt give me the results that it should. I have also shut the software down and even rebooted the computer to see if that changed the results.

    Most of the results actually show the opposite of what I am after.

    To be specific, condition 1 is supposed to show the close of the weekly bar crossing over the ema 5. IS the word “over” not the correct term? Should it be something like “above”? Or does it need an addition to the code to say look at the price is increasing? Condition2 is supposed to show the ema getting larger as the weekly bar progresses but it seems to show the ema getting smaller in value.

    I did a scan and it showed Metcash (MTS – Australian stock) stock as meeting the above. The current price is below the ema on the current(weekly) bar and is below the close of the previous bar. The ema is going down from the previous bar.

    Can you see a reason why the results are giving a false reading? I am not sure what is going wrong.

    #210111
    JS

    Hi @Malibu1

    I tried your screener and it works the way it should work but…

    Be sure to look at the results in a graph with a time frame of a week…

    #210222

    Hi Js,

    Thanks for the reply. I have set the time to a weekly setting on the chart and in the screener as well.

    I have attached a couple of screenshots showing the code and the results that the screener gives. I have included a screen shot of Magellan (MFG). It doesn’t meet the requirements of the scanner but is on the list. Vicinity(VCX) and APA(APA) are some more that appear on the list but don’t meet the requirements.

    Am I doing something wrong or have I got a setting that isn’t correct?

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login