Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price minus EMA

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

    Price minus EMA

    Hi ,
    It was fairly easy to create a EMA plus 20 cents , so now I'm wondering if creating "price minus a EMA" would be basically the same thing . : Could I just Edit the EMA again and put (your word for the close of Price ) in front of the
    {
    Value.Set(CurrentBar == 0 ? Input[0] : Input[0] * (2.0 / (1 + Period)) + (1 - (2.0 / (1 + Period))) * Value[1]);
    }

    Formula ... ???
    tia

    #2
    I did not look at the code but if you were able to do the plus 20 cents, just create another indicator and minus the 20 cents.
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      I did not look at the code but if you were able to do the plus 20 cents, just create another indicator and minus the 20 cents.
      OK , you didn't understand the question . I wasn't looking for the opposite of
      what I did before . I want the Last closing price - a exponential moving average . Kind of the same thing as the Dinapoli Detrend only using and EMA
      instead of a SMA and being able to use a moving average of the high or Low if
      I want .

      Comment


        #4
        Close[0] - EMA(periodValue)[0]
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        597 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X