通达信通道趋势画线KDJ底部关注买入指标公式源码:
幅图1:
N:=75;P:=5;AB画线突破4:=10; AB画线突破10:=REF(H,P)=HHV(H,2*P+1);
画线突破3:=FILTER(AB画线突破10,P);画线突破4:=BACKSET(画线突破3,P+1);
画线突破5:=FILTER(画线突破4,P);画线突破6:=BACKSET(ISLASTBAR,BARSLAST(画线突破5)+1);
画线突破7:=画线突破6>REF(画线突破6,1);短压:DRAWLINE(画线突破5,H,画线突破7,H,1),COLORCYAN,DOTLINE;
画线突破8:=REF(L,P)=LLV(L,2*P+1);画线突破9:=FILTER(画线突破8,P);
画线突破10:=BACKSET(画线突破9,P+1);突破起飞1:=FILTER(画线突破10,P);
突破起飞2:=BACKSET(ISLASTBAR,BARSLAST(突破起飞1)+1);突破起飞3:=突破起飞2>REF(突破起飞2,1);
{云析赢指标公式网,指标公式,指标源码,指标编写教程、指标破解指标论坛。www.zbgs518.com}
短支:DRAWLINE(突破起飞1,L,突破起飞3,L,1),COLORLIRED,DOTLINE;AAB画线突破10:=REF(C,AB画线突破4)=HHV(C,2*AB画线突破4+1);
B画线突破3:=FILTER(AAB画线突破10,AB画线突破4);C画线突破4:=BACKSET(B画线突破3,AB画线突破4+1);
D画线突破5:=FILTER(C画线突破4,AB画线突破4);E画线突破6:=BACKSET(ISLASTBAR,BARSLAST(D画线突破5)+1);
画线突破7:=E画线突破6>REF(E画线突破6,1);长压:DRAWLINE(D画线突破5,H,F画线突破7,H,1),COLORGREEN LINETHICK2;
A画线突破8:=REF(L,AB画线突破4)=LLV(L,2*AB画线突破4+1);B画线突破9:=FILTER(A画线突破8,AB画线突破4);
C画线突破10:=BACKSET(B画线突破9,AB画线突破4+1);D突破起飞1:=FILTER(C画线突破10,AB画线突破4);
E突破起飞2:=BACKSET(ISLASTBAR,BARSLAST(D突破起飞1)+1);F突破起飞3:=E突破起飞2>REF(E突破起飞2,1);
长支:DRAWLINE(D突破起飞1,L,F突破起飞3,L,1),COLORRED LINETHICK2;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
突破:C>短压 OR C> 长压,NODRAW;DRAWICON(突破 AND REF(突破,1)=0,L*0.99,9);
幅图2:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);
D:=SMA(K,3,1);J:=3*K-2*D;A:=((REF(C,3)-REF(C,1))/C)*100>6;
好运来1:= CLOSE>REF(CLOSE,1)*1.03 ;好运来2:=CROSS(J,MA(J,2)) AND C>O;
好运来3:= REF(((H-O)/C)*100<2,1);好运来4:=REF(C<O,2) AND REF(C<O,1);
好运来5:=((H-C)/C)*100<2 AND H>REF(H,1);牛来牛来8:=((REF(O,1)-REF(C,1))/C)*100>1;
牛来8:=((REF(O,2)-REF(C,2))/C)*100<9;牛来9:=SUM(VOL/CAPITAL*100,3)>10;
BB:=A AND 好运来1 AND 好运来2 AND 好运来3 AND 好运来4 AND 好运来5 AND 牛来8;
牛来10:=((REF(C,2)-C)/C)*100>6;牛来12:=REF(C<O,1) AND C<O;牛来13:= ((H-O)/C)*100<2 ;
牛来14:=牛来10 AND 牛来12 AND 牛来13;STICKLINE(牛来14,1,60,0.2,0),COLORBLUE;
STICKLINE(牛来14,1,60,0.15,0),COLORFF7700;STICKLINE(牛来14,1,60,0.10,0),COLORFF9900;
STICKLINE(牛来14,1,60,0.05,0),COLORFFBB00;DRAWTEXT(牛来14 ,95,’关’),COLORYELLOW;
DRAWTEXT(牛来14 , 75,’注’),COLORYELLOW;STICKLINE(BB,1,100,0.3,0),COLOR000099;
STICKLINE(BB,1,100,0.2,0),COLOR0000CC;STICKLINE(BB,1,100,0.1,0),COLOR0000FF;
STICKLINE(BB,1,100,0,0),COLORCC66FF;DRAWTEXT(BB,95,’可’),COLORYELLOW;
DRAWTEXT(BB,75,’以’),COLORYELLOW; DRAWTEXT(BB,55,’买’),COLORYELLOW;
DRAWTEXT(BB,35,’入’),COLORYELLOW;