Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

In doubt about the results of the indicators

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

    In doubt about the results of the indicators

    Hi,

    I've got a strategy written in an other software package, I try to rewrite it into NT. I use two timeframes the 1 minute and 3 minute. When I compare the signals generated with those from my other package they aren't compatible with the results from NT.

    The values generated by the MACD for example, I can't say they are comparible. And I am in big doubt if the values from the stochastic are comparible, they always change a little bit. But it could be that the results from the stochastic are differing because the quotes for NT are pulled from Interactive Brokers, so when a minute or 3 minute is happening can differ.

    Don't know where I'm making mistakes, but maybe you can help me. Have I done something fundamental wrong?...

    #2
    If your data is different for sure you cannot compare the two. That is like comparing apples to oranges. If you wish to see the code of the indicators you mentioned you can view them in the NinjaScript Editor and see the logic used. They are created to the generally accepted specifications for those indicators.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      And here is the code as an attachment...
      Attached Files

      Comment


        #4
        johannes,

        I cannot make a comparison for you. You will need to make an evaluation yourself. What I can tell you is that if data is different for sure you will get different results.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks for your responses!

          I think I am screwing some things up...

          Okey to clarify:
          Closes[0][0] = Gives me the last quote in my default timeframe
          Closes[1][0] = Gives me the last quote in my first added timeframe
          RSI(Closes[1],14,0)[0] = WRONG, doesn't take the closing quotes from my second added timeframe

          RSI(BarsArray[0],14,0)[0] = This will take the quotes from my second timeframe, but does it take the closing quotes? Should you mention that somewhere?

          Could you please clarify those things, I think this is my problem, is it?

          Thanks in advance!

          Comment


            #6
            Hi Johannes,

            To clarify BarsArray[0][0] returns the same value as Close[0].

            You can also check for BarsInProgress - http://www.ninjatrader-support.com/H...BarSeries.html

            Please also review our article on this from the helpguide - http://www.ninjatrader-support.com/H...struments.html

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            563 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            329 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            547 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            548 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X