Dear Friends I am again bringing to your attention this post which I
placed somedays back. Please help.
I need to define Moving Average 6 displaced by 4
So for Example:-
MA64= MA 6 , displaced horizontally by 4,
Then I want to
Buy=Cross(C,MA64);
Below is the diplaced MA std AFL as per AMIBROKER . The problem is it can
be plotted but cant be defined for creating a buy condition.
===============================================================
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 );
Plot( m,"", colorDarkGreen, ParamStyle("Style"), 0, 0, Displacement );