Parabolic SAR AFL: Attractive Buy Sell Signal AFL for Amibroker
PARABOLIC SAR BUY SELL SIGNAL AFL
Parabolic SAR AFL – parabolic stop and reverse measure the potential reversals in the market price direction of traded goods such as stock or currency exchanges like forex. Parabolic SAR Indicator AFL is a trend-following (lagging) indicator. This AFL may used to set a trailing stop loss or determine entry or exit points based on prices tending. Stay trade within a parabolic curve during a strong trend.
In technical analysis, parabolic SAR (parabolic stop and reverse) is a method devised by J. Welles Wilder, Jr. The theory’s concept of time decay, the concept draws on the idea that “time is the enemy”. Unless a security can continue to generate more profits over time, it should be liquidated. The indicator generally works only in trending markets, and creates “whipsaws” during ranging or, sideways phases.
Therefore, Wilder recommends first establishing the direction or change in direction of the trend through the use of parabolic SAR, and then using a different indicator such as the Average Directional Index to determine the strength of the trend.
In figure Parabolic SAR Buy Sell Signal afl clearly show us the major point of buy or sell signal. If you watch below figure, its clearly shows price movement whether it’s downside or upside. Also this afl has a power tools. Three color are used in candle. Green color means upside and downside color is red. Another color is mention by white color which measure it’s sideways movement.
Image of Best Parabolic SAR AFL [amibroker formula language].
In image We can watch that there are three major color like green, red and white in candle chart. Which is mention it’s price movement. By dotted it mention original Parabolic SAR line. When trends are finish its touch line upper side or downside than parabolic SAR Dot line also be notice.
Parabolic SAR Indicator AFL CODE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | //------------------------------------------------------------------------------ // Formula Name : PARABOLIC SAR BUY SELL SIGNAL AFL for Amibroker by pipschart // Author : KrT group // Uploader : www.pipschart.com // E-mail : info@pipschart.com // Amibroker Blog : www.pipschart.com/amibroker // AFL Amibroker : https://pipschart.com/latest-amibroker-afl-collection-download/ // Origin : Modified & Collected from different sources. //------------------------------------------------------------------------------ _SECTION_BEGIN("KrT group"); GfxSetBkMode(1); X=750; Y=1; Font=10; GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorRed);GfxTextOut("KrT group",x,y+20); GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorGreen);GfxTextOut("RESEARCH",x+120,Y+20); _SECTION_END(); //------------------------------------------------------------------------------ _SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) )); trendup = IIf(MACD(12,26) > 0 AND MACD(12,26) > Signal(12,26,9), colorGreen, colorWhite); trendcolor = IIf(MACD(12,26) < 0 AND MACD(12,26) < Signal(12,26,9), colorRed, trendup); Plot( C, "Close", trendcolor, styleBar | styleThick ); //RSIup = RSI(7) > 70; //RSIdown = RSI(7) < 30; sp = Param( "RSI Period", 7, 1, 100 ); r = RSI( sp ); RSIup = r > 70; RSIdown = r < 30; shape = RSIup * shapeSmallUpTriangle + RSIdown * shapeSmallDownTriangle; PlotShapes(shape, IIf( RSIup, colorGreen, colorRed ), 0, IIf( RSIup, Low, High ) ); if( ParamToggle("Tooltip shows", "All Values | Only Prices" ) ) { ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 ))); } _SECTION_END(); _SECTION_BEGIN("BBands"); P = ParamField("Price field",-1); Periods = Param("Periods", 12, 2, 100, 1 ); Width = Param("Width", 2, 0, 10, 0.05 ); Color = ParamColor("Color", colorLightGrey ); Style = ParamStyle("Style") | styleNoRescale; Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), Color, Style ); Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), Color, Style ); // calcul average daily range pe ultimele 7 zile HD1 = TimeFrameGetPrice("H", inDaily, -1); LD1 = TimeFrameGetPrice("L", inDaily, -1); M1 = HD1 - LD1; HD2 = TimeFrameGetPrice("H", inDaily, -2); LD2 = TimeFrameGetPrice("L", inDaily, -2); M2 = HD2 - LD2; HD3 = TimeFrameGetPrice("H", inDaily, -3); LD3 = TimeFrameGetPrice("L", inDaily, -3); M3 = HD3 - LD3; HD4 = TimeFrameGetPrice("H", inDaily, -4); LD4 = TimeFrameGetPrice("L", inDaily, -4); M4 = HD4 - LD4; HD5 = TimeFrameGetPrice("H", inDaily, -5); LD5 = TimeFrameGetPrice("L", inDaily, -5); M5 = HD5 - LD5; HD6 = TimeFrameGetPrice("H", inDaily, -6); LD6 = TimeFrameGetPrice("L", inDaily, -6); M6 = HD6 - LD6; HD7 = TimeFrameGetPrice("H", inDaily, -7); LD7 = TimeFrameGetPrice("L", inDaily, -7); M7 = HD7 - LD7; //ADR = MA(High - Low,7); ADR = (M1+M2+M3+M4+M5+M6+M7)/7; tp = ADR*0.15; sl = ADR*0.1; //TimeFrameRestore(); Plot(ADR, "\nADR", colorBlue, styleNoLine | styleNoRescale | styleNoLabel); Plot(tp, "TP", colorBlue, styleNoLine | styleNoRescale | styleNoLabel); Plot(sl, "SL", colorBlue, styleNoLine | styleNoRescale | styleNoLabel); _SECTION_END(); _SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) )); trendup = IIf(MACD(12,26) > 0 AND MACD(12,26) > Signal(12,26,9), colorGreen, colorBlack); trendcolor = IIf(MACD(12,26) < 0 AND MACD(12,26) < Signal(12,26,9), colorRed, trendup); Plot( C, "Close", trendcolor, styleBar | styleThick ); //RSIup = RSI(7) > 70; //RSIdown = RSI(7) < 30; sp = Param( "RSI Period", 7, 1, 100 ); r = RSI( sp ); RSIup = r > 70; RSIdown = r < 30; shape = RSIup * shapeSmallUpTriangle + RSIdown * shapeSmallDownTriangle; PlotShapes(shape, IIf( RSIup, colorGreen, colorRed ), 0, IIf( RSIup, Low, High ) ); if( ParamToggle("Tooltip shows", "All Values | Only Prices" ) ) { ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 ))); } _SECTION_END(); _SECTION_BEGIN("SAR"); acc = Param("Acceleration", 0.02, 0, 1, 0.001 ); accm = Param("Max. acceleration", 0.2, 0, 1, 0.001 ); Plot( SAR( acc, accm ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", styleDots | styleNoLine, maskDefault | styleDots | styleNoLine ) ); _SECTION_END(); |
How to Use AFL for Amibroker
- Download Amibroker AFL File.
- Now copy the afl file and paste it to \Program Files\AmiBroker\Formulas\Custom. [For 32 bit]
- Have you 64 bit operating system? Than paste it to : \Program Files(x86)\AmiBroker\Formulas\Custom.
- Go to formula section of Amibroker and you will get the afl in Custom folder.
Watch Our Video Tutorial | How To Set Amibroker?
“I said (to them): ‘ask forgiveness from your Lord; verily He is Oft-Forgiving. He will send rain to you in abundance; And give you increase in wealth and children, and bestow on you gardens and bestow on you rivers.” | Qur’an 71[Nuh]:10–12
Tags amibroker afl
0 thoughts on “Parabolic SAR AFL: Attractive Buy Sell Signal AFL for Amibroker”