My strategy seems to work with the IB TWS when there is only 1 contract in a position.
When there is a pyramided position which needs to exit all contracts the MC IB get it wrong. It reverses the position instead of only closing it.
this is the statement I use ...
I use the intrabar order generation with the third option (allow signal for unlimited etc '' ..
to cover short my statement is
if marketposition < 0 then buytocover next bar XX limit ...
to sell long my statement is
if marketposition > 0 then buytocover next bar XX limit ...
in the attached file you can see the strategy just coverd a short 2 contract position but each order to cover was sent with a size of "2" so now I end up long 2.
pls explain tell me how to make this something I can trust and not just play with..
Auto Trading BUG when closing a multiple future position
Questions about MultiCharts and user contributed studies.
3 posts • Page 1 of 1
- IB duble cover
- IB_bug.PNG (152.34 KiB) Viewed 379 times