全世界技术分析的鼻祖:一目均衡表
转换线:(HHV(H,SHORT)+LLV(L,SHORT))/2,COLORRED,LINETHICK2;
基准线:(HHV(H,MID)+LLV(L,MID))/2,COLORFF8040,LINETHICK2;
迟行带:REFX(C,MID),COLORGRAY,LINETHICK2;
A:=REF((转换线+基准线)/2,MID);
B:=REF((HHV(H,LONG)+LLV(L,LONG))/2,MID);
STICKLINE(A<B,A,B,2,1.5),COLOR339933;
STICKLINE(A>=B,A,B,2,0.1),COLOR0033CC;
先行带A:PLOYLINE(1,A),COLORYELLOW,;
先行带B:PLOYLINE(1,B),COLORLIGREEN;
运转线:(HHV(HIGH,X)+LLV(LOW,X))/2,COLORRED;
基准线:(HHV(HIGH,Y)+LLV(LOW,Y))/2,COLORBLUE;
迟行线:REFX(CLOSE,Y),COLORGREEN;
SPANA:=REF(((运转线+基准线)/2),Y);
SPANB:=REF(((HHV(HIGH,Z)+LLV(LOW,Z))/2),Y);
STICKLINE(SPANA>SPANB,SPANA,SPANB,0.1,-1),COLORLIGREEN;
STICKLINE(SPANA<SPANB,SPANA,SPANB,0.1,-1),COLORLIRED;
N1:=7;
N2:=22;
N3:=44;
转换线:(HHV(HIGH,N1)+LLV(LOW,N1))/2;
基准线:(HHV(HIGH,N2)+LLV(LOW,N2))/2;
迟行带:REFX(CLOSE,N2);
先行带A:REF((转换线+基准线)/2,N2);
先行带B:REF((HHV(HIGH,N3)+LLV(LOW,N3))/2,N2);
DRAWBAND(先行带A,RGB(165,56,56),先行带B,RGB(0,84,160));
转换线,COLORRED;
基准线,COLOR00EAEA;
迟行带,COLORBLUE,DOTLINE;
STICKLINE(CURRBARSCOUNT<=N2-1,CONST(C),CONST(C),1.5,-1),COLOR00CC00;
DRAWICON(CURRBARSCOUNT=N2-1,CONST(C),41);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{阴柱}
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFF9F68;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.2,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.8,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.6,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.4,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.2,0 ),COLOR00FF00;
{红柱}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.6,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.4,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.2,0) ,COLORFFBBFF;
KKG:=IF(K线开关=0,1,DRAWNULL);
DRAWGBK(1,RGB(1,1,1),RGB(1,1,1),0,'00',0);
DRAWKLINE(H,O,L,C*KKG);
RH:=REFX(H,N2);
RO:=REFX(O,N2);
RC:=REFX(C,N2);
RL:=REFX(L,N2);
XG1:=RC>=RO;
STICKLINE(XG1,RL,RH,0,0),COLOR0000AA;
STICKLINE(XG1,RC,RO,3,0),COLOR000055;
STICKLINE(XG1,RC,RO,2.8,0),COLOR000066;
STICKLINE(XG1,RC,RO,2.5,0),COLOR000077;
STICKLINE(XG1,RC,RO,2.2,0),COLOR000088;
STICKLINE(XG1,RC,RO,1.7,0),COLOR000099;
STICKLINE(XG1,RC,RO,1.2,0),COLOR0000AA;
STICKLINE(XG1,RC,RO,0.7,0),COLOR0000CC;
STICKLINE(XG1,RC,RO,0.2,0),COLOR0000FF;
XG2:=RC<RO;
STICKLINE(XG2,RH,RL,0,0),COLORFF8800;
STICKLINE(XG2,RC,RO,3.2,0),COLORFF2200;
STICKLINE(XG2,RC,RO,2.6,0),COLORFF4400;
STICKLINE(XG2,RC,RO,1.9,0),COLORFF6600;
STICKLINE(XG2,RC,RO,1.1,0),COLORFF8800;
STICKLINE(XG2,RC,RO,0.3,0),COLORFFAA00;
AA:=(HHV(RH,120)-LLV(RL,120))/30,LINETHICK;
VAR1:=(2*RC+RH+RL)/4;
转换线:=(HHV(H,N1)+LLV(L,N1))/2,COLORAAFF99,LINETHICK;
基准线:=(HHV(H,N2)+LLV(L,N2))/2,COLORFF6DD8,LINETHICK;
迟行带:REFX(RC,N2),COLORFF9224;
先行带A:(转换线+基准线)/2,COLORYELLOW,LINETHICK;
先行带B:(HHV(H,N3)+LLV(H,N3))/2,COLOR909090;
STICKLINE(先行带A<先行带B,先行带A,先行带B,0,-1),COLOR339933;
STICKLINE(先行带A>=先行带B,先行带A,先行带B,0,-1),COLOR0033CC;
PLOYLINE(1,先行带A),COLORYELLOW;
REFX(PLOYLINE(1,基准线),N2),COLORFF6DD8;
REFX(PLOYLINE(1,转换线),N2),COLORAAFF99;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1<MIN(先行带A,先行带B),MIN(基准线,RL)*0.995,'▲'),COLORRED;
DRAWTEXT(CROSS(转换线,基准线) AND RANGE(VAR1,MIN(先行带A,先行带B),MAX(先行带A,先行带B)),RL*0.995,'▲▲'),COLORRED;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1>MAX(先行带A,先行带B),RL-AA*0.5,'▲▲▲'),COLORRED;
DRAWTEXT(CROSS(基准线,转换线) AND VAR1<MIN(先行带A,先行带B),MAX(基准线,RH)+AA*2,'▼\N▼\N▼'),COLORFF9966;
DRAWTEXT(CROSS(基准线,转换线) AND RANGE(VAR1,MIN(先行带A,先行带B),MAX(先行带A,先行带B)),MAX(基准线,RH)+AA,'▼\N▼'),COLORFF9966;
DRAWTEXT(CROSS(基准线,转换线) AND VAR1>MAX(先行带A,先行带B),MAX(基准线,RH)+AA,'▼'),COLORFF9966;