I want to reverse a short position.
The result is that 2 positions are created instead of 1 reverse position.If MarketPosition = -1 Then begin
Buy("Rev_S") 2 Contracts Next Bar At (limitvalue) Limit;
end;
SetProfitTarget(TargPts * BigPointValue );
SetStopLoss(SLPTs * BigPointValue);
Is there anything wrong with the code ?