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

Indicator of an Indicator

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

    Indicator of an Indicator

    Hello I am trying to calculate Bollinger Bands for a MACD indicator signal, but I am not able to do it, Is there any specific way to calculate an indicator of an indicator?

    Thank you

    Ivanov
    Last edited by ivanov_c; 10-05-2010, 03:43 PM.

    #2
    Hello,

    Thank you for your note.

    Just to clarify your trying to do this with NinjaScript correct? If so at what point are you running into issues?

    If your just trying to add a bollinger band onto a MacD without custom programming this cannot be done in NinjaTrader 6.5. This would need to be done with NinjaTrader 7 as this is possible in NinjaTrader 7.

    NinjaTrader 7 is in the later stages of beta testing and the public beta has been released and is available at the link below. There is no release date for NinjaTrader 7 yet. Please visit the below link for information on NinjaTrader 7 features and release information, select click here to download and input your license key. Then select download version 7 for all the information pertaining to the NinjaTrader 7 Open beta.



    I look forward to assisting you further.

    Comment


      #3
      Yes, I am doing this on "NinjaScript" C# code, the issue is whenever I call the Bollinger indicator passing as an argumment the MACD DataSeries the calculations are wrong, so far the only way to do this is to calculate manually the StdDev for the MACD data on the same indicator, this works fine, But I am running into another issue doing another indicator that uses an Smoothed MA and I was wondering if there is any limitation calculating an indicator over another indicator.

      BTW, I am using NT 7 Beta 22.

      Thank you

      Comment


        #4
        Hello ivanov_c,

        It depends on how the indicators are constructed. The bollinger is hard coded to use SMA calculations and will not use MACD unless you manually code for this.

        The SMA indicator uses instead generic Input[0] to calculate, and this is why you could take the SMA of MACD value without having to code.

        NinjaTrader doesn't restrict which indicators you can pass as arguments to other indicators, even if the pairing doesn't make sense.

        Example:
        SMA(VOL(), 14) //makes sense. You're taking a moving average of volume.
        VOL(SMA(14)) //doesn't make sense but there's nothing stopping you from setting this up.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          hope its ok to cut into this thread. If I am not using script...can I type in SMA(VOL(), 14) // somewhere under indicator section?

          Comment


            #6
            Originally posted by brdnickel View Post
            hope its ok to cut into this thread. If I am not using script...can I type in SMA(VOL(), 14) // somewhere under indicator section?
            Not really type in, but you can set it up in NT7 new 'indicator on indicator' options showcased here -

            BertrandNinjaTrader Customer Service

            Comment


              #7
              Thank you, I just found the reason why I was getting erratic data, and the Input dataseries helped me to understand this well.

              I fixed the issue that caused the error on the indicator I had and now I am able to perform what I was looking for.

              Comment


                #8
                Glad to hear, ivanov_c. Thanks for the update.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by algospoke, 04-17-2024, 06:40 PM
                3 responses
                26 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by bmartz, 03-12-2024, 06:12 AM
                3 responses
                27 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Started by Aviram Y, Today, 05:29 AM
                2 responses
                8 views
                0 likes
                Last Post Aviram Y  
                Started by gentlebenthebear, Today, 01:30 AM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by cls71, Today, 04:45 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X