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 Javierw.ok, Today, 04:12 PM
|
0 responses
2 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
40 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
15 views
0 likes
|
Last Post Today, 02:56 PM |
Comment