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;
scaled out [SOLVED]
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: scaled out [SOLVED]
Hello palmone,
If you want to exit only part of the position, you should use the keyword "total" in your code.
If you want to exit only part of the position, you should use the keyword "total" in your code.