You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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