Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to get account position and order status?
Collapse
X
-
Thanks Josh! Since the internet sometimes is not stable,
the active orders might be filled when the internet is temperarily disconnected. After the internet connection comes back by itself, the strategy will lose its synchronization with the account. That is why I would like to have a method or function to check account position and order status before making any new orders. If it is not possible now, is it planned in the future version of NT?
Comment
-
Dear Ninjatrader Support,
Hi, I have a question.
Have you come up with a method to get account position / quantity in NT7?
I would like to know because I have the same problem sometimes.
(meaning I would need to check the actual account position after reconnection.)
Look forward to hearing from you.
Comment
-
hana_maui,
What was possible to be released with NT7 was a way to check your account values. This is done in GetAccountValue(). Unfortunately there is no way to do positions across the strategy. The way to do that would be you have to store global variables across your strategies to be able to calculate your own position/quantity. If you do manual trades though, that would not be included.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by inanazsocial, Today, 01:15 AM
|
1 response
5 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
6 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
1 view
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
Comment