Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Walking forward a strat

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

    Walking forward a strat

    Hello,

    I've started forward testing a strategy and something peculiar is happening. It is entering on my exits and exiting on my entrances. For Entry names, it will say something like buy to cover, exit: sell short. I think part of the problem may be the virtual fill it uses when the strategy is first started. Any idea how I can fix this?

    #2
    Hi, are you walk forward testing it with the Strategy Analyzer or testing it on live on real time data? For the later it will be a synching issue between your account position and the strategy position, please see this link for more details - http://www.ninjatrader-support.com/H...tPosition.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I am testing it on live data.

      So let me see if I got this right from your link. When the strategy starts running, it is running on historical data and needs to be synced to the live data. I can accomplish this by simply opening and closing an order.

      Correct?

      Comment


        #4
        Yes, correct you want to manually sync your account position to the strategy position.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          So I have to manually enter where the strategy would to sync it? Or can I just enter and exit so it knows to use the live data?

          Comment


            #6
            Not sure what you mean by enter/exit to use live data, but you will want to manually sync up your account position to your strategy position as you start up.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              So the process is start the strategy, wait for the entry signal and then manually enter the trade and it should automate all the executions in the account from there?

              Comment


                #8
                Dobbes,

                No, as you start the strategy it will already have a strategy position determined. It will either think you are long, short, or flat. Depending on what your account position is you will need to sync your account position to this strategy position immediately. If strategy says long and account is flat, buy manually on account to match the long. etc.

                Alternatively, if you are for sure using account position as flat you can go to Tools->Options->Strategies->NinjaScript and select "Wait until flat". With this option the strategy will start up with its strategy position, but will do everything virtually until it reaches a flat state which will in turn mean you are in sync with your account position. Then once the sync occurs it will place all further trades to your account.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Ok Josh, I think that I finally get it. Thank you once again.

                  Comment


                    #10
                    Why are the strategy performance results and the account results so different?

                    Comment


                      #11
                      Account performance are your real live trades. Very likely your account doesn't have even close to as many trades as your strategy's virtual trades.
                      Josh P.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by f.saeidi, Today, 12:14 PM
                      7 responses
                      16 views
                      0 likes
                      Last Post f.saeidi  
                      Started by Russ Moreland, Today, 12:54 PM
                      1 response
                      6 views
                      0 likes
                      Last Post NinjaTrader_Erick  
                      Started by philmg, Today, 12:55 PM
                      1 response
                      7 views
                      0 likes
                      Last Post NinjaTrader_ChristopherJ  
                      Started by TradeForge, 04-19-2024, 02:09 AM
                      2 responses
                      32 views
                      0 likes
                      Last Post TradeForge  
                      Started by aprilfool, 12-03-2022, 03:01 PM
                      3 responses
                      329 views
                      0 likes
                      Last Post NinjaTrader_Adrian  
                      Working...
                      X