一:副图快慢线原码:
V AR6:=(2*CLOSE+HIGH+LOW)/4;
V AR7:=LLV(LOW,13);
V AR8:=HHV(HIGH,13);
V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);
V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);
STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED; STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;
AA:10,COLORYELLOW;
BB:90,COLORYELLOW;
RSV:= (CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; FASTK:=SMA(RSV,5,1);
K:=SMA(FASTK,5,1);
D:=SMA(K,3,1);
AA1:=K-REF(K,1);
STICKLINE(AA1>0,REF(K,1),K,4,0),COLOR8000FF;
STICKLINE(AA1<=0,REF(K,1),K,4,0),COLORFFFF00;
二:主图轨道趋势线
参数N=13,M=3
V AR2:=CLOSE*VOL;
MID:=EMA((EMA(V AR2,3)/EMA(VOL,3)+EMA(V AR2,6)/EMA(VOL,6)+EMA(V AR2,12)/EM A(VOL,12)+EMA(V AR2,24)/EMA(VOL,24))/4,N);
主趋势线1:MID;MID2:=MID*1.01;
SDN:=MID*0.94;
SDN3:=REF(CLOSE,1800),COLORYELLOW;
SUP:=1.06*MID,COLORBLUE;
V AR4:=EMA(CLOSE,9);
B9:=COUNT(HIGH>SUP,5);
V AR1:=MID;
PARTLINE(V AR1>REF(V AR1,1),V AR1),LINETHICK2,COLORRED;
PARTLINE(V AR1PP:=(2*CLOSE+HIGH+LOW)/4;
QQ:=ABS(PP-MA(CLOSE,N*15));
AA:=QQ/MA(CLOSE,N*15);
N2:=(N-2)*15;
N3:=(N+2)*15;
N4:=(N+3)*15;
主趋势线:=(MA(CLOSE,13)),LINETHICK2,COLORRED;
CC:=(CLOSE/主趋势线);
三:合并即涨
Var0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var3:=SMA(Var0,3,1);
Var1:=SMA(Var3,4,1)-10;
Var4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var5:=SMA(Var4,3,1);
Var2:=SMA(Var5,4,1)-90;
STICKLINE(REF(Var1,1)0, CIRCLEDOT;
STICKLINE(REF(Var1,1)>Var1,V ar1,REF(Var1,1),5,0),COLOR00ff00;
STICKLINE(REF(Var2,1)>Var2,V ar2,REF(Var2,1),10,0),COLOR0000FF;
STICKLINE(REF(Var2,1)0,COLOR0000FF;
四:顶底王
V AR1:=LLV(LOW,34);
V AR2:=HHV(HIGH,30);
V AR3:=REF(CLOSE,1);
V AR4:=EMA((CLOSE-V AR1)/(V AR2-V AR1),3)*100;
主力:=SMA(MAX(CLOSE-V AR3,0),7,1)/SMA(ABS(CLOSE-V AR3),7,1)*100,COLORRED; CC:主力,COLORWHITE;
散户:=V AR4;
V AR5:=(V AR4-LLV(V AR4,21))/(HHV(V AR4,21)-LLV(V AR4,21))*100;
Q1:IF(CROSS(V AR5,90) AND 散户<40,18,10);
Q2:IF(CROSS(主力,12) AND REF(散户,5)<20 ANDREF(散户,3)<20,18,10);
P1:IF(CROSS(84,主力),82,90),COLOR99FF33;
P2:IF(CROSS(84,散户),82,90),COLORCYAN;
VY:=SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1);
L2:=SMA(0.618*REF(VY,1)+0.382*VY,3,1), COLORFF9900;
L3:=MA(L2,5);
STICKLINE(L2>L3,L3+2,L3-2,5,0),COLORRED;
STICKLINE(L2<=L3,L3+2,L3-2,5,0),COLORGREEN;
80,POINTDOT;
50,POINTDOT;
20,POINTDOT;