Her is part of my code,
Code: Select all
setstopposition;
setprofittarget(ProfittargetInEuros);
If marketposition=0 and SomCondition then
begin
setstoploss((LastTop + 3 - Close) * 25);
SellShort ("se") this bar;
end;
The setstoploss is never translated into a limited buy order ? The stop profit is When i move the SetStoploss outside the if it works, but I only know the stop loss calculation based on other settigns.