I am just wondering why "Adopt Account Position" is treated so differently from the other choices. Here are the three differences I noticed:
Difference #1. The "Start Behavior" drop-down list of the NinjaTrader 8 Strategy Builder has choices for all Start Behaviors except "Adopt Account Position".
Difference #2. This "Start Behavior is the only one that requires another line of code to work, namely "IsAdoptAccountPositionAware = true;".
Difference #3. There are plenty of examples throughout the forums of strategies whose "Start Behavior" was set to "Adopt Account Position" by the combination of the following two lines of code, but all of these examples either used unmanaged order handling or an "else if (State == State.Realtime)" block in the OnStateChange() method:
IsAdoptAccountPositionAware = true; StartBehavior = StartBehavior.AdoptAccountPosition;
Are there any examples of a really simple strategy that uses the two lines of code above to successfully have a "Start Behavior" of "Adopt Account Position", or is this "Start Behavior" particularly complicated to implement or dangerous as compared to the other options?
Thanks in advance,
EquityTrader
Comment