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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        45 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X