the similar same coding on buy and sellshort, those works smoothly.
Code: Select all
buy 2 contracts next bar at market;
sellshort 2 contracts next bar at market;
but on the other hand, it is not workable for exit market.
Code: Select all
buytocover 2 contracts next bar at market;
sell 2 contracts next bar at market;
for example, when the system already sell and hold 10 contracts, I would like to close 2 contracts once conditions are match. but the signal just submit a 2 contracts order only one time. Even the new coming data1 bar close and those conditions are match, no orders will be submit!! then I still sell and hold 8 contracts. anything wrong with my coding? any comments and help is appreciate.