My screener ignores MFI[40] condition

Forums ProRealTime English forum ProScreener support My screener ignores MFI[40] condition

Viewing 10 posts - 1 through 10 (of 10 total)
  • #113939

    Hello,

    I’m using several conditions but one of them (mfi[40]) is ignored by the screener.

    I attached a screen shot that shows the two versions of the code and one of its results.

    What am I doing wrong?

    #113948

    In your screenshot MFI has a value of 79 so is not less than 35 so that instrument is not one that the screener will find.

    When posting code please use the ‘Insert PRT Code’ button rather than post screenshots of it as that way others can easily copy the code to test it. With a screen shot you are expecting them to retype the whole code!

    #113951

    I’m not at home right now so won’t be able to send the code. The problem I have is that the FOXA stock *did* came as a result from that code.

    Do you see any problem with the code?

    #113954

    You are comparing a real-time value of a 40 periods calculation of the Money Flow Index indicator with its value 40 periods ago.. That’s where is the trouble I believe 😉

    If you want to offset 40 periods ago an indicator, the syntax should be like this:

    MoneyFlowIndex instruction.

    #113957

    Thank you Nicolas. So if I want the 40 periods calculation of the current bar, it should be like this?

    Moneyflowindex[40][0]

     

     

    #113968

    I’ll try again…

    I wanted to create a code for the screener that will show results if the previous period meets its conditions:

    1. MFI (40 periods) is smaller than 35.

    2. CCI (40 periods) is smaller than 0.

    3. Close is bigger than Open

    4. Price is bigger than 10$

    The screener will show first high volume stocks.

    Again, all condition should apply for the previous period.

    This is the code:

    Some of the results of the screener have an MFI[40] value that is bigger than 35.

    The time frame is 15 minutes.

    I attached a screen shot.

    Thank you.

     

    #113982

    It works good for me on NASDAQ list, see attached screenshot.

    Do you have real-time data subscription for the lists you are working on with the screener?

    #113986

    I changed the code to how you wrote it, but the value of the criteria as shown by the screener doesn’t match the value in the graph (see screenshot).

    I’m using IG demo account.

    #113989

    BTW @Nicolas, this problem happens only with the screener. The code works perfectly when I use it as backtest.

    #113990

    You should try with a real account.

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

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