Announcement

Collapse
No announcement yet.

I want this Formula Help Me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I want this Formula Help Me

    hello with all,
    I would need a help I would wish to know if it is possible to put a new indicator in punt forms esignal. Here the formula, this formula comes from Tradestation. this indicator is called Kauffman MA thank you of your assistance and to give me the indicator has to establish.

    I thank you all by advance

    PS : I am french

    { Kaufman's Adaptive Moving Average }
    inputs:
    Price( numericseries ),
    EffRatioLength( numericsimple ),
    FastAvgLength( numericsimple ), { this input assumed to be a constant >= 1 }
    SlowAvgLength( numericsimple ) ; { this input assumed to be a constant >= 1 }
    { Eff = Efficiency }
    variables:
    NetChg( 0 ),
    TotChg( 0 ),
    EffRatio( 0 ),
    ScaledSFSqr( 0 ),
    SlowAvgSF( 2 / ( SlowAvgLength + 1 ) ),
    FastAvgSF( 2 / ( FastAvgLength + 1 ) ),
    SFDiff( FastAvgSF - SlowAvgSF ) ;
    { Eff = Efficiency, SF = Smoothing Factor }
    if CurrentBar = 1 then
    AdaptiveMovAvg = Price
    else
    begin
    NetChg = AbsValue( Price - Price[ EffRatioLength ] ) ;
    TotChg = Summation( AbsValue( Price - Price[1] ), EffRatioLength ) ;
    if TotChg > 0 then
    EffRatio = NetChg / TotChg
    else
    EffRatio = 0 ;
    { note that EffRatio is somewhat similar to RSI }
    ScaledSFSqr = Square( SlowAvgSF + EffRatio * SFDiff ) ;
    AdaptiveMovAvg = AdaptiveMovAvg[1] + ScaledSFSqr * ( Price - AdaptiveMovAvg[1] ) ;
    end ;

  • #2
    biglucky
    You can find a KAMA.efs here
    Alex

    Comment


    • #3
      THKS

      Thank YOU VERY VERY VERY MUCH

      Comment


      • #4
        biglucky
        You are most welcome
        Alex

        Comment


        • #5
          I have a big problem with the Kama

          Hello,
          I come towards you because had given you to me the bond for download Kauffman (KAMA) but there is a problem!!! I cannot put a value superior has 120 for example I need the 500 and I cannot put it I have an error message "INVALID PERIOD" How to make because I have besoind' too to have this period.
          Others periodes walk well but that Ci not.


          Thank you to help me please.

          Comment


          • #6
            biglucky
            Open the KAMA.efs with the Editor (Tools->EFS->Editor in the main menu).
            Then find the following section (towards the beginning of the script)



            You can either change the value for setUpperLimit( 125 ) to for example setUpperLimit( 600 ) or you can just comment out the line.
            To comment out a line type // at the beginning of the line as shown in the next image (the line will become all grey)



            Save the efs and reload it in the chart. At that point you will be able to use higher values for Period.
            Alex

            Comment


            • #7
              Oki Thks

              Yes, thank you while looking at well I had to find. Large a mercy has your rèponse fast.


              Bye Well trade has you

              Comment

              Working...
              X