Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How would it be this?

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

    How would it be this?

    I'm a newbie programmer and I'm trying to construct a MACD but using WMA instead of just EMA.

    I'd like to know hot to substitute these main lines:

    fastEma.Set((2.0 / (1 + Fast)) * Input[0] + (1 - (2.0 / (1 + Fast))) * fastEma[1]);
    slowEma.Set((2.0 / (1 + Slow)) * Input[0] + (1 - (2.0 / (1 + Slow))) * slowEma[1]);



    Any help would be highly appreciated

    #2
    Hello,

    Please take a look at the following thread and post #3 where a user has submitted his version of a MACD based on the WMA. This should give you an idea on how to accomplish your goal:

    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    139 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X