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

MultiTimeFrame indicator DataSeries problem

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

    MultiTimeFrame indicator DataSeries problem

    Hi Guys,

    I am having an issue using a DataSeries in a multi time frame indicator. This doesn't occur when I don't have a second or more time frame.

    I am using NT 7.0.1000.1

    In the attached indicator I have two plots.

    MA1 - Plots an SMA of the BarClose directly
    Code:
    MA1.Set(SMA(Closes[0], 13)[0]);
    MA2 - Plots an SMA of the BarClose through a DataSeries
    Code:
    sMA.Set(Closes[0][0]);
    MA2.Set(SMA(sMA, 13)[0]);
    To test, load a 5 second chart of any instrument, and put this indicator on it. As new bars form, you will see the two plots diverge. I chose a 5 second chart because it updates quickly and you won't have to wait to see it.

    If I am doing something wrong please let me know.

    Another unrelated nuance, when exporting an indicator that uses the default BollingerBands indicator, you have to manually add the @Bollinger indicator to the export, otherwise NT will give an export error stating its missing it. This isn't a big deal, but I have only found this issue when using Bollinger in my custom indicators.

    As always, thanks
    Anthony
    Attached Files
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    Thanks for the report Anthony, will take a look and test here on our end.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I could reproduce the issue, we will look into - for the export error message you get - yes this can be unfortunately the case - http://www.ninjatrader.com/support/h...t_problems.htm
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Anthony, thanks again for raising this one and reporting in to us with the sample - we applied a code change addressing the issue spotted, please restest in NT7 R2 and report back should you see any issues still.

        Thanks for the support,
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hey Bertrand,

          Any time.

          I'm assuming NT7 R2 will be released soon? The website shows RC 1 for me. I may need to clear my browser.
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            Hi Anthony,

            R1 (7.0.1000.1) is the latest version available. Unfortunately no time frame yet on R2, but there should be notification message in the platform when this is available.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Okay, when RC2 is released I will upgrade and test.

              Thanks
              mrlogik
              NinjaTrader Ecosystem Vendor - Purelogik Trading

              Comment


                #8
                ..and life was so SO simple with an acubus

                Originally posted by NinjaTrader_Bertrand View Post
                Anthony, thanks again for raising this one and reporting in to us with the sample - we applied a code change addressing the issue spotted, please restest in NT7 R2 and report back should you see any issues still.

                Thanks for the support,
                Bertrand and Anthony,

                Just for clarification, and my peace of mind (what is left of it) I put this up on 5 sec $EURUSD historical chart and there is no difference in the plotting.

                In as much as I use a similar calculation in a strategy, which should be considered accurate to use.

                TIA!
                Jon
                Attached Files

                Comment


                  #9
                  Did you let this run real-time yet? That is when the problem shows itself.
                  mrlogik
                  NinjaTrader Ecosystem Vendor - Purelogik Trading

                  Comment


                    #10
                    ????

                    Originally posted by mrlogik View Post
                    Did you let this run real-time yet? That is when the problem shows itself.
                    Anthony,

                    No, I didnt ... will try on Monday with FX ... btw, which version is accurate and which is the version that is giving incorrect output? My guess is that indicator.x.dataseries is faulty but dont want to assume.

                    Perhaps NT Support will post a workaround for until R2 appears with a fix? {hint}

                    Thanks
                    Jon
                    Last edited by Trader.Jon; 12-18-2010, 10:26 AM.

                    Comment


                      #11
                      Trader,

                      The work around is don't use a DataSeries as an input for a NT function.

                      MA2 is what doesn't work. MA1 works fine.
                      mrlogik
                      NinjaTrader Ecosystem Vendor - Purelogik Trading

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by cre8able, Yesterday, 01:16 PM
                      3 responses
                      11 views
                      0 likes
                      Last Post cre8able  
                      Started by Harry, 05-02-2018, 01:54 PM
                      10 responses
                      3,203 views
                      0 likes
                      Last Post tharton3  
                      Started by ChartTourist, Today, 08:22 AM
                      0 responses
                      6 views
                      0 likes
                      Last Post ChartTourist  
                      Started by LiamTwine, Today, 08:10 AM
                      0 responses
                      2 views
                      0 likes
                      Last Post LiamTwine  
                      Started by Balage0922, Today, 07:38 AM
                      0 responses
                      5 views
                      0 likes
                      Last Post Balage0922  
                      Working...
                      X