Please help to generate buy /sell arrows signals on below AFL

Please help me to generate buy sell arrows signals & how can i get it in ALERT OUTPUT WINDOW

Buy Condition-1 , when green line cross red line upside
Buy Condition -2 when green line cross yellow line upside
Sell Condition-1 when green line breaks redline downside
Sell Condition-2 when green line breaks yellow line downside
Buy /Sell signal arrow to be generated whenever either condition fulfill


TRH = IIf(Ref(C, -1) > H, Ref(C, -1), H);
TRL = IIf(Ref(C, -1) < L, Ref(C, -1), L);
ad = IIf(C > Ref(C, -1), C - TRL, IIf(C < Ref(C, -1), C - TRH, 0));
xAD = Cum(ad);
X=nda = Wilders(EMA((xAD-Ref(xAD,-1)),14),7);
Plot(nda, "nda" , colorBrightGreen,4 , styleLine|styleThick);
Plot(ndi, "ndi" , colorYellow , styleLine|styleThick|styleDots);

P = ParamField("Price field",-1);
Periods = Param("Periods", 50, 2, 300, 1, 10 );
B= TEMA( P, Periods );
Plot(b, _DEFAULT_NAME(), ParamColor( "ColorRED", colorRed ), ParamStyle("Style") );


Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Are you a day trader?