Coral Trend Indicator AFL: Find Magic Trend Indicator
CORAL TREND INDICATOR AFL FOR AMIBROKER
Coral Trend Indicator AFL is another best intraday indicator for amibroker. If you want to best amibroker afl indicator download than this AFL is the right choose. This AFL also know as a magic trend indicator afl. This trend afl following indicator inspired from Trading view Pine script code. Code is designed to plot in PSAR style.
In figure Green color dots represents bullish trend and the red dots represents bearish trend. The system is quite popular in MT4 platform among Forex traders known as THV Coral. However the code does is just the indication of trend and not a complete system though. For this reason is also known as a Trend identifier afl.
Image of AFL [amibroker formula language].
In image we can watch that when red candle crossover the Trend identifier afl line than its goes down for a long time. On the other hand if green candle crossover the Trend identifier afl indicator than its call for uptrend and market goes up.
Coral Trend Indicator for Amibroker 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 | //---------------------------------------------------------------- // Formula Name : Coral Trend Indicator for Amibroker AFL by pipschart // Author : KrT group // Uploader : www.pipschart.com // E-mail : info@pipschart.com // Amibroker Blog : www.pipschart.com/amibroker // 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); GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorGreen);GfxTextOut ("RESEARCH",x+120,Y); _SECTION_END(); //------------------------------------------------------------ _SECTION_BEGIN("Coral Trend Indicator"); 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() ); sm = Param("Smoothing Period",21,2,40,1); cd = Param("Constant D",0.4,0.1,2,0.1); di = (sm - 1.0) / 2.0 + 1.0; c1 = 2 / (di + 1.0); c2 = 1 - c1; c3 = 3.0 * (cd * cd + cd * cd * cd); c4 = -3.0 * (2.0 * cd * cd + cd + cd * cd * cd); c5 = 3.0 * cd + 1.0 + cd * cd * cd + 3.0 * cd * cd; src = Close; i1=0; i2=0; i3=0; i4=0; i5=0; i6=0; for(i=1;i<BarCount;i++) { i1[i] = c1[i]*src[i] + c2[i]*i1[i-1]; i2[i] = c1[i]*i1[i] + c2[i]*i2[i-1]; i3[i] = c1[i]*i2[i] + c2[i]*i3[i-1]; i4[i] = c1[i]*i3[i] + c2[i]*i4[i-1]; i5[i] = c1[i]*i4[i] + c2[i]*i5[i-1]; i6[i] = c1[i]*i5[i] + c2[i]*i6[i-1]; } bfr = -cd*cd*cd*i6 + c3*(i5) + c4*(i4) + c5*(i3); color = IIf(bfr>Ref(bfr,-1),colorGreen,colorRed); Plot(bfr,"Coral Trend Indicator", color,styleDots|styleNoLine|styleThick); _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?
Tags amibroker afl
0 thoughts on “Coral Trend Indicator AFL: Find Magic Trend Indicator”