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 Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment