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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        310 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X