If (Buy Condition), EnterLongLimit(Close[0] - ATR(10)[0]);
If (Sell Condition), ExitLongLimit(Close[0] + ATR(10)[0]);
Let's assume the bar data ..
Previous bar: Close=$100, Close+ATR = $101
Current bar: Close=$101, Close+ATR = $102
If I activate my strategy at Current bar with "Immediately Submit Historic Live Orders" setting and it already holds a historic position (from backtesting), what's the behavior - will it
(A) try to chase the previous bar and place a live Sell order at $101, which would execute immediately because the current price is $101. How many bars back does it go to place a live order?
(B) place a live order at current bar reference $102.
2) I believe intra-bar execution required and helpful for this? Is it to "chase" orders only within the current bar?
3) When SyncWithAccountPosition=False, in what situation is "Immediately Submit" option useful? The strategy will never know if it's in sync with the account and fire off orders immediately once activated, which may always be out-of-sync, leading to account degradation. (With Wait Until Flat option, i may have time to manually reset the Account position if it's out-of-sync, before the strategy places live orders.
4) Likewise ImmediatelySubmit with SyncAccountPosition=True also seems like a bad idea because it will flatten the account immediately (at a sub-optimal price) and then fire off its orders.
Overall, it seems like SyncWith AccountPosition=True with WaitUntilFlat is the only safe option where I ensure against Account losses. Is this assessment correct?
thx
Kiran
Comment