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.
I have a small amount of Amibroker code that I need to convert to MT4 code. Can anyone help?
It is a type of trailing stop I use.
Countback=Param("Countback",50,1,100,1);
LVSL=Param("1",0.0010,0.0010,0.020,0.020);
HVSL=LVSL+0.0030;
Cond1=LLV(L,Countback);
trigger = Cross(Ref(cond1,-1),Low);
myLine = cond1;
for (i = 1; i < BarCount; i++)
{
if (!trigger && myLine > myLine[i-1])
myLine = myLine[i-1];
}
Plot(myLine+LVSL,"LowVolSL",colorBlue,styleLine);
Plot(myLine+HVSL,"HighVolSL",colorRed,styleLine);
Many thanks if you can help
Rob