My strategy involves using limit orders 4 ticks away from market price when condition is TRUE to take long or short.
1. Will the following the condition below become TRUE if long limit order is pending awaiting to be filled? Or will it become TRUE only if long limit order is filled?
2. Does the Position.AvgPrice only consider filled orders and not pending orders waiting to be filled?
// if in a long position and 15 ticks from entry, bring stop to breakevem
if (Position.MarketPosition == MarketPosition.Long && High[0] >= Position.AvgPrice + 15* TickSize)
(adjust stop to breakeven code)
I am trying to make sure my break even code is not getting executing for limit pending orders.
Thank you for the help
Comment