Thanks Mladen,
I translate code with Google. There is 6 option (ATR,Fractal,MA,Parabolic,%) for trailing. I didn't understand the last of them .
Is this constant pips ? Sorry for Non Ascii codes.
Code: Select all
extern int delta=0; // îòñòóï îò ğàñ÷åòíîãî óğîâíÿ ñòîïëîññà
Code: Select all
default: // ïî ïóíêòàì
if(tip==POSITION_TYPE_BUY)
{
prc=NormalizeDouble(price-delta*_Point,_Digits);
StringConcatenate(txt,"SL Buy pips ",DoubleToString(prc,_Digits));
}
if(tip==POSITION_TYPE_SELL)
{
prc=NormalizeDouble(price+delta*_Point,_Digits);
StringConcatenate(txt,"SL Sell pips ",DoubleToString(prc,_Digits));
}
break;
}