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 helpwanted, Today, 03:06 AM
|
0 responses
2 views
0 likes
|
Last Post
by helpwanted
Today, 03:06 AM
|
||
Started by Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
Comment