Code: Select all
if STPloos=true then
begin
messagelog("STOPLOSS ON");
SetStopPosition;
switch VTF
begin
case 1: setstoploss_pt(6);
case 3: setstoploss_pt(10);
case 4: setstoploss_pt(15);
default: setstoploss_pt(3);
end;
end;
Code: Select all
SetStopPosition;
setstoploss_pt(3);
can you change pt number in dynamic ?