- ago
Are buys/sells executed in the weighted order do all sell get executed followed by buys in weighted order until NSF? Can this be controlled in backtesting?
0
992
2 Replies

Reply

Bookmark

Sort
- ago
#1
When processing market orders, sells are executed first followed by buys.
0
Cone8
 ( 4.98% )
- ago
#2
QUOTE:
Can this be controlled in backtesting?
Of course. For Market order strategies, see the Transaction class example for Weight.

You can assign your own Weight for a Limit/Stop strategy too, but real life rules would require that weight to be Time-Of-Day related. WL7 does this automatically for you using the Strategy Advanced Settings > Use Granular Limit/Stop Processing (see Help, intraday data required).
0

Reply

Bookmark

Sort