Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SIM v.s Actual Live Results

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

    SIM v.s Actual Live Results

    I have a strategy that i am running in Sim and Live. The trading behavior activity does not mirror one to the next. This is beyond the scope of behavioral differences mentioned in the ninja documentation. I trade on bar close of a 5min chart for FX. Any ideas.

    #2
    Hello,

    There are significant differences between sim and live. Sim simulates the market, but it is not perfect of course.

    What are the differences?
    DenNinjaTrader Customer Service

    Comment


      #3
      SIM v.s Actual Live Results

      There are trades that take places in SIM that do not takle place at all in Live. there are trades that take place hours apart even though i am using a 5min chart. The only thing i can think of is that my strategy in live sometimes enters multiple positions even though the default quantity is set to one. So when i should be entering a Short it might really be flattening me out b/c i was long 2 positions. On the other hand many of the trades don't happen at the same time.

      Comment


        #4
        hifreq,

        Your strategy will perform as instructed to by the code. There is no difference between what should happen in simulated real-time trading vs live real-time trading besides the impact of true market conditions on fills and things like that.

        If you feel there is a large discrepancy then you need to debug your strategy live with TraceOrders = true. Maybe a lot of your orders are not making it to your brokerage. http://www.ninjatrader-support2.com/...ead.php?t=3627
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          is that a setting in the GUI or do i need to open up the code and apply?

          Comment


            #6
            You would set this from the Initialize() of your strategy code - http://www.ninjatrader-support.com/H...aceOrders.html

            Comment


              #7
              Time Frame for Ninja Strategy

              Is there a way thru the NINJA GUI to make teh following stipulation. If i want to take action when an EMA is equal to itself at some point over a give time frame or at any point going forward. Ninja would allow me to say if "EMA30 is equal to EMA 1 Bar ago" or 2 bars ago etc.... since i do not know how many bars it woudl take for these to equal each other how do i state that IF EMA30 bars ago 0 is equal to EMA 30 of any prior Bars AGO, then do xyz...... Hope that is clear

              Also how do i create a new post instead of just replying back?

              Comment


                #8
                hifreq,

                You cannot do this from the Strategy Wizard. You can only do this through the creation of a loop in actual NinjaScript code. If you are not a programmer please consider one of these 3rd party NinjaScript Consultants: http://www.ninjatrader.com/webnew/pa...injaScript.htm

                To make a new post go back to the forum category you want to post in and press the "New Thread" button.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Time Series

                  Is there any way to reference it by stating it to a time. If EMA30 is eqaul to EMA 30 over the last 72hrs (or x amount of hours) or something similar?

                  Comment


                    #10
                    hifreq,

                    Possible through code. Unfortunately you can't do it from the Strategy Wizard outright.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    86 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    48 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    30 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    33 views
                    0 likes
                    Last Post TheRealMorford  
                    Started by Mindset, 02-28-2026, 06:16 AM
                    0 responses
                    67 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X