Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

big discrepancy in simulation & real-time.

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

    big discrepancy in simulation & real-time.

    Back-testing with Ninja for day trading is Ok but is misleading because results are very different. Because what we got is just bar-data not level II, (tick-data from real-time). I tried to improve to calculate and trigger using multi – time bars set up but still misleading.
    1. Do you support the FirstTickOfBar for every time bar ?? like thisif (FirstTickOfBar && BarsInProgress == 1)One way is to use (ES) market replay data (which are level 2 data). But I don’t have them for last min 60 days.

    I have ZEN-FIRE and TDAmeritrade. Is it any way to get level II data from ZEN-FIRE for the last 60 days or from some body which is compatible with Ninja ??. Somehow to get level 2 simulation data after the hours.

    I tried all the possibilities still big discrepancy between real-time and simulation.

    Example today in real-time I got 4 trades 3 shorts (1 good 2 bad ones) and 1 long good one.
    In simulation for today I got 3 trades 2 long(good) ones and 1 short bad one.

    Thank you,
    mflorea

    #2
    mflorea, unfortunately differences are expected for multiple reasons listed here -



    Replay data for NT 6.5 needs to be recorded, however for our NT7 release version you could now download it from our data server to test your strategy more realistically with the Market Replay feature.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you Bernard.

      How can I download (ES) data from your server for Market Replay
      Please can you specify the steps.

      Thanks,
      mflorea

      Comment


        #4
        mflorea, you would need to upgrade to our NT7 release version - http://www.ninjatrader.com/download-registration.php

        The after NT7 startup go to File > Utilities > Download Replay data and download the days of ES replay data needed.

        If you connect then to Market Replay those dates are available for immediate replay use.

        BertrandNinjaTrader Customer Service

        Comment


          #5
          many thanks.

          Comment


            #6
            multi-tme environment

            Question. On a strategy with main time frame 15minute, secondary time frame 3 minute (CalculateOnBarClose=false). I need to calculate some on the last price of the 15m bar and trigger on the last price of 3m bar.

            Can this code get me the last prices for those 2 different time bars ??

            if (BarsInProgress == 0 && FirstTickOfBar){double last_price_idx_0 = Inputs[0][1];}
            if (BarsInProgress == 1 && FirstTickOfBar){double last_price_idx_1 = Inputs[1][1];}

            Thank you,
            mflorea
            Last edited by mflorea; 12-09-2010, 04:45 PM.

            Comment


              #7
              mflorea,

              If your input is the Close series, then yes that will achieve what you want.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                From what I understand Input, Inputs[][] is the same with Close, Closes[] on Historical and is the last tick price in real-time. Is this a correct statement ??

                mflorea

                Comment


                  #9
                  Not necessarily. Inputs is dependent on what exactly the script is running on. For this particular case scenario you have, yes it is the closing prices. For other scenarios it could be things like the high prices or low prices.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    I understand that for the FirstTickOfBar Input, Input[][1] is the Close

                    Now in other cases(in the bar) in real-time Input[][0] or Input is the Last Tick Price of the current bar
                    Or in other words how you reffers for real-time to the Last Tick Price exe: to exit a position.
                    With:
                    1. GetCurrentAsk() ??
                    2. Close[0], Closes[1][0]
                    or
                    3. Input, Input[][0] .

                    When to use Input, when to use Close, when to use GetCurrentAsk()

                    I am sorry to bother but I need to know. Those are the basics.

                    Thank you,
                    mflorea

                    Comment


                      #11
                      Originally posted by NinjaTrader_Bertrand View Post
                      mflorea, you would need to upgrade to our NT7 release version - http://www.ninjatrader.com/download-registration.php

                      The after NT7 startup go to File > Utilities > Download Replay data and download the days of ES replay data needed.

                      If you connect then to Market Replay those dates are available for immediate replay use.

                      http://www.ninjatrader.com/support/h...7/set_up12.htm
                      Is there a way to download more than one day at a time?
                      Thansks

                      Comment


                        #12
                        I do have NT7 v.23

                        But when I try it give me an error message. Somthing like. The server is bussy try later.
                        I tried many times. It is the same

                        Thanks
                        mflorea

                        Comment


                          #13
                          Originally posted by mflorea View Post
                          I do have NT7 v.23

                          But when I try it give me an error message. Somthing like. The server is bussy try later.
                          I tried many times. It is the same

                          Thanks
                          mflorea
                          Can you please try upgrading to the latest NT7 R1 release version via Help > Download Site in the software?
                          BertrandNinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by jerry1 View Post
                            Is there a way to download more than one day at a time?
                            Thansks
                            Unfortunately not Jenny, it would be one day at a time - however your suggestion / idea is already on our list for future consideration.
                            BertrandNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Barry Milan, Today, 10:35 PM
                            1 response
                            6 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Started by WeyldFalcon, 12-10-2020, 06:48 PM
                            14 responses
                            1,427 views
                            0 likes
                            Last Post Handclap0241  
                            Started by DJ888, Yesterday, 06:09 PM
                            2 responses
                            9 views
                            0 likes
                            Last Post DJ888
                            by DJ888
                             
                            Started by jeronymite, 04-12-2024, 04:26 PM
                            3 responses
                            40 views
                            0 likes
                            Last Post jeronymite  
                            Started by bill2023, Today, 08:51 AM
                            2 responses
                            16 views
                            0 likes
                            Last Post bill2023  
                            Working...
                            X