Dear friends ...
Plz add buy sell signal for the bellow Afl ..
Conditions :
Buy signal should come while candle close above " BA " Line ... ( Buy Above )
Sell signal should come while candle close bellow " SB " Line ... ( Sell Bellow )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
AFL code :::::::
_SECTION_BEGIN("Buy Sell");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = EncodeColor(colorRed)+ "www.bstarplus.com " + 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() );
tO = TimeFrameGetPrice("O", inDaily);
BA=((tO*.236/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
SB=(tO-(tO*.236/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT1=((tO*.455/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST1=(tO-(tO*.455/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT2=((tO*.786/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST2=(tO-(tO*.786/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT3=((tO*1/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST3=(tO-(tO*1/100));
DayO = TimeFrameGetPrice("O", inDaily);
BB=(BA+3);
DayO = TimeFrameGetPrice("O", inDaily);
SS=(SB-3);
DayO = TimeFrameGetPrice("O", inDaily);
Plot(BA, "BUY ABOVE",colorGreen,styleLine);
Plot(SB, "SELL BELOW",colorRed,styleLine);
Plot(to, "Daily open",colorBlack,styleDots+styleNoLine);
Plot(BB, "BB",colorYellow,styleLine);
Plot(SS, "SS",colorYellow,styleLine);
Plot(BT1, "BUY TARGET1",colorBlue,styleLine+styleNoTitle);
Plot(ST1, "SELL TARGET1",colorDarkRed,styleLine|styleNoTitle);
Plot(BT2, "BUY TARGET2",colorBlue,styleLine|styleNoTitle);
Plot(ST2, "SELL TARGET2",colorDarkRed,styleLine|styleNoTitle);
Plot(BT3, "BUY TARGET3",colorBlue,styleLine|styleNoTitle);
Plot(ST3, "SELL TARGET3",colorDarkRed,styleLine|styleNoTitle);
Plot(BB, "BB",colorYellow,styleNoLine);
_SECTION_END();
Plz add buy sell signal for the bellow Afl ..
Conditions :
Buy signal should come while candle close above " BA " Line ... ( Buy Above )
Sell signal should come while candle close bellow " SB " Line ... ( Sell Bellow )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
AFL code :::::::
_SECTION_BEGIN("Buy Sell");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = EncodeColor(colorRed)+ "www.bstarplus.com " + 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() );
tO = TimeFrameGetPrice("O", inDaily);
BA=((tO*.236/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
SB=(tO-(tO*.236/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT1=((tO*.455/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST1=(tO-(tO*.455/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT2=((tO*.786/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST2=(tO-(tO*.786/100));
DayO = TimeFrameGetPrice("O", inDaily);
BT3=((tO*1/100)+tO);
DayO = TimeFrameGetPrice("O", inDaily);
ST3=(tO-(tO*1/100));
DayO = TimeFrameGetPrice("O", inDaily);
BB=(BA+3);
DayO = TimeFrameGetPrice("O", inDaily);
SS=(SB-3);
DayO = TimeFrameGetPrice("O", inDaily);
Plot(BA, "BUY ABOVE",colorGreen,styleLine);
Plot(SB, "SELL BELOW",colorRed,styleLine);
Plot(to, "Daily open",colorBlack,styleDots+styleNoLine);
Plot(BB, "BB",colorYellow,styleLine);
Plot(SS, "SS",colorYellow,styleLine);
Plot(BT1, "BUY TARGET1",colorBlue,styleLine+styleNoTitle);
Plot(ST1, "SELL TARGET1",colorDarkRed,styleLine|styleNoTitle);
Plot(BT2, "BUY TARGET2",colorBlue,styleLine|styleNoTitle);
Plot(ST2, "SELL TARGET2",colorDarkRed,styleLine|styleNoTitle);
Plot(BT3, "BUY TARGET3",colorBlue,styleLine|styleNoTitle);
Plot(ST3, "SELL TARGET3",colorDarkRed,styleLine|styleNoTitle);
Plot(BB, "BB",colorYellow,styleNoLine);
_SECTION_END();