Page 1 of 1

scaled out

Posted: Oct 15 2014
by palmone
Hi have problem withs scale out. In case of currentcontracts=2 the exit is always at the same price for both contracts "trl" instead of exit just for 1


if marketposition=1 then begin

if currentcontracts=1 and c<Average(mov,20) then sell ("lave1") next bar at Open;

if currentcontracts=2 then
sell ("Trl") 1 contract Next Bar at OrderPrice Stop;


end;

Re: scaled out  [SOLVED]

Posted: Oct 15 2014
by Andrew MultiCharts
Hello palmone,

If you want to exit only part of the position, you should use the keyword "total" in your code.

Re: scaled out

Posted: Oct 15 2014
by palmone
Thank you very much andrew , the code as follow now works!

if currentcontracts=2 then
sell ("Trl") 1 contract TOTAL Next Bar at OrderPrice Stop;