Contribute

Contribute an indicator to the library by clicking here. Note you must be logged in.

New! Stock Portfolio Organizer is now available:
  • Shares, Margin, Futures and Forex
  • EOD and Realtime data
  • And Much More...
GoTo Stock Portfolio Organizer
New! WiseTrader Toolbox for Amibroker is now available with:
  • Advanced Adaptive Indicators
  • Advanced Pattern Exploration
  • Neural Networks
  • And Much More...
GoTo WiseTrader Toolbox

Popular Indicators

simple amibroker formula for buy and sell for Amibroker (AFL)

_SECTION_BEGIN("www.disciplined.trade");
//created by ashok (www.disciplined.trade)
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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
EMA5 = Ref(EMA(Close,5),-1);
EMA20 = Ref(EMA(Close,20),-1);
Buy = EMA5>EMA20 AND Cross(High,EMA5) AND Close>Ref(Close,-1);
Sell = EMA20>EMA5 AND Cross(Low,EMA5) AND Close<Ref(Close,-1);
Filter = (Buy OR Sell) AND MA(V,10)>100000;
AddColumn(Close,"close");
AddColumn(Volume,"volume");
AddColumn(Buy,"buy");
AddColumn(Sell,"sell");

_SECTION_END();



The idea is to find the stocks that have low crossed below the 5 day EMA and stocks that have crossed the 5 day EMA price

Main Menu

Indicators

Sponsors