Parallel Trend Lines 2 for Amibroker AFL (PERFECT)
PARALLEL TREND LINES 2 FOR AMIBROKER AFL
Parallel Trend Lines 2 Amibroker AFL show you the clear information about trend. Two major line automatic draw here into candle chart. One parallel measure short time and other parallel line measure long time trend line.
In this Afl you can easily identify up trend and down trend movement.Red color measure short term trend line and Blue Color Measure long term trend line. If there is conflate between two parallel line than you can understand that major change up coming.
In this article what you get for?
- Get clear Image of Amibroker Afl
- Download Color Bollinger Bands Amibroker AFL.
- Raw code of this formula.
- How to set Amibroker Afl in platform.
Image of AFL [amibroker formula language].
In picture See the drawing tools deeply. You can find where to buy signal. Also you can find out the sell signal. As a mention Parallel Trend Lines 2 Afl gives you perfect trend line profit signal. When Signal appears, you may take signal without any hesitation.
PARALLEL TREND LINES 2 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 76 77 78 79 80 81 82 83 | //------------------------------------------------------------------------------ // Formula Name : Parallel Trend Lines 2 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("Price"); 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() ); _SECTION_END(); _SECTION_BEGIN("Pattern Recognition Exploration 3"); // Parallel lines defined by the automatic support and the HighestBetween point x = Cum(1);per = 3;s1=L;s11=H; pS = TroughBars( s1, per, 1 ) == 0; endt= LastValue(ValueWhen( pS, x, 1 )); startt=LastValue(ValueWhen( pS, x, 2 )); dtS =endt-startt; endS = LastValue(ValueWhen( pS, s1, 1 ) ); startS = LastValue( ValueWhen( pS, s1, 2 )); aS = (endS-startS)/dtS;bS = endS; trendlineS = aS * ( x -endt ) + bS; Plot(IIf(x>startt-10,trendlineS,-1e10),"",colorBlue,1); H1=LastValue(Highest((Cum(1)>startt AND Cum(1)<endt)*H)); tH1=LastValue(ValueWhen(H==H1,Cum(1))); Color=IIf((Cum(1)==startt OR Cum(1)==endt),colorBlue,IIf(Cum(1) ==tH1,colorOrange,colorBlack)); Plot(C,"Close",Color,64); UpperParallel=aS*(x-tH1)+H1;Plot(IIf(x>startt-10,UpperParallel,- 1e10),"UpperLine",colorOrange,1); // Parallel lines defined by the automatic resistance and the LowestBetween point x = Cum(1);per = 3;s1=L;s11=H; pR = PeakBars( s11, per, 1 ) == 0; endt1= LastValue(ValueWhen( pR, x, 1 )); startt1=LastValue(ValueWhen( pR, x, 2 )); dtR =endt1-startt1; endR = LastValue(ValueWhen( pR, s11, 1 ) ); startR = LastValue( ValueWhen( pR, s11, 2 )); aR = (endR-startR)/dtR; bR = endR; trendlineR = aR * ( x -endt1 ) + bR; Plot(IIf(x>startt1-10,trendlineR,-1e10),"",colorBlue,1); L1=LastValue(Lowest(IIf(Cum(1)>startt1 AND Cum(1)<endt1,L,10^10))); tL1=LastValue(ValueWhen(L==L1,Cum(1))); Color=IIf((Cum(1)==startt1 OR Cum(1)==endt1),colorBlue,IIf(Cum(1) ==tL1,colorOrange,colorBlack)); Plot(C,"Close",Color,64); LowerParallel=aR*(x-tL1)+L1;Plot(IIf(x>startt1-10,LowerParallel,- 1e10),"LowerLine",colorOrange,1); _SECTION_END(); |
Download AFL
How to use Parallel Trend Lines 2 AFL for Amibroker AFL
Tags amibroker afl
0 thoughts on “Parallel Trend Lines 2 for Amibroker AFL (PERFECT)”