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 geddyisodin, Today, 05:20 AM
        0 responses
        1 view
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        32 views
        0 likes
        Last Post JonesJoker  
        Started by GussJ, 03-04-2020, 03:11 PM
        12 responses
        3,239 views
        0 likes
        Last Post Leafcutter  
        Started by AveryFlynn, Today, 04:57 AM
        0 responses
        5 views
        0 likes
        Last Post AveryFlynn  
        Started by RubenCazorla, 08-30-2022, 06:36 AM
        3 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X