using this statement to exit positions with intrabar order generation enabled with the first option (enable each order in the signal to one entry and one exit) ...
bidvalue has intrabarpersist...
if marketposition > 0 and BidValue >= ( avgentryprice + (minmove/PriceScale*2)) then begin
sell next bar BidValue limit;
this will sell correctly a fix number of contracts (1 is default I assume) ...
PROBLEM : I have multiple entry and so some times pyramid the position and this exit statement will exit only 1 contract..
how can I make the code exit all currentcontracts??
I was unable to state
sell currentcontracts next bar BidValue limit;
so what do I need to do ?
Exiting multiple contracts dosnt work
Questions about MultiCharts and user contributed studies.
2 posts • Page 1 of 1