Respectively, what happens if your manual trade has open position and strategy kicks in and places orders opposite direction?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trading manually on same contract as the strategy
Collapse
X
-
Trading manually on same contract as the strategy
What happens if a running strategy on the same futures contract has open position and you place an order that goes against it manually?
Respectively, what happens if your manual trade has open position and strategy kicks in and places orders opposite direction?Tags: None
-
Hello jiminssy,
Thanks for your post.
In both cases your account position would be made flat and in both cases your strategy would be in a strategy (virtual) position. In both cases when the strategy closes its strategy (virtual) position it would be placing live orders and if your account position is flat it would put you into an account position. The process is now one of the strategy being out of sync with your account.
Said another way, your strategy is unaware of any other activity and will place orders according to its strategy code.
An important concept to understand prior to using NinjaScript strategies in a real-time trading environment (live brokerage account, for example) is the difference between a Strategy Position and an Account Position. To further clarify, please review: http://ninjatrader.com/support/helpG..._account_p.htm
If you wish to trade the same instrument as the strategy this would best be done by using another account. Your strategy would be operating on one account and be in sync with it and your manual trades in another account would not effect the account positions of the strategy. You can test this by using two sim accounts, one for your strategy and one for your manual trades.Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
71 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
Comment