Sunday, May 6, 2018

SWAG Strategy By Jared Odulio Amibroker Scanner AFL

SWAG Strategy
Buy EMA13>MA20
Sell EMA13<MA20

AFL Code Below:

//Disclaimer:
//All the AFL’s posted in this section are for learning purpose.
//I do not necessarily own these AFL’s and I don’t have any intellectual property rights on them. I might copy useful AFL’s from public forums 
//and post it in this section in a presentable format. The intent is not to copy anybody’s work but to share knowledge. 
//If you find any misleading or non-reproducible content then please disregard this AFL_SECTION_BEGIN("");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("EMA13-MA20 Crossover");
Buy = Cross( EMA( Close, 13), MA( Close, 20 ) );
Sell = Cross( MA( Close, 20 ), EMA( Close, 13 ) );
PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-15);
_SECTION_END();

Plot( EMA( Close,13 ),"EMA13",colorRed,styleLine);
Plot( MA( Close,20),"MA20",colorBlue,styleLine);

Technical Analysis For Forex, Cryptocurrency and Stocks.
No Hype...No Tsismis... No Drama.... Just Chart!!!!

3 comments:

  1. any link on how to use amibroker and how to upload pse quotes?

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete