Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Simultaneous Multiple Strategies ?
Collapse
X
-
Simultaneous Multiple Strategies ?
I've got several strategies that I would like to trade simultaneously. However, due to account balance restrictions, I don't want more than one to be in a trade at any given time. So, is there some way for a strategy to determine if a trade is open, and thus not enter until the account is flat? (The average time in a trade is a few minutes.)Tags: None
-
You can check if account unrealized PnL is equal to 0. because if you are on a trade that mean your unrealized PnL is either negative or positive. so it does not equal to 0. and when you do not have a trade open the unrealized PnL is always 0.
Something like this:
Code:if ((Account.Get(AccountItem.UnrealizedProfitLoss, Currency.UsDollar) == 0) && // your strategy enry condition)
Last edited by onlinebusiness; 01-13-2023, 03:37 AM.
-
Hello, thanks for writing in. The PositionAccount object in the strategy will give the position information on the account it is running on. See here for an example:
https://ninjatrader.com/support/help...onaccount_mark etposition.htm
Kind regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment