Code conversion - Amibroker to MT4

 

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

 

;-)

 

We can translate Amibroker indicators into MT4, in very reasonable prices.

Contact us - FXCode.