Request somebody guide me how to select Displaced Moving Average to make an exploration. Below is the Std AFL of Displaced MA in AmiBroker. How to Select it to make condition for Price Crossing Above/Below it. Appreciate somebody guide me .Thanks Type = ParamList("Type", "Simple"); Periods = Param("Periods", 6, 2, 300 ); Displacement = Param("Displacement", 4, -50, 50 ); m = 0;
if( Type == "Simple" ) m = MA( H, 6 ); d=0.005;
Plot( m,"", colorDarkGreen, ParamStyle("Style"), 0, 0, Displacement );
|