Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sync-ing an always in strategy across weekends
Collapse
X
-
@Ignignokt
I can see there is
AccountValue v=Account.GetAccountValue(AccountItem.BuyingPower, Currency.Euro);
double byingpower=v.Value;
which is probably Account Global
then you have
this.GetAccountValue(AccountItem.BuyingPower);
which is the strategy local version.
Please feel free to test these functions and get back with some info on their usability.
Best regards
Andreas
Comment
-
Guys, this is 110% unsupported, so don't even ask us about the following code:
Code:foreach (Account acct in Cbi.Globals.Accounts) { if (acct.Positions != null) { PositionCollection positions = acct.Positions; foreach (Position pos in positions) { Print(pos.Account.Name + " " + pos.Instrument + " " + pos.MarketPosition + " " + pos.Quantity + " " + pos.AvgPrice); } } }
AustinNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Geovanny Suaza, Today, 09:28 AM
|
0 responses
1 view
0 likes
|
Last Post
![]() |
||
Started by mtamaku, 12-30-2024, 08:56 AM
|
1 response
35 views
0 likes
|
Last Post
![]()
by mtamaku
Today, 09:23 AM
|
||
Started by Johnny, Today, 08:54 AM
|
0 responses
7 views
0 likes
|
Last Post
![]()
by Johnny
Today, 08:54 AM
|
||
Started by MattD888, Today, 08:49 AM
|
0 responses
3 views
0 likes
|
Last Post
![]()
by MattD888
Today, 08:49 AM
|
||
Started by cutzpr, 02-13-2025, 05:24 PM
|
3 responses
14 views
0 likes
|
Last Post
![]()
by cutzpr
Today, 08:22 AM
|
Comment