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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Walking forward a strat
Collapse
X
-
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?Tags: None
-
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.htmlBertrandNinjaTrader Customer Service
-
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
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 12:14 PM
|
7 responses
16 views
0 likes
|
Last Post
by f.saeidi
Today, 01:32 PM
|
||
Started by Russ Moreland, Today, 12:54 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:01 PM | ||
Started by philmg, Today, 12:55 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:00 PM | ||
Started by TradeForge, 04-19-2024, 02:09 AM
|
2 responses
32 views
0 likes
|
Last Post
by TradeForge
Today, 12:32 PM
|
||
Started by aprilfool, 12-03-2022, 03:01 PM
|
3 responses
329 views
0 likes
|
Last Post Today, 12:31 PM |
Comment