CANDLESTICK BASE | INDICATOR - Parallel Trend Lines 2 Afl

Đường xu hướng song song 2 Amibroker AFL cho bạn biết thông tin rõ ràng về xu hướng. Hai đường chính tự động vẽ ở đây vào biểu đồ nến. Một đường song song đo thời gian ngắn và đường song song khác đo thời gian dài đường xu hướng.

Trong Afl này, bạn có thể dễ dàng xác định xu hướng tăng và xu hướng giảm. Màu đỏ đo đường xu hướng ngắn hạn và Màu xanh đo đường xu hướng dài hạn. Nếu có sự kết hợp giữa hai đường song song thì bạn có thể hiểu được sự thay đổi lớn sắp tới.

Bài viết này cung cấp cho bạn những gì?

  • Nhận hình ảnh rõ nét của Amibroker Afl
  • Tải xuống Color Bollinger Bands Amibroker AFL.
  • Mã thô của công thức này.
  • Cách cài đặt Amibroker Afl vào nền tảng.

Trong hình Xem các công cụ vẽ sâu. Bạn có thể tìm thấy nơi để mua tín hiệu. Bạn cũng có thể tìm thấy tín hiệu bán. Như đã đề cập, Parallel Trend Lines 2 Afl cung cấp cho bạn tín hiệu lợi nhuận đường xu hướng hoàn hảo. Khi Signal xuất hiện, bạn có thể lấy tín hiệu mà không cần do dự.

//  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();

 

Cách sử dụng AFL  cho Amibroker 

  • Tải xuống tệp Amibroker AFL.
  • Bây giờ hãy sao chép tệp afl và dán vào \Program Files\AmiBroker\Formulas\Custom. [Dành cho 32 bit] hoặc \Program Files(x86)\AmiBroker\Formulas\Custom. [Dành cho 64 bit]
  • Vào phần công thức của Amibroker và bạn sẽ thấy afl trong thư mục Custom.

Nguồn thông tin Dòng tiền chứng khoán sưu tầm 

https://pipschart.com/parallel-trend-lines-2-for-amibroker-afl/

Comments

Popular posts from this blog

TẠI SAO NÊN ĐẦU TƯ CHỨNG KHOÁN ?

LỰA CHỌN CÔNG TY CHỨNG KHOÁN MỞ TÀI KHOẢN GIAO DỊCH

ĂN NHỊP HỒI VNINDEX THÁNG 10/2024

Labels

Show more