Adaptive Moving Average (AMA)

Forums ProRealTime English forum ProBuilder support Adaptive Moving Average (AMA)

Tagged: ,

Viewing 15 posts - 1 through 15 (of 25 total)
  • #64121

    Dear All:

    is there any code for the AMA indicator available?

    #64147

    There are several adaptive MAs. One e.g. is the KAMA and has even installed PRT since version 10.3 (called adaptive moving average). Then there are probably some more adaptive MA’s in the library.

    #101132

    This adaptive moving average in ProRealTime is the same as KAMA:

     

    #113972
    Jan

    Good evening,

    I have found an (the?) calculation of the AMA and coded it below in PRT.

    AMA follows the actual price movements faster as KAMA does

    I can mention the source where I found it if required.

     

     

    1 user thanked author for this post.
    #121926

    Hello Nicolas,

    I would like to use the adaptive moving average, not on prices but on an indicator.

    Is it possible to adapt the above codes by replacing “Close” with the name of the indicator?

    In advance, a thousand thanks for your always precious help.

    NB:

    I am using V10 via IG and therefore cannot use the adaptive code [9,2,30] (close) available in V11.

    Good apm

    Denis

    #121927

    Denis – Please post only in the language of the forum that you are posting in – English only in the English speaking forums please.

    #121928

    OK, sorry

    #121931

    I already translated your French post to English so there is no need to post it again. You also posted it in the ‘Insert PRT Code’ box for some strange reason so I have deleted your last post. Please try to be more careful when posting in the forums – we like to keep them tidy! 🙂

    #121933

    OK, sorry. I don’t know what is ‘Insert PRT Code’. Maybe a wrong maneuver.

    #121937

    Is it possible to adapt the above codes by replacing “Close” with the name of the indicator?

    Yes it is possible, replace “Close” with the variable that contains the values of your indicator.

    #121938

    Many thanks Nicolas, I did it. I was able to validate the code but no line appears on the graph while the AMA appears well in the properties of he indicator.

    #121948

    Please post the code in order to fix it. It’s probably a lack of history for the indicator to compute correctly at first run.

    #121949

    Here is the code Nicolas

    #121950

    It works quite well for me. I just added these settings at top of the code:

     

    #121957

    Thanks Nicolas

    “p” and “smooth1” are variables in my code so it should be the same as define them at top of the code ?

    I have tried with settings at top of the code but the KAMA does not appear, I don’t understand why

Viewing 15 posts - 1 through 15 (of 25 total)

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