+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

MA_Plot

MA_Plot AFL, an AmiBroker AFL, is designed to plot multiple moving averages on a chart. When combined with an AmiBroker data feed, it visually represents various moving averages, providing traders with a clear depiction of trend direction and strength for informed decision-making.

/
_SECTION_BEGIN( "tes1");
WATCH = Cross(C,MA(C, 20)) ;
Buy = Cross(C,MA(C, 20)) AND Volume > MA(V,20);
WARNING = Cross(5,C); 
Sell = Cross(5,C) AND Volume > MA(V,20); 

Filter = (WATCH OR Buy OR WARNING OR Sell) AND Volume > 5000 ; 

AddColumn(WATCH, "WATCH");
AddColumn(Buy, "Buy");
AddColumn(WARNING, "WARNING" );
AddColumn(Sell, "Sell");

PlotShapes(IIf( Sell==1, shapeDownArrow, shapeNone), ParamColor( "Color", colorCycle ), 0,High, Offset=-25);
PlotShapes(IIf( Buy==1, shapeUpArrow , shapeNone), ParamColor( "Color", colorCycle ), 0,Low, Offset=-25);

PlotShapes(IIf( WARNING== 1, shapeHollowDownArrow, shapeNone), ParamColor( "Color", colorCycle ), 0,High, Offset=-25);
PlotShapes(IIf( WATCH==1, shapeHollowUpArrow , shapeNone), ParamColor( "Color", colorCycle ), 0,Low, Offset=-25);

P = ParamField(" Price field",-1);
Plot( MA( P, 5 ), _DEFAULT_NAME( ), ParamColor( "Ma5", colorCycle ), ParamStyle(" Style") ); 

Q = ParamField(" Price field",-1);
Plot( MA( Q, 20 ), _DEFAULT_NAME( ), ParamColor( "Ma20", colorCycle ), ParamStyle(" Style") );
_SECTION_END( );

Open chat
1
Hi, how can I help you?