Screener working in Indicator Mode but not in Scanning

Forums ProRealTime English forum ProScreener support Screener working in Indicator Mode but not in Scanning

Viewing 13 posts - 1 through 13 (of 13 total)
  • #158609

    Hello,

    This is a useful scanner of stocks ready to rise. It is working in indicator mode but not in Scanning. Any idea why?

    Regards,

     

    #158612

    ProScreener has a 254-lookback bar limit.

    It may be that exponential averages need more than their periods to work.

    Try using 150 or 100 periods. You can also try to use those periods, but replace exponentialaverage with average, at least for the 200-period one.

     

    #158755

    Thank you Robert. Even after changing it to 100 it is not working.

    If I change the code as enclosed (by removing ”

     

    it is showing some reslt although erroneus since it is picking up the stocks (like “CAY” in which EMAs are below and not above 200 EMA

     

    ) which is not meeting the criteria (IF B>D AND D>E THEN). Any help would be much appreciated.

     

    MODERATORS EDIT: Your post was edited. Always use the ‘Insert PRT Code’ button when posting code.

    #159326
    • Hi there, just a thought, you have your last close size limited between 10c and 11c? Would this not limit it somewhat? Does the close by 0.1 need to be close*0.1*pipsize?
    #159376

    Close>0.1*pipsize

    #159438

    No, there are many shares within that range. Same result if I increase the limit. Issue is it is screening the wrong ones as well which is not satisfying the criteria.

    #160299

    Is there a fix to this bug please?

    #160300

    In your first post the indicator showed correct results, bu NOT for the current bar, which is what a screener looks for.

    Try replacing  the last line with:

    to make the screener return TRUE when T is true in any of the last 30 bars.

     

    #160302

    Thank you Robert for your prompt response. I incorporate your suggesstion however the problem is still there as the screener is showing names of stocks even for which the basic criteria are not satisfied (i.e. IF B>D AND D>E).

    It is showing results where even B<D and D<E. This is the problem dear.

    Any input will be highly appreciated.

    Regards,

     

    #160376

    It seems to be working correctly.

    Try using this strategy to test T:

    The logic of the code is not easy to follow at first sight and I didn’t have much time to check any single variable.

    If you post the logic of your screener I might be of further help trying to code it differently.

     

     

    #160445

    Many thanks Robert. The logic is quite simple as below. I am trying to get the list of stocks that are just lining up for a possible UP move when 3 EMAs are separated by a fixed ratio after crossing each other.

    1. Identify sequence of exponential moving averages EMA) 20, 50 and 200 for long opportunities only (20 ema (B)> 50 ema (D)> 200 ema (E)).
    2. Get AverageTrueRange (A) (14 period)
    3. Divide EMA differences by ATR to get the 2 ratios [RT= (B-D)/A and RF= (D-E)/A].
    4. If these 2 ratios (RT & RF) are >= particular value (say 0.5) for the first time, then screen that stock as shown in the attachment: e,g, ABR.ASX reached these ratios (RT>0.5 and RF>3.5) for the first time on 14.10.2020 and again on 04.12.2020 before moving substantially up.

    Trust this helps, else please let me know if you need any other input.

     

    #160451

    You can try with the below screener code, this is how I interpret your last description:

     

    #160513

    Many thanks Nicolas. You are a genius. I  have slightly modified the code as required (enclosed). It is working correctly for shares whose price is more than $1.00 (because RT and RF in these cases are >0.00) , but it is working incorrectly for share value less than $1.00 ((because RT and RF in these cases are = 0.00).

    I have modified the code to avoid RT and RF =0 as enclosed but still it is picking them up (e.g. JPR, ATR, BLYO in Shares-Australia). Any idea how to fix it would be much appreciated.

    Regards,

     

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

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