很实用的异形k线介绍
很实用的异形k线
均线变色部分有未来,不影响使用
STICKLINE(OPEN>=CLOSE ,HIGH ,LOW,8,0 ),Color000000;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),Color000000;
STICKLINE(CLOSE>OPEN,HIGH,LOW,8,0) ,Color000000;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,1) ,Color000000;
a1:eMA(EMA(eMA(CLOSE,2),2),2),COLOR33FF10,LINETHICK1,LAYER0;
a2:eMA(EMA(eMA(CLOSE,3),3),2),COLOR33FF20,LINETHICK1,LAYER0;
a3:eMA(EMA(eMA(CLOSE,4),4),2),COLOR33FF30,LINETHICK1,LAYER0;
a4:eMA(EMA(eMA(CLOSE,5),5),2),COLOR33FF40,LINETHICK1,LAYER0;
a5:eMA(EMA(eMA(CLOSE,6),6),3),COLOR33FF50,LINETHICK1,LAYER0;
a6:eMA(EMA(eMA(CLOSE,7),7),3),COLOR33FF60,LINETHICK1,LAYER0;
a7:=eMA(EMA(eMA(CLOSE,9),9),3);
partline(a1,a1<ref(a1,1),rgb(0,255,0),a1>ref(a1,1),rgb(255,0,255)),LINETHICK1,LAYER0;
partline(a2,a2<ref(a2,1),rgb(0,255,0),a2>ref(a2,1),rgb(255,0,255)),LINETHICK1,LAYER0;
partline(a3,a3<ref(a3,1),rgb(0,255,0),a3>ref(a3,1),rgb(255,0,255)),LINETHICK1,LAYER0;
partline(a4,a4<ref(a4,1),rgb(0,255,0),a4>ref(a4,1),rgb(255,0,255)),LINETHICK1,LAYER0;
partline(a5,a5<ref(a5,1),rgb(0,255,0),a5>ref(a5,1),rgb(255,0,255)),LINETHICK1,LAYER0;
partline(a6,a6<ref(a6,1),rgb(0,255,0),a6>ref(a6,1),rgb(255,0,255)),LINETHICK1,LAYER0;
PARTLINE(a6,a6<REF(a6,1),RGB(0,255,0),a6>REF(a6,1),RGB(255,0,255)),LINETHICK1,LAYER0;
PARTLINE(a7,a7<REF(a7,1),RGB(0,255,0),a7>REF(a7,1),RGB(255,0,0)),LINETHICK2,LAYER0;
Az1:=HHV(MA(C,3),10);
Az2:=HHV(MA(C,3),9);
Az3:=HHV(MA(C,3),8);
Az4:=HHV(MA(C,3),7);
Az5:=HHV(MA(C,3),6);
Az6:=HHV(MA(C,3),5);
Az7:=HHV(MA(C,3),4);
Az8:=HHV(MA(C,3),3);
Az9:=HHV(MA(C,3),2);
Bz9:=LLV(MA(C,3),2);
a:=WMA(c,3);
b:=IF(Az1=Az2=Az3=Az4=Az5=Az6=Az7=Az8=Az9,Az9,Bz9);
STICKLINE(A>=B,A,b,8,0),COLOR000099;
STICKLINE(A>=B,A,B,7,0),COLOR0000BB;
STICKLINE(A>=B,A,B,5,0),COLOR0000DD;
STICKLINE(A>=B,A,B,3,0),COLOR0000FF;
STICKLINE(A>B,A,H,0.1,0),COLORred;
STICKLINE(A<=B,A,B,7,0),COLOR009900;
STICKLINE(A<=B,A,B,5,0),COLOR00bb00;
STICKLINE(A<=B,A,B,3,0),COLOR00cc00;
STICKLINE(A<=B,A,B,2,0),COLOR00ee00;
STICKLINE(A<B,A,L,0.0001,0),color00ff00;
通达信的异形k线
均线变色部分有未来
1:异形k线
AZ1:=HHV(MA(C,3),10);
AZ2:=HHV(MA(C,3),9);
AZ3:=HHV(MA(C,3),8);
AZ4:=HHV(MA(C,3),7);
AZ5:=HHV(MA(C,3),6);
AZ6:=HHV(MA(C,3),5);
AZ7:=HHV(MA(C,3),4);
AZ8:=HHV(MA(C,3),3);
AZ9:=HHV(MA(C,3),2);
BZ9:=LLV(MA(C,3),2);
A:=WMA(C,3);
B:=IF(AZ1=AZ2=AZ3=AZ4=AZ5=AZ6=AZ7=AZ8=AZ9,AZ9,BZ9);
STICKLINE(A>=B,A,B,3,0),COLOR000099;
STICKLINE(A>=B,A,B,2,0),COLOR0000BB;
STICKLINE(A>=B,A,B,1,0),COLOR0000DD;
STICKLINE(A>=B,A,B,0.05,0),COLOR0000FF;
STICKLINE(A>B,A,H,0.00001,0),COLORRED;
STICKLINE(A<=B,A,B,3,0),COLOR009900;
STICKLINE(A<=B,A,B,2,0),COLOR00BB00;
STICKLINE(A<=B,A,B,1,0),COLOR00CC00;
STICKLINE(A<=B,A,B,0.05,0),COLOR00EE00;
STICKLINE(A<B,A,L,0.00001,0),COLOR00FF00;
A1:EMA(EMA(EMA(CLOSE,2),2),2),COLORFF00FF,LINETHICK1;
A2:EMA(EMA(EMA(CLOSE,3),3),2),COLORFF00FF,LINETHICK1;
A3:EMA(EMA(EMA(CLOSE,4),4),2),COLORFF00FF,LINETHICK1;
A4:EMA(EMA(EMA(CLOSE,5),5),2),COLORFF00FF,LINETHICK1;
A5:EMA(EMA(EMA(CLOSE,6),6),3),COLORFF00FF,LINETHICK1;
A6:EMA(EMA(EMA(CLOSE,7),7),3),COLORFF00FF,LINETHICK1;
A7:EMA(EMA(EMA(CLOSE,9),9),3),COLORFF00FF,LINETHICK1;
B1:=BACKSET(A1<REF(A1,1),2);
IF(B1,A1,DRAWNULL),COLOR33FF20,LINETHICK1;
B2:=BACKSET(A2<REF(A2,1),2);
IF(B2,A2,DRAWNULL),COLOR33FF20,LINETHICK1;
B3:=BACKSET(A3<REF(A3,1),2);
IF(B3,A3,DRAWNULL),COLOR33FF20,LINETHICK1;
B4:=BACKSET(A4<REF(A4,1),2);
IF(B4,A4,DRAWNULL),COLOR33FF20,LINETHICK1;
B5:=BACKSET(A5<REF(A5,1),2);
IF(B5,A5,DRAWNULL),COLOR33FF20,LINETHICK1;
B6:=BACKSET(A6<REF(A6,1),2);
IF(B6,A6,DRAWNULL),COLOR33FF20,LINETHICK1;
B7:=BACKSET(A7<REF(A7,1),2);
IF(B7,A7,DRAWNULL),COLOR33FF20,LINETHICK1;
gd32838