Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Adding moving average to indicator

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

    Adding moving average to indicator

    Is it possible to add an SMA, or other indicators for that matter, to an indicator like is done with strategies?

    #2
    winja,

    What do you mean add it to another indicator. You can call any indicator and get the values. If you want it to plot another indicator you can call it and set a plot value to mirror the other indicator.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Adding an indicator in the Initialize() section of a strategy is so easy and is simple. For SMA(200) it is simply:
      Add(SMA(200));
      I am wondering if there is an easy way of adding an SMA(200) to an indicator I developed that plots an arrow when SMA(10) crosses SMA(20).

      Comment


        #4
        No, you can't add indicators in the Initialize(). You would just need to call the SMA() over your indicator.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PhillT, 04-19-2024, 02:16 PM
        4 responses
        31 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Started by ageeholdings, 05-01-2024, 05:22 AM
        5 responses
        36 views
        0 likes
        Last Post ageeholdings  
        Started by reynoldsn, Today, 02:34 PM
        0 responses
        8 views
        0 likes
        Last Post reynoldsn  
        Started by nightstalker, Today, 02:05 PM
        0 responses
        16 views
        0 likes
        Last Post nightstalker  
        Started by llanqui, Yesterday, 09:59 AM
        8 responses
        30 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Working...
        X