Australian (ASX) Stock Market Forum

Converting indicators from Metatrader to Ninjatrader/Amibroker?

Joined
27 February 2008
Posts
11
Reactions
0
Hi,

Does anyone here know how to convert indicators I have on metatrader (MQ4) to either Ninjatrader or Amibroker?


Thanks,
Paul
 
I have a small amount of Amibroker code that I need to convert to MT4 code. Can anyone help?
It is a trailing stop.



Countback=Param("Countback",50,1,100,1);

LVSL=Param("1",0.0010,0.0010,0.020,0.0020);

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);




Regards

Rob
 
Top