通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、庄家筹码指标公式源码
股价趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部警戒:10,colorred,linethick2;
买入警戒:STICKLINE(股价趋势<=10,0,20,2,0),color008364,linethick2;
买入信号:STICKLINE(CROSS(股价趋势,底部警戒),0,30,3,0),colorred,linethick5;
顶部警戒:90,colorffbb66,linethick2;
卖出警戒:STICKLINE(股价趋势>=85,100,80,2,0),STICK,colorF00FF0,linethick2;
止损出局:STICKLINE(CROSS(顶部警戒,股价趋势),100,70,3,0),colorfff666,linethick5;
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),Color8811FF;
突击套利线:=14;
套利阻力线:=78.89;
抄底:=CROSS(多方趋势,突击套利线);
逃顶:=CROSS(套利阻力线,多方趋势);
DRAWICON(抄底,多方趋势,1);
DRAWICON(逃顶,多方趋势,2);
VAR1:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
成交:=VOL;
买盘:=IF((CLOSE>OPEN),(VAR1*(HIGH-LOW)),IF((CLOSE<OPEN),(VAR1*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)));
卖盘:=IF((CLOSE>OPEN),(0-(VAR1*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(VAR1*(HIGH-LOW))),(0-(VOL/2))));
买卖差:=(买盘+卖盘);
STICKLINE((VOL>0),VOL,0,10,1),COLORFFFFFF;
STICKLINE((买卖差>0),0,买卖差,10,0),COLOR0000FF;
STICKLINE((买卖差<0),0,买卖差,5,0),LINETHICK3,COLOR33FF33;
量比1:=(VOL/MA(VOL,5));
VAR10:=买盘;
VAR20:=卖盘;
JX1:=BARSSINCE(买盘);
JY1:=IF(((121>JX1)AND(JX1>0)),JX1,120);
JY2:=IF(((4>JX1)AND(JX1>0)),JX1,3);
VAR30:=MA(VOL,JY2);
动神:=买盘;
鬼力:=VAR20;
神比:=(动神/VAR30);
鬼比:=(鬼力/VAR30);
VAR2:=(HIGH-LOW);
VAR3:=ABS((OPEN-CLOSE));
VAR4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);
VAR6:=((VAR3/VAR2)*VOL);
VAR7:=((VAR4/VAR2)*VOL);
VAR8:=((VAR5/VAR2)*VOL);
VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
VARA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);
VARB:=(((MA(CLOSE,5)>MA(CLOSE,10))AND(MA(CLOSE,10)>MA(CLOSE,30)))AND(MA(CLOSE,30)>MA(CLOSE,60)));
VARC:=((MA(CLOSE,5)<MA(CLOSE,10))AND(MA(CLOSE,10)<MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE-VARD),0),6,1)/SMA(ABS((CLOSE-VARD)),6,1))*100);
VAR40:=((IF((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE>OPEN)),VAR6,动神)+动神)/2);
VAR41:=((IF(((VAR7>VAR6)AND(VAR7>VAR8)),VAR7,动神)+动神)/2);
VAR42:=((IF(((VAR8>VAR6)AND(VAR8>VAR7)),VAR8,动神)+动神)/2);
VAR50:=((IF((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE<OPEN)),VAR6,鬼力)+鬼力)/2);
三日上攻:=MA((((VAR40+VAR41)+VAR42)/3),JY2);
三日下攻:=MA(VAR50,JY2);
STICKLINE((CLOSE>MA(CLOSE,30)),0,VOL,10,1),COLOR0000FF;
STICKLINE((CLOSE<MA(CLOSE,30)),0,VOL,10,1),COLOR00FF00;
STICKLINE((鬼力>0),鬼力,0,8,0),COLORFF3399;
STICKLINE((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE>OPEN)),0,VAR6,10,0),COLOR00FFFF;
STICKLINE((((VAR6>=VAR7)AND(VAR6>=VAR8))AND(CLOSE<OPEN)),0,VAR6,10,0),COLORFF0000;
STICKLINE(((VAR8>VAR6)AND(VAR8>VAR7)),0,VAR8,10,0),COLORFFFFFF;
STICKLINE(((VAR7>VAR6)AND(VAR7>VAR8)),0,VAR7,10,0),COLORFF00FF;
STICKLINE(((VAR9>2)AND(VOL<(MA(VOL,5)/2))),0,VOL,6,0);
XA_1:=REF(LOW,1);
XA_2:=SMA(ABS(LOW-XA_1),3,1)/SMA(MAX(LOW-XA_1,0),3,1)*100;
XA_3:=EMA(IF(CLOSE*1.2,XA_2*10,XA_2/10),3);
XA_4:=LLV(LOW,38);
XA_5:=HHV(XA_3,38);
XA_6:=IF(LLV(LOW,90),1,0);
XA_7:=EMA(IF(LOW<=XA_4,(XA_3+XA_5*2)/2,0),3)/618*XA_6;
机构筹码:STICKLINE(XA_7,0,XA_7,6,1),COLORRED;
DRAWTEXT(XA_7,50,18),COLORRED;
超大户筹码:EMA(IF(LOW<=LLV(LOW,30),SMA(ABS(LOW-REF(LOW,1)),30,1)/SMA(MAX(LOW-REF(LOW,1),0),30,1),0),3)*10,STICK,COLORYELLOW,LINETHICK2;
XA_8:=MA(CLOSE,5);
XA_9:=MA(CLOSE,10);
XA_10:=MA(CLOSE,30);
XA_11:=MA(CLOSE,60);
XA_12:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
XA_13:=INTPART(XA_12*100)/100;
XA_14:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
XA_15:=INTPART(XA_14*100)/100;
XA_16:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
XA_17:=INTPART(XA_16*100)/100;
XA_18:=EMA(CLOSE,5)-EMA(CLOSE,10);
XA_19:=EMA(XA_18,9);
XA_20:=0-100*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
XA_21:=0-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
XA_22:=0-100*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
XA_23:=0-100*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
XA_24:=REF(XA_19,1);
XA_25:=XA_19;
XA_26:=XA_25-XA_24;
XA_27:=REF(XA_18,1);
XA_28:=XA_18;
XA_29:=XA_28-XA_27;
XA_30:=OPEN;
XA_31:=CLOSE;
发现私募入场:IF(XA_30<=XA_8ANDXA_30<=XA_9ANDXA_30<=XA_10ANDXA_31>=XA_8ANDXA_31>=XA_17ANDXA_26>0ANDXA_29>0,(-10),0),COLORGREEN,LINETHICK2;
短线指标:IF(CROSS(XA_18,XA_19)ANDXA_18<0ANDXA_19<0-0.2ANDXA_21>45ANDXA_26>0,(-10),0),COLORWHITE;
XA_32:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
XA_33:=REVERSE(XA_32);
XA_34:=SMA(XA_32,3,1);
趋势:SMA(XA_34,3,1),COLORRED,LINETHICK2;
人气:SMA(趋势,3,1),COLORYELLOW,LINETHICK2;
出击:IF(CROSS(趋势,人气)AND趋势<30,20,0),COLORWHITE,LINETHICK2;
短卖:IF(CROSS(人气,趋势)AND人气>75,85,100),COLOR008000,LINETHICK2;
二、动态筹码指标公式源码
白马线:MA(C,13),COLORRED,LINETHICK1;
黑马线:MA(C,34),COLORYELLOW,LINETHICK1;
烈马线:MA(C,55),COLOR9933CC,LINETHICK1;
K1:=BACKSET(白马线<REF(白马线,1),2);
波幅变窄:IF(K1,白马线,DRAWNULL),COLOR00CC33,LINETHICK1;
K2:=BACKSET(黑马线<REF(黑马线,1),2);
均线粘合:IF(K2,黑马线,DRAWNULL),COLORFFCC66,LINETHICK1;
K3:=BACKSET(烈马线<REF(烈马线,1),2);
随时变盘:IF(K3,烈马线,DRAWNULL),COLORBLUE,LINETHICK1;
JW1:=C<OPENANDREF(C,1)<REF(OPEN,1);
JW2:=OPEN<REF(C,1)ANDC>REF(L,1);
JW3:=O<EMA(C,13)ANDO<EMA(C,34)ANDO<EMA(C,55);
JW:=JW1ANDJW2ANDJW3;
金屋藏娇:DRAWTEXT(JW,LOW-0.1,'←藏娇'),COLORYELLOW;
AR1:=烈马线>黑马线AND黑马线>白马线;
AR2:=BARSLAST((C-白马线)/白马线*100<-6);
AR3:=白马线>=REF(白马线,1);
AR4:=COUNT(CROSS(C,白马线),AR2)=1;
AR5:=AR1ANDAR2ANDAR3ANDAR4;
AR6:=AR5ANDFILTER(AR5,10);
红杏出墙:DRAWTEXT(AR6,L-0.0,'←红杏'),COLORYELLOW;
Z1:STICKLINE(AR6,H,L,0.2,1),COLORYELLOW;
Z2:STICKLINE(AR6,O,C,3,1),LINETHICK2,COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;
BR2:=ABS((白马线-黑马线)+(黑马线-烈马线))/C<0.2;
BR3:=C>烈马线AND(REF(C,1)<REF(烈马线,1)ORREF(C,2)<REF(烈马线,2)OR
REF(C,3)<REF(烈马线,3)ORREF(C,4)<REF(烈马线,4)ORREF
(C,5)<REF(烈马线,5));BR4:=BR1ANDBR2ANDBR3;
蚂蚁上树:DRAWTEXT(BR4ANDFILTER(BR4,10),H+0.0,'←上树'),COLOR00C5FF;
TS1:=CROSS(MA(C,13),MA(C,34));
TS2:=MA(C,13)<MA(C,55);
TS:=TS1ANDTS2;
投石问路:DRAWTEXT(TS,黑马线-0.0,'←投石'),COLORF00FF0;
破镜重圆:DRAWTEXT(REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),
MA(C,55)))/MIN(MA(C,1),MA(C,55))*1000<60,1)
ANDEMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<REF(EMA
((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1)ANDREF((CLOSE-REF(CLOSE,1))/REF
(CLOSE,1)*100<-1,1)AND(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*
100>3,L-0.02,'←重圆');
破镜重圆K:STICKLINE(破镜重圆,OPEN,CLOSE,2.5,0),COLORWHITE;
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YY1:=C>MA(C,13)ANDOPEN<MA(C,13);
YY3:=C>MA(C,34)ANDOPEN<MA(C,34);
YY5:=C>MA(C,55)ANDOPEN<MA(C,55);
阳穿三线:DRAWTEXT(YY1ANDYY5ANDYY3,LOW-0.05,'←穿线'),COLORRED;
SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<C*0.01;
SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<C*0.01;
SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));
阳穿三线K:STICKLINE(阳穿三线,OPEN,CLOSE,2.5,0),COLORYELLOW;
三军集结:DRAWTEXT(SJ1ANDSJ2ANDSJ3,HIGH+0.05,'←集结'),COLORRED;
JG1:=ABS(MA(C,13)-MA(C,34))<C*0.02ANDABS(MA(C,13)-MA(C,55))<C*0.02;
JG2:=O>MA(C,13)ORO=MA(C,13);
JG3:=C/OPEN>1.03;
JG:=JG1ANDJG2ANDJG3;
揭竿而起:DRAWTEXT(JG,H+0.0,'←揭竿'),COLORYELLOW;
HR2:=白马线>=REF(白马线,3)AND黑马线>=REF(黑马线,1)AND烈马线>=REF
(烈马线,1)ANDCROSS(C,白马线)ANDCROSS(C,黑马线)ANDCROSS(C,烈马线);
三线推进:DRAWTEXT(HR2ANDFILTER(HR2,10),H+0.1,'←推进'),COLORFFC8FF;
X1:STICKLINE(HR2ANDFILTER(HR2,10),H,L,0,1),COLORFFC8FF;
X2:STICKLINE(HR2ANDFILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;
MK1:=MA(C,13)>MA(C,55)ANDMA(C,34)>MA(C,55);
MK:=TS1ANDMK1;
梅开二度:DRAWTEXT(MK,黑马线-0.0,'←二度'),COLORF00FF0;
均线互换:DRAWTEXT(CROSS(黑马线,烈马线),烈马线-0.0,'←互换'),
COLOR0099FF,LINETHICK9;
YZ1:=C/O>1.02ANDH/C>1.02ANDO/L<1.02;{收阳有上影}
YZ2:=REF(C,1)>REF(O,1)ANDO>MA(C,11);{昨收阳今大于均线}
YZ:=YZ1ANDYZ2ANDY>10;
一支独秀:DRAWTEXT(YZ,H+0.02,'←独秀'),COLORF00FF0;
DS1:=OPEN/C>1.04ANDO/REF(C,1)>1.03;
DS2:=V*100/FINANCE(7)>0.08ANDY>8;
DS:=DS1ANDDS2;
独上高楼:DRAWTEXT(DS,HIGH+0.0,'←高楼'),COLORGREEN;
YJ1:=H/O>1.04;
YJ2:=ABS(C-O)<C*0.03;
YJ3:=C/EMA(C,13)>1.1;
YJ:=YJ1ANDYJ2ANDDS2ANDYJ3ANDYZ2;
一剑封喉:DRAWTEXT(YJ,HIGH+0.1,'←封喉'),COLORRED;
T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
NN1:=C<MA(C,13)ANDOPEN>MA(C,13);
TT3:=C<MA(C,34)ANDOPEN>MA(C,34);
TT5:=C<MA(C,55)ANDOPEN>MA(C,55);
阴破三线:DRAWTEXT(NN1ANDTT5ANDTT3,H+0.0,'←破线'),COLORBLUE;
红衣黑客:DRAWTEXT(CROSS(白马线,烈马线),烈马线-0.0,'←红客'),
COLORYELLOW,LINETHICK9;
投石叉:DRAWICON(CROSS(白马线,黑马线),黑马线,1);
红客叉:DRAWICON(CROSS(白马线,烈马线),烈马线,1);
互换叉:DRAWICON(CROSS(黑马线,烈马线),烈马线,1);
分道叉:DRAWICON(CROSS(黑马线,白马线),黑马线,2);
穿心叉:DRAWICON(CROSS(烈马线,白马线),烈马线,2);
各为叉:DRAWICON(CROSS(烈马线,黑马线),烈马线,2);
{买卖成交量}[源码
量:VOL,VOLSTICK;
预量:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*
((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORFF00FF,POINTDOT;
卖:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORFF9088,POINTDOT;
买卖%:ABS(买/卖),LINETHICK0,COLORWHITE;
二十换:SUM(V/CAPITAL*100,20),COLORRED,POINTDOT;
预换:MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/
CAPITAL*100,COLORFFFF00,POINTDOT;
STICKLINE(VOL>0,VOL,0,2.5,0),COLORFF9088;
STICKLINE(买>0,0,买,2.5,0),COLORFF00FF;
五日均量:MA(V,5),COLORWHITE;
十日均量:MA(V,10),COLORYELLOW;
红箭:DRAWICON(CROSS(五日均量,十日均量),十日均量,1);
绿箭:DRAWICON(CROSS(十日均量,五日均量),十日均量,2);
{绝代双骄MACD}[源码
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;
DEA:EMA(DIF,9);DEF:=2*(DIF-DEA);
MACD:(DIF-DEA)*2,COLORSTICK;
进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK1;
K1:=BACKSET(进退有据<REF(进退有据,1),2);
速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK1;
K2:=BACKSET(DIF<REF(DIF,1),2);
畏法度:IF(K2,DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;
红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK1;
绿柱持币:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORLIBLUE,LINETHICK2;
日:=IF(DEF>0ANDREF(DEF,1)>REF(DEF,2)ANDDEF<REF(DEF,1),1,0);
月:=IF(DEF<0ANDREF(DEF,1)<REF(DEF,2)ANDDEF>REF(DEF,1),1,0);
天堂:DRAWTEXT(CROSS(DIF,DEA)ANDDIF<0,DEA,'←天'),COLORFF00FF;
加油:DRAWTEXT(CROSS(DIF,DEA)ANDDIF>0,DEA,'←加'),COLORYELLOW;
地狱:DRAWTEXT(CROSS(DEA,DIF)ANDDIF<0,DEA,'←地'),COLOR00CC33;
末日:DRAWTEXT(CROSS(DEA,DIF)ANDDIF>0,DEA,'←末'),COLORLIBLUE;
卖出:DRAWICON(FILTER(日,3)AND日,DEF+0.03,8);
钱袋:DRAWICON(FILTER(月,3)AND月,DEF-0.03,9);
金叉:DRAWICON(CROSS(DIF,DEA),DEA,1);
死叉:DRAWICON(CROSS(DEA,DIF),DEA,2);
[size=4{股市天机}[源码
DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:=EMA(DIF,7);
DEF:=2*(DIF-DEA);
量价线形:(DIF-DEA)*2,COLORSTICK;
STICKLINE(DEF>=0ANDDEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;
STICKLINE(DEF>=0ANDDEF<REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;
STICKLINE(DEF<0ANDDEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;
STICKLINE(DEF<0ANDDEF<REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;
DIFF:EMA(CLOSE,9)-EMA(CLOSE,18),COLORWHITE;
DEAA:EMA(DIFF,7),COLORYELLOW;
日:=IF(DEF>0ANDREF(DEF,1)>REF(DEF,2)ANDDEF<REF(DEF,1),1,0);
月:=IF(DEF<0ANDREF(DEF,1)<REF(DEF,2)ANDDEF>REF(DEF,1),1,0);
进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK2;
K1:=BACKSET(进退有据<REF(进退有据,1),2);
速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK2;
卖出:DRAWICON(FILTER(日,3)AND日,DEF+0.01,8);
钱袋:DRAWICON(FILTER(月,3)AND月,DEF-0.0,9);
金叉:DRAWICON(CROSS(DIFF,DEAA),DEA,1);
死叉:DRAWICON(CROSS(DEAA,DIFF),DEA,2);
HS:=V/CAPITAL;
DEM3:=EMA(Dma(C,HS*6.18),3);
DEM7:=EMA(Dma(C,HS*3.82),7);
DEM13:=EMA(Dma(C,HS*1.91),13);
DEM21:=EMA(Dma(C,HS),21);
glC:=((C/DEM3-1)*100+(C/DEM7-1)*100+(C/DEM13-1)*100)/3;
gl3:=((DEM3/DEM7-1)*100+(DEM3/DEM13-1)*100)/2;
gl7:=((DEM7/DEM13-1)*100);
gl13:=(DEM13/REF(DEM13,1)-1)*100;
gl21:=((c/DEM21-1)*100+(DEM3/DEM21-1)*100+(DEM7/DEM21-1)*100+(DEM13/DEM21-1)*100+(DEM21/REF(DEM21,1)-1)*100)/5;
乖:(glC+gl3+gl7+gl13),COLORWHITE;
离:(glC+gl3+gl7+gl13+gl21)/5,COLORGREEN;
0,COLORMAGENTA;
P1:=90;
F:=COST(5);
J:=COST(95);
M:=COST(15);
N:=COST(85);
获利比例:WINNER(CLOSE)*100,NODRAW;
STICKLINE(获利比例,获利比例,0,2,1),COLORLIGRAY;
STICKLINE(获利比例>=70,获利比例,0,1,0),COLORLIGRAY;
STICKLINE(获利比例>=80,获利比例,0,1,0),COLORGREEN;
STICKLINE(获利比例>=90,获利比例,0,1,0),COLORRED;
A:=P1+(100-P1)/2;
B:=(100-P1)/2;
CC:=COST(A);
DD:=COST(B);
筹码集中度:(CC-DD)/(CC+DD)*100,NODRAW;
STICKLINE(筹码集中度<=10,获利比例/2,0,1,0),COLORYELLOW;
[源码注释]通达信公式动态翻译结果
A4赋值:收盘价的20日简单移动平均
A5赋值:(收盘价>收盘价的5日简单移动平均)
A6赋值:(收盘价的5日简单移动平均>收盘价的10日简单移动平均)
A7赋值:(收盘价>收盘价的10日简单移动平均)
A8赋值:(收盘价的5日简单移动平均>收盘价的20日简单移动平均)
A9赋值:(收盘价>收盘价的20日简单移动平均)
A10赋值:1日前的A4
A11赋值:(A4>A10)
输出AVX:(((((如果A5,返回10,否则返回(0-10)+如果A6,返回10,否则返回(0-10))+如果A7,返回10,否则返回(0-10))+如果A8,返回10,否则返回(0-10))+如果A9,返回10,否则返回(0-10))+如果A11,返回10,否则返回(0-10)),画白色
推荐阅读:庄家吸筹指标源码
EXP1:EXPMA(CLOSE,M1);
EXP2:EXPMA(CLOSE,M2);
A:IF(CLOSE>SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORRED;
B:IF(CLOSE<SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORCYAN;
高1:=REF(HHV(H,150),3);
低1:=REF(LLV(L,150),3);
H3:=高1-(高1-低1)*0.5;
中轴:REFDATE(H3,DATE),POINTDOT,COLORLIGRAY,LINETHICK3;
B1:=EMA(C,12);
B2:=EMA(C,26);
B3:=(B1-B2)*2;
WDIF:中轴+B3;
WDEA:EMA(WDIF,9);
MACD:=2*(WDIF-WDEA);
STICKLINE(MACD>0,中轴,中轴+MACD,0,1),COLORYELLOW;
STICKLINE(MACD<0,中轴,中轴+MACD,0,1),COLORLIBLUE;
VAR2:=MA(CLOSE,5);
VAR3:=MA(CLOSE,10);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/(4);
VAR7:=((VAR6-REF(VAR6,周期))/(REF(VAR6,周期)))*(100);
VAR8:=((VAR6-REF(VAR6,周期))/(REF(VAR6,周期)))*(100);
VAR9:=EMA(VAR7,过滤);
红包:IF((TROUGHBARS(3,15,1)=0)AND(HIGH>LOW+0.01),10,(-5)),Color00FF00;
反转:STICKLINE(Var9>1*REF(Var9,1),Var7,0,5,0),COLOREE00EE;
持股:STICKLINE(Var7>1*REF(Var7,1),Var7,Var9,5,0),COLORRED;
持币:STICKLINE(Var7<1*REF(Var7,1),Var7,Var9,5,1),COLORGREEN;
洗盘:STICKLINE(Var7<1*REF(Var7,1)ANDVar9>1*REF(Var9,1),Var7,Var9,10,0),COLOR00EEFF;
VAR10:=((CLOSE-MA(CLOSE,58))/(MA(CLOSE,58)))*(100);
VAR11:=((VAR10>(1)*(REF(VAR10,1)))AND(VAR10<选股)AND(VAR10>抄底))*(1.5);
VAR12:=((VOL)/(CAPITAL))*(100);
VAR13:=LLVBARS(LOW,50);
VAR14:=SUM(VOL,VAR13);
VAR15:=HHVBARS(HIGH,50);
VAR16:=SUM(VOL,VAR15);
VAR17:=((CLOSE-REF(OPEN,VAR15))/(REF(OPEN,VAR15)))*(100);
VAR18:=((VAR16)/(CAPITAL))*(100);
VAR19:=((CLOSE-REF(OPEN,VAR13))/(REF(OPEN,VAR13)))*(100);
VAR20:=((VAR14)/(CAPITAL))*(100);
VAR21:=MA(CLOSE,3);
VAR22:=(REF(CLOSE,2))*(0.86500001);
VAR23:=(REF(CLOSE,13))*(0.77200001);
VAR24:=MIN(VAR22,VAR23);
VAR25:=MA(CLOSE,13);
抄底王:(IF(((CLOSE-VAR24)/(CLOSE)<0.02999999)AND(VAR17<(-35))AND((SUM(VAR12,5))/(5)<1.8),1,0))*(10),ColorFFFFFF;
VAR26:=((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100);
VAR27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100);
VAR28:=EMA(VAR27,9);
VAR29:=(2)*(VAR27-VAR28);
DRAWTEXT(Var27<(-50)ANDVar26>7ANDVar27<Var28,(-10),'底'),COLORWHITE;
DRAWTEXT(Var27<(-50)ANDVar26>7ANDVar27>=Var28,5,'追'),COLORWHITE;
STICKLINE(Var27<(-50)ANDVar26>7,0,(-10),5,0),COLORFFFF66;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:0-VAR9,NODRAW,COLORFF00FF;
STICKLINE(VAR9>-120,0,0-VAR9,1,1),COLORFF00FF,LINETHICK1;
VAR10:=IF(VAR9>-120,VAR9,0);
VAR11:=VAR10<REF(VAR10,1);
DRAWTEXT(VAR11ANDREF(NOT(VAR11),1),吸筹,'☆'),COLORYELLOW;
VAR12:=SMA(((HHV(CLOSE,13)-CLOSE)/(HHV(CLOSE,13)-LLV(CLOSE,13))),5,1);
冲顶:((10/VAR12)-10)/5,COLORSTICK,COLOR0080FF;
STICKLINE((冲顶>24),0,冲顶,1,1),COLOR0080FF,LINETHICK1;
引用:
通达信金钻买点及主力吸筹指标,源码分享 – 知乎
评论(0)