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
IsAdoptAccountPositionAware
Collapse
X
-
Originally posted by NinjaTrader_ChelseaB View Post
Is it possibly available in a different format that is not expired?
Leave a comment:
-
Hello Brillo,
Below is a link to the help guide on IsAdoptAccountPositionAware.
This must be set to true for the Adopt account position option to use on the On-startup behavior.
When Adopt account position is selected the strategy position will be changed to match the account position meaning the account position will be synced to the strategy position.
When synchronize account is selected (with wait until flat or immediately submit) the account position will be changed to match the strategy position meaning the strategy position will be synced to the account position.
Below is a link to a short video that demonstrates the On-startup behavior options.
Using Adopt account position would cause the strategy to start with the position of the account. This would not cause any protective orders to be submitted to protect that position so the strategy would not be resuming, it would only be adopting the account position.
Below is a link to a thread that describes how to resume a strategy.
Leave a comment:
-
IsAdoptAccountPositionAware
The doc HERE says
Only set to true if you have specifically programmed your strategy to be able to adopt account positions.
Where is the documentation on how to program a strat to do that?
I have a real time strategy:
In OnStateChange:
Code:Calculate = Calculate.OnPriceChange;
Code:if (State != State.Realtime) return;
Is it enough to just put
IsAdoptAccountPositionAware = true;
in my OnStateChange and then start the strategy with the "Adopt Account Position" start option?
The documentation on the Adopt Account Position HEREis confusing to me for 2 reasons.
1. It talks a lot about orders. In my scenario there would be no orders to consider. Only an existing account position.
2. The sentence:
Any remaining active strategy orders that cannot be successfully paired will be submitted live and the strategy will then try to sync your Account Position to your Strategy Position.
Isn't that backward? Shouldn't it read sync your Strategy Position to your Account Position? Existing wording suggests to me that it's going to change the Account Position to match the Strategy Position. I want the opposite and I think that's what this feature really is but not sure because of that sentence.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DawnTreader, Yesterday, 05:58 PM
|
2 responses
13 views
0 likes
|
Last Post
by DawnTreader
Today, 11:25 AM
|
||
Started by quicksandatl, Today, 11:11 AM
|
1 response
6 views
0 likes
|
Last Post Today, 11:24 AM | ||
Started by OllieFeraher, Today, 11:14 AM
|
1 response
2 views
0 likes
|
Last Post Today, 11:22 AM | ||
Started by aman jain, 10-01-2020, 09:25 PM
|
3 responses
293 views
0 likes
|
Last Post
by Legiboka
Today, 11:13 AM
|
||
Started by reynoldsn, Today, 07:23 AM
|
5 responses
12 views
1 like
|
Last Post Today, 11:09 AM |
Leave a comment: