Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exponential moving average

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

    Exponential moving average

    Hi,
    sorry if I disturb with the usual weekly question.

    Someone can tell me which is (or where I can find) the code to do the “exponential moving average” from a “exponential moving average” (EMA by EMA)?

    Thanks for the reply
    Germano

    #2
    Hi Germano, you could just take a look at the ready made DoubleEMA scripts in our sharing - http://www.ninjatrader-support2.com/...uble+MA&desc=1

    A snippet for the EMA on EMA call would be this, 10 denoting the Period of each EMA used -

    Code:
     
    double myDoubleEMA = EMA(EMA(Close, 10), 10)[0];

    Comment


      #3
      Many thanks Bertrand... you're a friend (I am in debt to some drink) :-)

      Comment


        #4
        You're welcome germano, great this helps.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X