Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello everyone,
am a newbie, on this respected forum,
need to transfer an indicator from VT Trader platform to Meta4 platform,
the indicator name is Trailing Stoploss Levels (Volatility-Based) and it's code is:
{Volatility Stop (Long)}PrelimStopLong:= HHV(H,Pds1) - ATR(Pds1)*Mult;
ActualStopLong:= HHV(PrelimStopLong,Pds2);
{Volatility Stop (Short)}
PrelimStopShort:= LLV(L,Pds1) + ATR(Pds1)*Mult;
ActualStopShort:= LLV(PrelimStopShort,Pds2);
Really appreciate ur help.
Thank u.