Can anyone code John Ehler's FRAMA ?

Forums ProRealTime English forum ProBuilder support Can anyone code John Ehler's FRAMA ?

  • This topic has 13 replies, 4 voices, and was last updated 7 years ago by avatarBard.
Viewing 14 posts - 1 through 14 (of 14 total)
  • #17097

    Hi

    I was looking into Ehlers Cycle theories and came across a Moving Averages Study that shows Ehler’s Fractal Adaptive Moving Average (FRAMA) is far superior to the EMA and SMA (although I don’t know how it would stand up to Kaufman’s Adaptive Moving Average) :

    http://etfhq.com/blog/2010/10/09/frama-is-it-effective/#Best

    Does anyone know how to code it from this Metatrader code? :

    https://www.mql5.com/en/code/72

    Cheers
    Brad

    #17102

    Found this old code on a German forum for FRAMA moving average , modified some variables names for recent PRT version :

    I’ll post it too into the Library with credits for the author of course.

     

    1 user thanked author for this post.
    #17108

    Added to the Library for future reference: FRAMA indicator download

    #17116

    Thanks Nicolas, much appreciated.

    Do you know if FRAMA is meant to have a fast (FC) and slow (SC) moving average setting like the Kaufman Adaptive Mov Ave?
    On the link above (efthq blog) is mentions in it’s conclusion:

    “The FRAMA is astoundingly effective as both a fast and a slow moving average and will outperform any SMA or EMA.  We selected a modified FRAMA with a “FC” of 4, a “SC” of 300 and a “FRAMA” period of 126 as being the most effective fast FRAMA although the settings for a standard FRAMA will also produce excellent results.  For a slower or longer term average the best results are likely to come from a “FC” of 40, a “SC” of 250 and a “FRAMA” period of 252.”

     

    Cheers

    Brad

    #17842

    Hi Nicolas,

    The code above does appear to be come from a paper written by Ehler’s: http://www.mesasoftware.com/papers/FRAMA.pdf
    But I think there is a newer version. I found this code below for Ehler’s FRAMA which has the fast and slow moving averages setting.

    There is also metatrader code using log values of the EMA: https://www.mql5.com/en/code/72

    Is is possible to code these into PRT code (or incorporate this with your code) to compare the effectiveness of the FC and SC with the Log version?

    Thanks,

    Cheers
    Brad

    #17883

    If you can find comprehensive formula from any other trading software (not from “R” like your first one), I could code the modified FRAMA for PRT of course.

    #17907

    Not from “R”?

     

    #17922

    Hi Nicholas,

    You mean Copyrighted “C”?

    This code has the fast and Slow Mov Averages and is logarithmic. Could you delete the other two codes above? Thanks (-:

     

     

    #17936

    Nope I meant “R”, the statistical analysis software: https://www.r-project.org/

    This last new code is much more readable, I believe it can be converted to probuilder. Let me have a look.

    #17985

    Your last code proposal have some variables that aren’t used in the final calculation of the FRAMA. This prorealtime code is the result of the conversion, it returns a curve, I let you verify its information on your charts 🙂

     

    #18057

    Avec FC = 40  SC = 250  LEN = 252  j’ai cela comme retour ?!  la moyenne est “flat”

    #35462

    Dans le code on a du

    Tout va bien quand len est pair.

    Si len est impaire, ça va planter on va essayer d’accéder à Low[décimal].

    Du coup il faut faire un ROUND je suppose avant 🙂

    genre High[ROUND(count)]

    C’est pas super beau mais bon 🙂

    #35463

    Voilà mon code avec les rounds et le FIX sur le LOG

     

     

    1 user thanked author for this post.
    #35493

    Appreciated, thanks @laurenzo.

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

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