通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信主力启动指标公式
N:=24;
VAR1:=EMA(EMA(CLOSE,13),13);
控盘指数:(VAR1-
REF(VAR1,1))/REF(VAR1,1)*1000,POINTDOT,COLORFFCCCC;
STICKLINE(控盘指数<0,控盘指数,0,2,0),COLORGRAY;
无庄控盘:控盘指数<0,LINETHICK0,COLORGRAY;
STICKLINE(控盘指数>REF(控盘指数,1)AND控盘指数>0AND
控盘指数<3,控盘指数,0,2,1),COLORRED;
STICKLINE(控盘指数>REF(控盘指数,1)AND控盘指数>0AND
控盘指数>3,控盘指数,0,2,1),COLORRED;
STICKLINE(控盘指数>REF(控盘指数,1)AND控盘指数>3,控盘指
数,3,4,1),COLORFF00FF;
主力控盘:控盘指数>REF(控盘指数,1)AND控盘指数>0,LINETHICK0,COLORRED;
STICKLINE(控盘指数<REF(控盘指数,1)AND控盘指数>0,控盘指
数,0,2,0),COLOR00FF00;
控盘减弱:控盘指数<REF(控盘指数,1)AND控盘指数>0,LINETHICK0,COLOR00FF00;
VARA:=EMA(0.667*REF(控盘指数,1)+0.333*控盘指数,2);
STICKLINE(控盘指数>VARA,控盘指数,VARA,2,0),COLORRED;
B2:=控盘指数>VARA;
准备:B2>REF(B2,1)AND控盘指数<(-2),COLORYELLOW;
DRAWTEXT(准备,3,'准备'),COLORYELLOW;
B1:=(控盘指数>REF(控盘指数,1)AND控盘指数>0)=1;
开始控盘:B1>REF(B1,1),COLORMAGENTA,LINETHICK3;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,
4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF
(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE
F(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)AND
CROSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(买=1,5),L*0.11,1);
DIFF:(EMA(CLOSE,12)
EMA(CLOSE,26))*20,COLORWHITE,LINETHICK1;
DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1;
MACD:2*(DIFF-DEA),COLORSTICK;
MACD1:=2*(DIFF-DEA),COLORRED,NODRAW;
MACD2:=EMA(MACD1,3),COLORCYAN,NODRAW;
STICKLINE(MACD1>MACD2
MACD1>0,0,MACD1,2,0),COLORRED;
STICKLINE(MACD1>MACD2
MACD1<0,0,MACD1,2,0),COLORYELLOW;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORGREEN;
S1:=MACD<0;
S2:=(MACD>=0);
S3:=BARSLAST(CROSS(DIFF,DEA));
S4:=REF(S3,S3+1);
S5:=DEA>REF(DEA,S4);
S6:=DEA;
上成立:=CROSS(DIFF,DEA)ANDS5;
下成立:=CROSS(DIFF,DEA)ANDS6;
AND
AND
L1:=(EMA(CLOSE,3)-EMA(CLOSE,13));
L2:=EMA(L1,9);
L3:=BARSLAST(CROSS(L1,L2));
L4:=REF(L3,L3+1);
L5:=L2;
变盘:CROSS(L1,L2)ANDL5,NODRAW,COLORD6FF9C;
STICKLINE(变盘,5,0,0,1),COLORD6FF9C;
LS:=IF(DIFF>DEAANDDIFF>0,1,0);
加速上扬:IF(REF(LS=0,1)ANDLS=1,0.1,0);
XG1:CROSS(MACD1,MACD2)ANDMACD1<0,NODRAW;
XG2:CROSS(DIFF,DEA),NODRAW;
M1:=MACD>REF(MACD,1)ANDDIFF<DEA;
绿柱短了:M1ANDCOUNT(M1,10)=1ANDC>MA(C,55)AND
COUNT(MACD<0,5)>=5,NODRAW;
DRAWTEXT(绿柱短了,MACD,'买点来了');
DIFL:=EMA(V,12)-EMA(V,26);
DIF:=EMA(C,12)-EMA(C,26);
BL:=DIFL>REF(DIFL,1)ANDDIF<REF(DIF,1);
四天:REF(BL,3)=1ANDREF(BL,2)=1ANDREF(BL,1)=1AND
BL;
三天:REF(BL,2)=1ANDREF(BL,1)=1ANDBL;
{VERTLINE(上成立,3),COLORYELLOW;
VERTLINE(下成立,3),COLORRED;}
IF(DIFF>DEA,DIFF,DRAWNULL),COLORFF11CC,LINETHICK1;
IF(DIFF>DEA
DIFF<0,DIFF,DRAWNULL),COLORRED,LINETHICK1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWTEXT(FILTER(D>80,6),H*1.018,'D>80');
AND
DRAWTEXT(FILTER(CROSS(K,D)ANDD<26,6),H*0.95,'KD低
位金叉'),COLORFFCCCC;
STICKLINE(FILTER(CROSS(K,D)
D<26,6),H*0.97,H*0.95,4,0),COLORFFCCCC;
DIFFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEAF:=EMA(DIFFF,9);
MACDD:=2*(DIFFF-DEAF);
DRAWTEXT(FILTER(CROSS(DIFFF,DEAF)ANDDEAF<0,6),L-
0.02,'MACD低位金叉'),COLORRED;
STICKLINE(FILTER(CROSS(DIFFF,DEAF)ANDDEAF<0,6),L-
0.02,L-0.1,4,0),COLOR00FF00;
DRAWTEXT(FILTER(CROSS(DIFFF,DEAF)
DEAF>0,13),H+0.25,'MACD下拐点'),COLORYELLOW;
STICKLINE(FILTER(CROSS(DIFFF,DEAF)
DEAF>0,13),H+0.02,H+0.12,4,0),COLORBLUE;
DRAWTEXT(FILTER(CROSS(MACDD,0),13),L*0.65,'MACD上拐
点'),COLORRED;
STICKLINE(FILTER(CROSS(MACDD,0),13),L*0.97,L*0.95,4,0),C
OLORWHITE;
ROC:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;
DRAWTEXT(FILTER(CROSS(ROC,0),6),L-2.25,'骗线拐点
'),COLORWHITE;
STICKLINE(FILTER(CROSS(ROC,0),6),L-0.02,L-
0.15,4,0),COLORFF00FF
RR1:=MA(CLOSE,27);
RR2:=(CLOSE-RR1)/RR1*100;
RRA:=MA(RR2,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-10ANDRRB>3;
STICKLINE(IF(RRD,-120,0),-120,0,8,0),COLOR33FFFF;
黄金坑:IF(RRD,-120,0),COLOR00FF66,COLORLIBLUE,LINETHICK2;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI14:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,LINETHICK2;
强势线:100,LINETHICK2;
低位线:-100,COLORRED,LINETHICK2;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR2:=LLV(LOW,20);
VAR3:=HHV(HIGH,20);
操盘:=3*VAR300-2*VAR400;
PS1:=CROSS(操盘,VAR300)ANDVAR300<2.1ANDC>O;
STICKLINE(PS1,30,-100,3,0),COLORFF00FF;
STICKLINE(PS1,30,-100,2,0),COLORFF66FF;
STICKLINE(PS1,30,-100,1,0),COLORFF66CC;
STICKLINE(PS1,30,-100,1,0),COLORFF99FF;
STICKLINE(PS1,30,-100,1,0),COLORFFCCFF;
STICKLINE(PS1,30,-100,1,0),COLOR00FFFF;
STICKLINE(PS1,30,
二、通达信主力资金启动指标公式
VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);
VAR6:=MA(VAR5,3);
开始控盘:=STICKLINE((VAR6<=(0-10)),0,(0-
20),3.5,0),COLOR00AAFF;
STICKLINE((VAR6<=(0-10)),0,(0-20),3.5,0),COLOR0044FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),2.5,0),COLOR0088FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),3,0),COLOR00AAFF;
VAR1:=EMA(EMA(CLOSE,3),1);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;
STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;
STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;
STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;
主力出货:0,COLORFFAA00;
1/4下载文档可编辑
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,3.5,0),COLOR000088;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,2.5,0),COLOR0000AA;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1.5,0),COLOR0000CC;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR0000EE;
主力吸货:0,COLOR0000FF;
STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,3.5,0),COLOR008800;
STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,2.5,0),COLOR00AA00;
STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,1.5,0),COLOR00CC00;
STICKLINE(控盘<REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR00EE00;
STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;
STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;
STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;
STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;
对倒出货洗盘:0,COLOR00FF00;
2/4下载文档可编辑
黄色底部吸货:0,COLORYELLOW;
DRAWTEXT(CROSS(控盘,0),0-3,'买。追'),COLORFF00FF;
DRAWTEXT(CROSS(0,控盘),0-0,'卖'),COLORGREEN;
DATA:=5;
{多头买入}DRAWICON(ZIG(3,DATA)>REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)<=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)<=REF(ZIG(3,DATA),3),L*0.98,1);
{多头卖出}DRAWICON(ZIG(3,DATA)<REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)>=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)>=REF(ZIG(3,DATA),3),H*1.02,2);
VAR0:=DYNAINFO(5);
VAR1:=BARSCOUNT(HIGH);
VAR2:=(SMA((HIGH/HHV(CLOSE,120)),3,1)*100);
低位⾦叉进:=IF((VAR1>20),VAR2,0);
VAR11:=IF((HIGH<VAR0),0,IF((LOW>VAR0),1,(((VAR0-HIGH)+0.009)/((LOW-HIGH)+0.009))));
AAA:=(DMA(VAR11,(VOL/SUM(VOL,90)))*60);
BBB:=(DMA(VAR11,(VOL/CAPITAL))*60);
VAR12:=IF(C>1000,AAA,BBB);
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:控盘天下股事汇'),COLORRED;
VAR3:=IF((((VAR12>0)AND(VAR12>REF(VAR12,1)))AND(低位⾦叉进>=88)),VAR2,0);
VAR4:=((3*SMA((((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27)))*100),5,1))-(2*SMA(SMA((((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-
HHV(HIGH,27)))*100),5,1),3,1)));
VAR5:=EMA(VAR4,8);
VAR6:=((3*SMA((((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55)))*100),5,1))-(2*SMA(SMA((((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-
HHV(HIGH,55)))*100),5,1),3,1)));
VAR7:=(EMA(VAR6,3)-10);
A:=1.1*C;
B:=0.9*C;
B1:=100*(WINNER(A)-WINNER(B));
C1:=MA(C,13);
D1:=IF(C>1000,CROSS(VAR3,22),CROSS(VAR3,24));
锁定筹码:=100-B1,COLOR0084FF;
锁定区:STICKLINE(锁定筹码>70ANDC1,0,锁定筹码-65,8,0),COLORRED;
主⼒资⾦:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORRED,LINETHICK2;
爆发线:80,COLORLIBLUE,LINETHICK1;
即将爆发线:65,COLORMAGENTA;
DRAWTEXT(CROSS(主⼒资⾦,爆发线),主⼒资⾦,'★爆发'),COLORYELLOW;
爆发警戒线:50,COLORYELLOW;
抄底线:20,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(主⼒资⾦,抄底线),主⼒资⾦,'★抄底'),COLORWHITE;
DRAWTEXT(CROSS(主⼒资⾦,爆发警戒线),主⼒资⾦,'★加仓1'),COLORYELLOW;
DRAWTEXT(CROSS(主⼒资⾦,即将爆发线),主⼒资⾦,'★加仓2'),COLORYELLOW;
DRAWTEXT(CROSS(爆发线,主⼒资⾦),爆发线,'★空仓'),COLORBROWN;
LC:=REF(C,1);
F1:=ZIG(3,15);
⽅向:IF((F1>REF(F1,1)),5,105),COLOR00FF00,LINETHICK1;
DRAWTEXT(CROSS(抄底线,⽅向),抄底线,'★逢低进场!'),COLORYELLOW;
DRAWTEXT(CROSS(⽅向,抄底线),⽅向+20,'★逢⾼出场!'),COLORGREEN;
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主⼒筹码估算}
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主⼒筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//⼩筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//⼩股民套牢筹码⽐率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主⼒控盘筹码⽐率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL<90ANDREF(ZSHTL,1)>90);{//⾛⽜天数}
ZSHJJ:=EMA(ZSHTL,89);{//⼩股民警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主⼒警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资⾦流⼊强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
散户套牢系数:INTPART(ZSHTL),NODRAW;
主⼒控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;
资⾦流⼊强度:ZJLRQD,NODRAW;
[源码注释]通达信公式动态翻译结果
A1A赋值:收盘价的9日指数移动平均
A1B赋值:((A1A-收盘价的5日指数移动平均)<0)
A1C赋值:((A1A-收盘价的5日指数移动平均)>0)
A1D赋值:上次A1B距今天数
A1E赋值:上次A1C距今天数
A1F赋值:如果(A1E>0),返回(收盘价-1日前的收盘价)/1日前的收盘价*100,否则返回0
A20赋值:A1F的历史累和
A21赋值:如果(A1D>0),返回(0-2),否则返回0
A22赋值:如果(A1E>0),返回(收盘价-1日前的收盘价)/1日前的收盘价*100的A1E日累和,否则返回0
A23赋值:A22/A1E
A25赋值:收盘价的3日指数移动平均的2日指数移动平均的3日指数移动平均
输出上升通道:((A25-1日前的A25)+A25),画红色
输出反转通道:上升通道的15日简单移动平均,画绿色
输出买入:((1日前的A21=(0-2)) AND (A21=0)),NODRAW
输出卖出:统计2日中满足上升通道<2日前的上升通道的天数=1 AND 上升通道>反转通道 AND 收阴线,NODRAW
当满足条件(上升通道>反转通道)时,在反转通道和上升通道位置之间画柱状线,宽度为1,0不为0则画空心柱.,画洋红色
当满足条件(反转通道>上升通道)时,在上升通道和反转通道位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFF0000
当满足条件买入时,在上升通道*1.01位置画5号图标
当满足条件(卖出OR((1日前的A1E>0)AND(A1E=0)))时,在上升通道*1.01位置画6号图标
推荐阅读:通达信底部启动指标公式
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-
EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.118;
金线王2:=EMA(A2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:=CROSS(C,金线王)AND条件;
RRF:=金K线,STICK;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF;
STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300;
STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500;
STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700;
STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900;
STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR666666;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR777777;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR888888;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR999999;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORDDDDDD;
STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORFFFFFF;
{STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000044;
STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000033;
STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000055;
STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000077;
STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLOR000099;
STICKLINE(IF(RRF,-120,0),-3,0,3,0),COLORLIMAGENTA;}
DRAWTEXT(RRF,8.5,黑),COLORYELLOW;
DRAWTEXT(RRF,6,马),COLORYELLOW;
DRAWTEXT(RRF,3.5,启),COLORRED;
DRAWTEXT(RRF,1,动),COLORRED;
VAR2:=IF(MONTH<12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK2,COLORRED;
散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK1,COLORFF9933;
小心被套:IF(CROSS(主力,75)AND散户<主力,75,62),STICK,LINETHICK2,COLORGREEN;62,STICK,LINETHICK2,COLOR000000;
冲顶:IF(CROSS(主力,65)AND散户<主力,61,49),STICK,LINETHICK2,COLORF00FF0;49,STICK,LINETHICK2,COLOR000000;
上扬:IF(CROSS(主力,30)AND散户<主力,48,35),STICK,LINETHICK2,COLORYELLOW;35,STICK,LINETHICK2,COLOR000000;
强弱分界线:50,POINTDOT,LINETHICK2,COLORFFFF00;
DRAWTEXT(CROSS(主力,散户)AND主力<22,20,'启动'),LINETHICK2,COLOR0099FF;
DRAWICON(CROSS(主力,散户)AND主力<22,25,1);
DRAWTEXT(CROSS(主力,30)AND散户<主力,40,'上扬'),LINETHICK2,COLOR00CCFF;
DRAWICON(CROSS(主力,30)AND散户<主力,35,1);
DRAWTEXT(CROSS(主力,65)AND散户<主力,55,'冲顶'),LINETHICK2,COLOR9933FF;
DRAWICON(CROSS(主力,65)AND散户<主力,70,2);
DRAWTEXT(CROSS(主力,75)AND散户<主力,67,'小心被套'),LINETHICK2,COLOR009900;
DRAWICON(CROSS(主力,75)AND散户<主力,80,2);
DRAWTEXT(CROSS(散户,主力)AND散户>75,80,'头部'),COLORYELLOW;
DRAWICON(CROSS(散户,主力)AND散户>75,85,2);
买入脉冲:IF(CROSS(主力,散户)AND主力<35,55,5),LINETHICK4,COLORGREEN;
卖出脉冲:IF(CROSS(散户,主力)AND散户>75,75,90),LINETHICK4,COLORRED;
做两个选股公式,一个是“启动”
选股公式如下
VAR2:=IF(MONTH<12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
主力:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
CROSS(主力,散户)AND主力<22;
另一个是“上扬”
选股公式如下
VAR2:=IF(MONTH<12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
主力:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
CROSS(主力,30)AND散户<主力;
评论(0)