Please help me convert this indicator to metastock

#1
This indicator is in aMiBroker format. I hope you can help me to convert it to Metastock


AdjBar = Param( "Bar", 0, 0, BarCount, 1 );
AdjZ = Param( "Zig", 2, 0, 20, .1 );
//Select Current Tickers OHLC
CO = Ref( O, -AdjBar );
CH = Ref( H, -AdjBar );
CL = Ref( L, -AdjBar );
CC = Ref( C, -AdjBar );

//Create Trend
ZAC = Zig( CC, AdjZ );
UTrend = ZAC > Ref( ZAC, -1 );
DTrend = ZAC < Ref( ZAC, -1 );
//Do Cross (Create Result Arrays)
t1 = OscP( 12, 26);
Cond1a = Cross ( t1, MACD() );
Cond1b = MACD() > -1 AND MACD() < 0;
Cond1 = Cond1a AND Cond1b;
Cond2 = MACD() > Signal() - .5;
Cond3 = Cross( 0, t1 );
 

Similar threads