通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
主力洗盘出货指标公式无未来
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA40:MA(C,40);
MA60:MA(C,60);
STICKLINE(MA5=MA60 AND MA60=MA10,MA10,MA60,4,0),COLORBLUE;
STICKLINE(MA5=MA10 AND MA5=MA60,MA10,MA5,4,0),COLORBLUE;
STICKLINE(MA20=MA60 AND MA60=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20=MA40 AND MA20MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5=MA20 AND MA20=MA10,MA10,MA20,4,0),COLORWHITE;
STICKLINE(MA5=MA10 AND MA5MA20,MA10,MA5,4,0),COLORWHITE;
STICKLINE(C=O,H,L,0,0),COLORRED;
STICKLINE(CO,H,L,0,0),COLORFFFF52;
STICKLINE(C=O,C,O,4,1),COLORRED;
STICKLINE(CO,C,O,4,0),COLORFFFF52;
VAR01:=LLV(L,10); VAR02:=HHV(H,25);
趋势线:=EMA((C-VAR01)/(VAR02-VAR01)*4,4);
价:=EMA(MA((((C-REF(C,1))+(H-REF(H,1))+(L-REF(L,1)))/3)/C,5),1);
价5:=MA(价,5);
量:=EMA(MA((V-REF(V,1))/V,5),1);
量5:=MA(量,5);
角:=1(ATAN((C/REF(C,1)-1)*100)*180/3.14115926)-1;
W:=(C/REF(C,1))1.01;
横盘:=REF(((HHV(价,3)-LLV(价,3))/LLV(价,3)),1)=(0.00/100) AND REF(((HHV(价5,3)-LLV(价5,3))/LLV(价5,3)),1)=(0.00/100);
量横盘:=REF(((HHV(量,3)-LLV(量,3))/LLV(量,3)),1)=(0.00/100) AND REF(((HHV(量5,3)-LLV(量5,3))/LLV(量5,3)),1)=(0.00/100);
量比:=((量+REF(量,1)+REF(量,2))/(量5+REF(量5,1)+REF(量5,2)))0.5;
A:=COUNT(0.00=价=0.02 AND 0.00=价5=0.02,CROSS(价,价5))=1 AND W ,COLORYELLOW;
ABB:=COUNT(0.00=价=0.02 AND 0.00=价5=0.02,横盘 AND 量比 AND 量横盘 AND 角)=1 AND W ,COLORRED;
逃顶高手:=A AND ABB;
地量一:=MA(V,3)/MA(V,20)0.4;
地量二:=COUNT(V/(V,20)0.4,3)=3;
地量三:=V/MA(V,30)0.5 AND V/HHV(V,30)0.2;
AA:=SUMBARS(VOL,CAPITAL);
地量四:=VOLMA(VOL,AA)/3;
地量选股:=(地量一 OR 地量二 OR 地量三 OR 地量四)=1 AND (REF(地量一,1) OR REF(地量二,1) OR REF(地量三,1) OR REF(地量四,1))=0;
P1:=5;
P2:=4;
VARAB:=LLV(LOW,P1);
VARBB:=HHV(HIGH,P1);
KA1:=MA((CLOSE-VARAB)/(VARBB-VARAB)*100,P2),COLORRED;
DA1:=MA(0.667*REF(KA1,1)+0.333*KA1,2),COLORWHITE;
庄家:=KA1;
散户:=DA1;
低吸:=CROSS(庄家,散户) AND 庄家30;
VAR2D:=(2*CLOSE+HIGH+LOW)/4;
VAR03:=IF(YEAR=2099 AND MONTH2,0,1);
VAR04:=LLV(LOW,5);
VAR05:=HHV(HIGH,4);
庄家1:= EMA((VAR2D-VAR04)/(VAR05-VAR04)*100,4)*VAR03;
散户1:= EMA(0.667*REF(庄家1,1)+0.333*庄家1,2)*VAR03;
短进1:=CROSS(庄家1,散户1) AND 庄家150 AND 29庄家1;
低吸1:=CROSS(庄家1,散户1) AND 庄家130;
买入:=逃顶高手 AND 低吸 AND (短进1 OR 低吸1) AND 趋势线REF(趋势线,1);
{短线买入立柱图}
STICKLINE(买入,0,6,3,0),COLORRED;
DRAWICON(买入,5,5)COLORFF00FF ;
DRAWTEXT(逃顶高手 AND 地量选股,2,'地量'),COLORYELLOW;
DRAWTEXT(买入,4.5,'短线买入'),COLORYELLOW; VAR21:=REF(CLOSE,1);
VAR22:=((SMA(MAX((CLOSE – VAR21),0),6,1) / SMA(ABS((CLOSE – VAR21)),6,1) * 100));
短期顶部:CROSS(+80,VAR22) *8,COLORWHITE,LINETHICK2,STICK;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
卖点:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
卖:IF(卖点,6.5,0),STICK,COLORGREEN,LINETHICK4;
洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
量1:=EMA(洗钱A,3);
量2:=EMA(洗钱A,5);
量3:=EMA(洗钱A,7);
STICKLINE(量1量2,量3,量1,3,1),COLORRED;
STICKLINE(量1量2,量3,量1,2,0),COLORCYAN;
T1:=量2量3 AND 量1REF(量1,1);
T2:=量2量3 AND 量1REF(量1,1);
STICKLINE(T1,量1,量3,2,0),COLORYELLOW;
STICKLINE(T2,量1,量3,3,1),COLORFF00FF;
洗钱B:=SMA(洗钱A,13,1);
分水岭:SMA(洗钱B,2.5,1.5),LINETHICK2,COLORWHITE;
牛线:3*洗钱B-2*分水岭,LINETHICK2,COLORFF00FF ;
熊线:4*分水岭-3*洗钱B,LINETHICK2,COLORFF6633;
DIF1:=EMA(C,12)-EMA(C,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1);
QZQ:=BARSLAST(REF(MACD,1)0 AND MACD0);
QM:=LLVBARS(MACD1,QZQ+20);
MQDZ:=IF(QMQZQ,REF(MACD1,QM),0);
QF:=LLVBARS(DIF1,QZQ+20);
DQDZ:=IF(QFQZQ,REF(DIF1,QF),0);
XG1:=MACD10 AND MACD1MQDZ AND DIF10 AND DIF1DQDZ AND C=LLV(C,QZQ+20) AND MQDZ0 AND DQDZ0;
XG:REF(XG1,1)=1 AND MACD1REF(MACD1,1);
VAR21A:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR61:=REF(CLOSE,1); VAR70A:=SMA(MAX(CLOSE-VAR61,0),6,1)/SMA(ABS(CLOSE-VAR61),6,1)*100;
DRAWICON(CROSS(90,VAR70A),H*0.8.04,9); MTM1:=C-REF(C,1);
A013:=HHV(HIGH,34);
A014:=(2*CLOSE+HIGH+LOW)/4;
A015:=LLV(LOW,34);
A016:=EMA(((A014-A015)/(A013-A015))*100,13);
A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);
KKMD:=A016-A0171 AND A01630 AND A01730;
DRAWTEXT(FILTER(KKMD,30),L*0.05,'▲短买'),COLOR00FFFF;
VAR06:=REF(C,1);
VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100;
DRAWTEXT(CROSS(82,VAR07),H*0.9,'减仓'),COLORGREEN;
RSVB:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;
K:=SMA(RSVB,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VARA6:=(2*C+H+L)/3;
VARA7:=EMA(EMA(EMA(VARA6,4),4),4);
VARA8:=(VARA7-REF(VARA7,1))/REF(VARA7,1)*100;
VARA9:=MA(VARA8,3)+0.03;
VARA10:=MA(VARA8,1);
DRAWICON(CROSS(VARA9,VARA10) AND J90,H*0.96,12),COLORGREEN;
DRAWTEXT(CROSS(VARA9,VARA10) AND J90,H*1.02,'卖'),COLORCYAN;
LCD:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LCD,0),4.1,1)/SMA(ABS(CLOSE-LCD),4.1,1)*100;
建仓:CROSS(RSI,11)*10,COLORRED;
主力进场洗盘拉升出货指标
V1:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
V2:=2*ABS(V1);
V3:=100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,1));
V4:=100-(100-3*SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,1));
V5:=(H+L+C)/3;
V6:=(V5-MA(V5,10))/(0.015*AVEDEV(V5,10));
V7:=(V5-MA(V5,30))/(0.015*AVEDEV(V5,30));
V8:=IF(V6=150 AND V6200 AND V7=150 AND V7200,10,0);
V9:=IF(V6=-150 AND V6-200 AND V7=-150 AND V7-200,-10,V8);
VA:=(C-MA(C,13))/MA(C,13)*100;
VB:=100-ABS(VA);
VC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2
*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VD:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))
*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VE:=REF(L,1)*0.9;
VF:=L*0.9;
V10:=(VF*V+VE*(CAPITAL-V))/CAPITAL;
V11:=EMA(V10,30);
V12:=V11-C;
V13:=REF(C,1);
V14:=SMA(MAX(C-V13,0),7,1)/SMA(ABS(C-V13),7,1)*100;
V15:=SMA(MAX(C-V13,0),13,1)/SMA(ABS(C-V13),13,1)*100;
V16:=BARSCOUNT(C);
V17:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
V18:=((-100)*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+50)*2;
V19:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
V1A:=(SMA(V19,4,1)-50)*2;
V1B:=SMA(V1A,3,1);
V1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
V1D:=SMA(V1C,4,1);
V1E:=SMA(V1D,3,1);
V1F:=(HHV(H,30)-C)/C*100;
V20:=IF(V17=25 AND V18-95 AND V1F20 AND V1B-30 AND V1E30
AND V12=-0.25 AND V1422 AND V1528 AND V1650,80,0);
大趋势: V3;
顶线: IF(VB90,VB,100);
多方: IF(V10,V1,0),LINESTICK;
空方: -IF(V10,V2,0),LINESTICK;
抄底: V20,COLORRED,LINETHICK2;
预警系统: (IF((V7=200 AND V6=150) OR CROSS(65,多方),15,IF(V7=-200
AND V6=-150,-15,V9))+65);
STICKLINE(V3=REF(V4,1),V3,V4,8,0),COLORWHITE;
STICKLINE(V3REF(V4,1),V3,V4,8,0),COLORRED;
T1:=CMA(C,20) AND MA(C,20)=REF(MA(C,20),1);
T2:=C; T3:=多方60 AND 预警系统65 AND 顶线=100;
T4:=多方48 AND 预警系统65 AND 顶线100;
T5:=空方-38 AND 预警系统65;
T6:=抄底50 AND 顶线90;
T7:=V3REF(V4,1) AND VREF(V,1) AND CREF(C,1);
T8:=V3=REF(V4,1) AND C AND 空方=REF(空方,1) AND VC; DRAWTEXT(T1 AND COUNT(T1,30)=1,10,'上升通道!'),COLOR00FFFF;
B2:=DRAWTEXT(T2 AND COUNT(T2,30)=1,55,'下降通道!'),COLOR00FFFF;
B3:=DRAWTEXT(T3 AND COUNT(T3,30)=1,55,'上涨过急!'),COLOR00FFFF;
B4:=DRAWTEXT(T4 AND COUNT(T4,30)=1,75,'庄家出货!'),COLOR00FFFF;
B5:=DRAWTEXT(T5 AND COUNT(T5,30)=1,50,'有小反弹!'),COLOR00FFFF;
B6:=DRAWTEXT(T6 AND COUNT(T6,30)=1,30,'抢反弹!'),COLOR00FFFF;
B7:=DRAWTEXT(T7 AND COUNT(T7,30)=1,-10,'资金进场!'),COLOR00FFFF;
DRAWTEXT(T8 AND COUNT(T8,30)=1,90,'见顶回落!'),COLOR00FFFF;
十:MA(C,10),COLOR00FFFF,LINETHICK2;
涨:IF(MA(CLOSE,10)REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLORRED,LINETHICK2;
平:IF(MA(CLOSE,10)=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLOR00FFFF,LINETHICK3;
跌:IF(MA(CLOSE,10)REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(平=十,十*0.998-0.01,'关注'),COLORCYAN;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
DRAWTEXT(SEL,H+0.1,'卖出');
STICKLINE(买线=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:EMA(CLOSE,10),COLORRED;
散户:EMA(CLOSE,5),COLORWHITE;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3
,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'建仓'),COLORYELLOW;
AA:=(HHV(HIGH,20) – (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B SSSB)) AND (B1B 0)) AND (COUNT(BB,SSSB) 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B B1B)) AND (COUNT(BB,SSSB) 4)) AND (COUNT(BB,SSSB) 2));
DRAWTEXT((B1 = 1),(LOW – 0.6),'加仓'),COLORYELLOW;
评论(0)