见底变色k线指标公式
DRAWGBK(DATE900103,STRIP(RGB(43,33,100),RGB(83,73,200),1));
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,13)/HHV(C,13))*100100,100,(AMOUNT/C)/(HHV(AMOUNT,13)/HHV(C,13))*100);
反弹确认线:EMA((LLV(L,5)+(((EMA(((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C),3)-((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C))*5)*0.8+LLV(L,5))+((EMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C,3)-((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*0.8*C))*5))/3,5),coloryellow;
量:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1.2*CLOSE;
量1:=EMA(量,3);
量2:=EMA(量,5);
量3:=EMA(量,7);
STICKLINE(量1=量2,量3,量1,10,0),color0000AA;
STICKLINE(量1=量2,量3,量1,7,0),color0000BB;
STICKLINE(量1=量2,量3,量1,6,0),color0000CC;
STICKLINE(量1=量2,量3,量1,5,0),color0000DD;
STICKLINE(量1=量2,量3,量1,4,0),color0000EE;
STICKLINE(量1=量2,量3,量1,3,0),color0000FF;
STICKLINE(量1=量2,量3,量1,10,0),colorFF0000;
STICKLINE(量1=量2,量3,量1,7,0),colorFF3300;
STICKLINE(量1=量2,量3,量1,6,0),colorFF5500;
STICKLINE(量1=量2,量3,量1,5,0),colorFF7700;
STICKLINE(量1=量2,量3,量1,4,0),colorFF9900;
STICKLINE(量1=量2,量3,量1,3,0),colorFFBB00;
STICKLINE(量1=量2,量3,量1,2,0),colorFFDD00;
STICKLINE(量1=量2,量3,量1,1,0),colorFFFF00;
T1:=量2=量3AND量1REF(量1,1);
T2:=量2量3AND量1REF(量1,1);
STICKLINE(T1,量1,量3,10,0),colorFFBB11;
STICKLINE(T1,量1,量3,7,0),colorFFCC22;
STICKLINE(T1,量1,量3,5,0),colorFFDD33;
STICKLINE(T1,量1,量3,3,0),colorFFEE44;
STICKLINE(T1,量1,量3,1,0),colorFFFF55;
STICKLINE(T2,量1,量3,10,0),color338FDD;
STICKLINE(T2,量1,量3,8,0),colorFF00FF;
STICKLINE(T2,量1,量3,1,0),color00DDFF;
STICKLINE(T2,量1,量3,8,0),color00AAFF;
STICKLINE(T2,量1,量3,6.6,0),color00BBFF;
STICKLINE(T2,量1,量3,4.4,0),color00CCFF;
STICKLINE(T2,量1,量3,3.3,0),color00DDFF;
STICKLINE(T2,量1,量3,2.2,0),color00EEFF;
STICKLINE(T2,量1,量3,1,0),color00FFFF;
0,coloryellow;
qs1:=IF(CMA(C,4),1,0);
qs2:=IF(CMA(C,4),-1,0);
qs3:=IF(MA(C,5)REF(MA(C,5),1),1,0);
qs4:=IF(MA(C,5)REF(MA(C,5),1),-1,0);
qs:=qs1+qs2+qs3+qs4;
STICKLINE((qs=-2ANDCO),H,L,0,0),Color00FF00;
STICKLINE((qs=-2ANDCO),OPEN,CLOSE,10,0),Color009900;
STICKLINE((qs=-2ANDCO),OPEN,CLOSE,8,1),Color00C200;
STICKLINE((qs=-2ANDCO),OPEN,CLOSE,4,0),Color00D600;
STICKLINE((qs=-2ANDCO),OPEN,CLOSE,2,0),Color00FF00;
STICKLINE((qs=-2ANDCO),H,L,0,0),Color2492FF;
STICKLINE((qs=-2ANDCO),O,C,10,0),Color003E7B;
STICKLINE((qs=-2ANDCO),O,C,8,1),Color0053A6;
STICKLINE((qs=-2ANDCO),O,C,4,0),Color006AD5;
STICKLINE((qs=-2ANDCO),O,C,2,0),Color0984FF;
STICKLINE((qs=0ANDCO),H,L,0,0),ColorFFFFFF;
STICKLINE((qs=0ANDCO),O,C,10,0),ColorCCCCCC;
STICKLINE((qs=0ANDCO),O,C,8,1),ColorDEDEDE;
STICKLINE((qs=0ANDCO),O,C,4,0),ColorF6F6F6;
STICKLINE((qs=0ANDCO),O,C,2,0),ColorFFFFFF;
STICKLINE((qs=0ANDCO),H,L,0,0),Color009FFF;
STICKLINE((qs=0ANDCO),O,C,10,0),Color009FFF;
STICKLINE((qs=0ANDCO),O,C,8,1),Color00B5FF;
STICKLINE((qs=0ANDCO),O,C,4,0),Color00E4FF;
STICKLINE((qs=0ANDCO),O,C,2,0),Color00FFFF;
STICKLINE((qs=2ANDCO),H,L,0,0),ColorFF00FF;
STICKLINE((qs=2ANDCO),O,C,10,0),ColorBB00BB;
STICKLINE((qs=2ANDCO),O,C,8,1),colorFF5BFF;
STICKLINE((qs=2ANDCO),O,C,4,0),colorF900F9;
STICKLINE((qs=2ANDCO),O,C,2,0),ColorFF11FF;
STICKLINE((qs=2ANDCO),H,L,0,0),Color0000bb;
STICKLINE((qs=2ANDCO),O,C,10,0),Color000066;
STICKLINE((qs=2ANDCO),O,C,8,1),Color000077;
STICKLINE((qs=2ANDCO),O,C,5,0),Color000099;
STICKLINE((qs=2ANDCO),O,C,3,0),Color0000bb;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,4),4)/EMA(EMA(ABS(MTM),4),4);
低吸:IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX0,2)ANDCROSS(DX,MA(DX,2)),1,0),ColorFFFFFF;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),''),Color00E1E1;
N1:=6;N2:=16;N3:=34;N4:=60;
启动:EMA(C,N1),colorwhite,linethick1;
持股线:EMA(C,N2),coloryellow;
牛熊线:EMA(MA(CLOSE,3),N3),colorred;
长期线:EMA(C,N4),colormagenta;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),OPEN,CLOSE,10,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),LOW,HIGH,0.1,0),colorff00ff;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),OPEN,CLOSE,7,0),colorff00ff;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF11;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008855;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF55;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(C=持股线 AND C=O,C,O,9,0),colorred;
STICKLINE(C=持股线 AND C=O,H,L,0,0),colorred;
Var11:=ZIG(3,6)REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
Var19:=EMA(C,2)-EMA(C,150);
买点1:=(Var11+Var13+Var15+Var17);
买点2:=(Var13+Var15+Var17);
卖点1:=(Var12+Var14+Var16+Var18);
卖点2:=(Var14+Var16+Var18);
STICKLINE( 买点10 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点10,O,C,6,0),colorwhite,linethick1;
STICKLINE( 买点20 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点20,O,C,6,0),colorred,linethick1;
STICKLINE( 卖点10,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点10,O,C,6,0),colorbrown,linethick1;
STICKLINE( 卖点20,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点20,O,C,6,0),colorwhite,linethick1;
DRAWTEXT(卖点20, H,'顶'),colorblue,linethick3;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
买卖差:=K-D;
BU:=CROSS(K,D);
多头排列:=启动持股线 AND 启动长期线 AND 持股线长期线;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
攻击:=BBI+3*STD(BBI,10),linethick1;
STICKLINE(1,C,O,0,0),colorwhite;
上线:=SMA(C,2.5,1);
下线:=SMA(C,6.5,1);
上线1:=SMA(C,6,2);
下线1:=SMA(C,8,2);
攻击:BBI+3*STD(BBI,10),linethick1;
STICKLINE( 上线下线 AND (CLOSE攻击),C,O,7,3),coloryellow;STICKLINE(上线下线 AND (CLOSE攻击),H,L,1,2),coloryellow;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:MA(K,3);
金叉:=CROSS(K,50);
DRAWTEXT(金叉0 AND K80 AND KD AND OPEN牛熊线 ,LOW*0.942,' 大胆作多'),colorred;
涨停变色k线指标公式
N1:=6;N2:=16;N3:=34;N4:=40;
启动:EMA(C,N1),colorwhite,linethick1;
持股线:EMA(C,N2),coloryellow;
牛熊线:EMA(MA(CLOSE,3),N3),colorred;
长期线:EMA(C,N4),colormagenta;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),OPEN,CLOSE,10,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),LOW,HIGH,0.1,0),colorff00ff;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),OPEN,CLOSE,7,0),colorff00ff;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF11;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008855;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF55;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(C=持股线 AND C=O,C,O,9,0),colorred;
STICKLINE(C=持股线 AND C=O,H,L,0,0),colorred;
Var11:=ZIG(3,6)REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
Var19:=EMA(C,2)-EMA(C,150);
买点1:=(Var11+Var13+Var15+Var17);
买点2:=(Var13+Var15+Var17);
卖点1:=(Var12+Var14+Var16+Var18);
卖点2:=(Var14+Var16+Var18);
STICKLINE( 买点10 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点10,O,C,6,0),colorwhite,linethick1;
STICKLINE( 买点20 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点20,O,C,6,0),colorred,linethick1;
STICKLINE( 卖点10,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点10,O,C,6,0),colorbrown,linethick1;
STICKLINE( 卖点20,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点20,O,C,6,0),colorwhite,linethick1;
DRAWTEXT(卖点20, H,'顶'),colorblue,linethick3;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
买卖差:=K-D;
BU:=CROSS(K,D);
多头排列:=启动持股线 AND 启动长期线 AND 持股线长期线;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
攻击:=BBI+3*STD(BBI,10),linethick1;
STICKLINE(1,C,O,0,0),colorwhite;
上线:=SMA(C,2.5,1);
下线:=SMA(C,6.5,1);
上线1:=SMA(C,6,2);
下线1:=SMA(C,8,2);
攻击:BBI+3*STD(BBI,10),linethick1;
STICKLINE( 上线下线 AND (CLOSE攻击),C,O,7,3),coloryellow;STICKLINE(上线下线 AND (CLOSE攻击),H,L,1,2),coloryellow;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:MA(K,3);
金叉:=CROSS(K,50);
DRAWTEXT(金叉0 AND K80 AND KD AND OPEN牛熊线 ,LOW*0.942,' 大胆作多'),colorred;
C1:=EMA(INDEXC,500)/EMA(C,500);
D1:=INDEXO/C1; D2:=INDEXH/C1;
D3:=INDEXL/C1; D4:=INDEXC/C1;
STICKLINE(D4=REF(D4,1),D3,D2,0,0),COLORFF99CC;
STICKLINE(D4=REF(D4,1),D4,D1,5,1),COLORFF99CC;
STICKLINE(D4 REF(D4,1),D3,D2,0,0),COLORFFCC99;
STICKLINE(D4 REF(D4,1),D4,D1,5,1),COLORFFCC99;
生命线:MA(CLOSE,24),COLOR00FF00,LINETHICK2;
STICKLINE(C=生命线 AND C=O,C,O,9,0),COLOR0000FF;
STICKLINE(C=生命线 AND C=O,H,L,0,0),COLOR0000FF;
STICKLINE(C=生命线 AND CO,C,O,9,1),COLOR0000FF;
STICKLINE(C=生命线 AND CO,O,H,0,0),COLOR0000FF;
STICKLINE(C=生命线 AND CO,C,L,0,0),COLOR0000FF;
STICKLINE(C生命线 AND CO,C,O,9,1),COLORFFFF00;
STICKLINE(C生命线 AND C=O,C,O,9,1),COLORFFFF00;
STICKLINE(C生命线 AND C=O,H,L,0,1),COLORFFFF00;
STICKLINE(C生命线 AND CO,C,H,0,1),COLORFFFF00;
STICKLINE(C生命线 AND CO,O,L,0,1),COLORFFFF00;
评论(0)