Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I modify EMA indicators?

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

    How can I modify EMA indicators?

    Hi,

    I want to add a customized EMA indicator(named SuperEMA), which is compose of max value EMA (high), EMA(close) and min vaule EMA( Low).

    How can I add High and Low EMA indicator?

    Many thanks
    Thomson

    #2
    Hello Thomson,

    Thank you for your note.

    In your code you can define which Data Series the EMA is calculated off of.

    • EMA(High, period)[0];
    • EMA(Low, period)[0];


    By default the EMA will use the Close.

    EMA(period)[0] is the same as EMA(Close, period)[0];





    Additionally, you may be interested in the "Typical" data series which is the (High + Low + Close) / 3



    EMA(Typical, period)[0];
    CameronNinjaTrader Customer Service

    Comment


      #3
      Thanks for your quickly responded. I appreciate it.

      Best regards
      Thomson

      Comment


        #4
        Thomson,

        Glad to help out.

        Let me know if you have any further questions.
        CameronNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X