Amibroker buy sell signal with SL

jagankris

Well-Known Member
#2
Hello

how to get in Amibroker buy sell signal with SL price

where to paste that AFL

Take some sample buy sell signal lots of AFL's are available in the net.
Right click on the chart -> Edit Formula -> paste your formula ->Save your AFL with some name -> on the top press verify syntax -> then Apply indicator
 
#5
Hello

how to get in Amibroker buy sell signal with SL price and Sound Alert

my AFL


_SECTION_BEGIN("Price");
//SetChartBkColor( colorBlack );
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));

Col_1 = IIf(EMA(RSI(39),30) > Ref(EMA(RSI(39),30),-1),colorGreen,colorRed);
//Plot( C, "", col_1, styleCandle);

Plot(C,"",Col_1,64);

pds=50;
DonchianUpper =HHV(Ref(H,-1),pds);
DonchianLower = LLV(Ref(L,-1),pds);
DonchianMiddle = (DonchianUpper+DonchianLower)/2;


Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianLower,"DL",colorBlue,styleLine);


x = EMA(C,15);
y = EMA(C,75);

Buy=Cross(x,y);
Sell=Cross (y,x);

Plot(EMA(Close,15),"15 ema",colorYellow,style=styleLineThick=5);
Plot(EMA(Close,75),"75 ema",colorCustom12,style=styleLineThick=9);
Plot(EMA(Close,200),"200 ema",colorOrange,style=styleLineThick=9);




PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);





Trend1 = EMA (Close,1) > EMA(Close,50);
Trend = IIf( Trend1, colorGreen, colorRed);
Plot( 4, "", Trend, styleArea|styleOwnScale|styleNoLabel, 0, 100);



Trend1 = EMA (Close,50) > EMA(Close,200);
Trend = IIf( Trend1, colorBlue, colorRed);
Plot( 8, "", Trend, styleArea|styleOwnScale|styleNoLabel, 0, 100);





_SECTION_BEGIN("Magnified Market Price");
//by Vidyasagar, [email protected]//
FS=Param("Font Size",30,30,100,1);
GfxSelectFont("Arial", FS, 900, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorYellow) );
//Hor=Param("Horizontal Position",800,800,800,800);

Hor=Param("Horizontal Position",20,20,500,20);

Ver=Param("Vertical Position",50,50,250,50);
GfxTextOut(""+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 12, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
Buy=xx>=2;
_SECTION_END();