Can someone convert this amibroker trend indicator to mt4,please

#1
I can not remember where i found this,but it's a nice trend indicator to add to my current setup.

_SECTION_BEGIN("Higher Highs and Lower Lows");

//_________________________________________________________
// if Blue makes lowest low at prices on top - enter short
// if Red makes lowest low at price at the bottom - enter long
hh = High;
ll = Low;

period = Param("period", 12, 1, 100 );

hhh = IIf( hh > Ref( hh, -1 ),
(hh - LLV( hh, period ))/( HHV( hh, 12 ) - LLV( hh, 12 ) ),
0 );

hhs = 100 * EMA( hhh, 12 );

lll = IIf( ll < Ref( ll, -1 ),
(HHV( ll, 12 ) - ll)/( HHV( ll, 12 ) - LLV( ll, 12 ) ),
0 );

lls = 100 * EMA( lll, 12);

Plot( hhs, "HHS" + period, colorRed );
Plot( lls, "LLS" + period, colorGreen);

ShortRaw = lls < 10 AND Close < Open ;

Buy = Cross (hhs,lls);
Sell = Cross (lls,hhs);
Buy = ExRem( Buy, Sell);
Sell = ExRem( Sell,Buy);


PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy,colorBlue, colorRed ) );
_SECTION_END();
 

Similar threads