Moving Averages Exponential Scanner

Forums ProRealTime English forum ProScreener support Moving Averages Exponential Scanner

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

    Hello trading friends,

    I am new to the Prorealtime programming. I am a programmer by professional. But I am not sure how to translate trading in to coding. If you can help me to learn, I would like to contribute here as well (Have few sparetime) 🙂

    My question:

    How to find my exponential moving average 8, 21, 50 are in numerical order or not?

     

    #35260

    Hi Guys,

     

    I was curious on the first day here and I created this. Any improvements?

     

    #35272

    Hi Delta, sorry for not answering earlier. You made a wrong typo at line 15 and 16 (conditions c3 and c4 : same MA but different order).
    It is not necessary to indicate a timeframe, unless you want to make a multitimeframe screener.
    If c1 and c2 are not true at the same time, you are “down”, so your “down” boolean variable is not necessary, just check if up is true or not and you’ll the bullish and bearish momentum in your screener.

    #35276

    I m not sure I understand you.

    MA 8, 21, 50 is in proper order: i would say momentum is UP

    MA 50, 21, 8 is in proper order: i would say momentum is DOWN

    I want the screener to list either UP or DOWN

    This is what I tried to achieve in the above code.

     

    #35279

    This is how it should be coded:

    If the moving averages are not in the proper order for “up”, they are obviously in the proper order for “down”.

     

    #35536

    Thanks Nick!.. thats way better than original.. 😛

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