当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:主力监控,一触即发,集合竞价异动

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、主力监控

主力监控指标主要作用是观察每一个具体个股的筹码分布状况和散户的整体盈利比例。
红色曲线表示的是散户的盈利比例,白色曲线代表的是散户的仓位比例,下方紫色横线是抄底区警戒线,上方绿色横线是出货警戒线。
红色曲线数值越小表示持股的散户整体赚钱比例越低,曲线数值越小卖出的压力就越小;
白色曲线数值越小表示持股的散户越少,相应的主力仓位就越多;
当红色曲线和白色曲线同时快速下降到下方的抄底区下方时,即表示散户在卖出,而且持有股票的大部分都没有赚钱,这时就是理想的抄底时机,当然是否抄底,和建仓的仓位还是根据个股的基本面和整个市场大环境综合决定。( 顶尖财经 股票学院: http://58188.com )
当红色曲线处于上方的出货区,且散户仓位超过50%时,表示散户不断进场接盘且赚钱比例超过90%,绝大部分个股短期内都会出现下跌甚至是反转,极个别有重大利好刺激且人气非常旺的股票则可能继续震荡上涨一段时间后才会反转。
 


YXSJ:=18123099;
YX:=IF(1<1000000+YXSJ,1,0);{指标有效期};
 
N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
{}
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
{}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{}
CDN:=14;MM:=6;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),CDN);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),CDN);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),CDN);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
SF:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW;{散户人数}
ZL:=100-SF;
YL:=WINNER(C)*100;{散户盈利比例}
STICKLINE(显示柱形图=1,0,SF,10,0),COLOR333333;
 
短线反弹空间:(EMA(C,12)/C-1)*100,NODRAW,COLORWHITE;
中线反弹空间:(EMA(C,40)/C-1)*100,NODRAW,COLORYELLOW;
主力仓位%:100-(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW,COLORYELLOW;{主力曲线}
 
散户仓位:IF(散户持股比例=1,(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,DRAWNULL),COLORWHITE;
散户赚钱比例线:IF(散户赚钱比例=1,WINNER(C)*100,DRAWNULL),COLORRED,LINETHICK3;
游资赚钱比例线:=WINNER(MA(C,N))*100;
RSI低位区:=((YL<=10 AND SF<=15 AND PSY<=30) OR PSY<20 OR RSI1<15)
AND RSI1<20 AND RSI2<25 AND D<20
AND (RSI1<15 OR (RSI1<20 AND EMA(C,30)>EMA(C,60) AND EMA(C,50)>EMA(C,120) AND EMA(C,120)>EMA(C,250)) 
OR ADX>60 OR MDI>45 OR PSY<20);
YL低位区:=YL<=10 AND SF<=15 AND RSI1<20 AND D<20 AND PSY<=25
AND (RSI1<15 OR (RSI1<20 AND EMA(C,30)>EMA(C,60) AND EMA(C,50)>EMA(C,120) AND EMA(C,120)>EMA(C,250)) 
OR ADX>60 OR MDI>45 OR PSY<20);
PSY低位区:=(PSY<=20 AND (YL<=10 OR ADX>55) AND  (RSI1<20 OR D<20) AND EMA(C,50)>EMA(C,250) AND EMA(C,30)>EMA(C,60))
 OR (PSY<20 AND (YL<=10 OR ADX>55) AND (RSI1<15 OR D<15));
三合一低点:=PSY<20 AND RSI1<=15 AND K<=15 AND RSI2<20 AND RSI3<30;
 
PSY高位区:=CROSS(80,PSY) AND MA(C,20)>MA(C,60) 
 AND O>MA(C,5) AND O>MA(C,10) AND O>MA(C,20) AND C<REF(C,1) AND C<REF(C,2);
YL高位区:=COUNT((YL>90 AND SF<=10  AND RSI3>70 AND RSI2>75 AND (RSI1>80 OR ADX>60 OR PSY>80)) 
OR (PSY>80 AND ADX>60 AND RSI1>85 AND RSI2>75  AND RSI3>70),5)>=1 AND CROSS(80,RSI1);
 
IF(YL低位区,YL,DRAWNULL),COLORYELLOW,LINETHICK5;
IF(YL低位区,SF,DRAWNULL),COLORYELLOW,LINETHICK5;
IF(YL高位区 OR PSY高位区,YL,DRAWNULL),COLORGREEN,LINETHICK8;
阻击抄底:=WINNER(C)*100<=10 AND (WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100<=10 
AND COUNT(RSI.RSI2<20 OR RSI.RSI3<30,5)>0 AND (KDJ.D<20 OR RSI.RSI1<20 OR PSY.PSY<25);
 
STICKLINE(阻击抄底,0,10,6,0),COLORMAGENTA;
STICKLINE((YL低位区 OR PSY低位区 OR RSI低位区 OR  三合一低点) AND COUNT(RSI.RSI2<20 OR RSI.RSI3<30,5)>0 AND (KDJ.D<20 OR RSI.RSI1<20 OR PSY.PSY<25),0,10,4,0),COLORYELLOW;
DRAWTEXT_FIX(ZL>0,0.9,0.5,1,'当前主力仓位%:'),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR AND ZL>0,0.91,0.5,0,ZL),COLORYELLOW;
DRAWTEXT_FIX(ZL>0,0.95,0.5,0,'%'),COLORYELLOW;
 
抄底区:10,COLORLIMAGENTA,LINETHICK2;
出货区:90,COLORGREEN,LINETHICK2;
 
STICKLINE(YX=0,0,100,8,0),COLORBLUE;




2、一触即发

{公式名称: 一触即发

画线方法: 主图叠加}
VAR1:=HIGH;
VAR2:=LOW;
VAR3:=REF(VAR1,10)=HHV(VAR1,2*10+1);
VAR4:=FILTER(VAR3,10);
VAR5:=BACKSET(VAR4,10+1);
VAR6:=FILTER(VAR5,10);
VAR7:=REF(VAR2,10)=LLV(VAR2,2*10+1);
VAR8:=FILTER(VAR7,10);
VAR9:=BACKSET(VAR8,10+1);
VAR10:=FILTER(VAR9,10);
前期高位:REF(HIGH,BARSLAST(VAR6)),POINTDOT,COLORRED;
STICKLINE(HIGH,前期高位,前期高位,8,0),COLORRED;
前期低位:REF(LOW,BARSLAST(VAR10)),POINTDOT,COLORGREEN;
STICKLINE(LOW,前期低位,前期低位,8,0),COLORGREEN;
DRAWNUMBER(FILTER(VAR5,10),HIGH,HIGH),LINETHICK9;
DRAWNUMBER(FILTER(VAR9,10),LOW,LOW);
选股1:CROSS(CLOSE,前期高位),NODRAW;
选股2:CLOSE>REF(前期低位,1) AND CROSS(REF(前期低位,1),LOW),NODRAW;
STICKLINE(选股1,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(选股1,HIGH,LOW,0,1),COLORYELLOW;
STICKLINE(选股2,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(选股2,HIGH,LOW,0,1),COLORYELLOW;
出场1:CLOSE<REF(前期高位,1) AND CROSS(HIGH,REF(前期高位,1)),NODRAW;
STICKLINE(出场1,OPEN,CLOSE,1,0),COLORBLUE;
出场2:CROSS(前期低位,CLOSE),NODRAW;
STICKLINE(出场2,OPEN,CLOSE,1,0),COLORBLUE;
VAR11:=(OPEN+CLOSE)/2;
VAR12:=REF(VAR11,1);
VAR13:=REF(CLOSE,1);
VAR14:=REF(CLOSE,1)*1.1-CLOSE<0.01 AND HIGH=CLOSE;
STICKLINE(VAR14,OPEN,CLOSE,1,0),COLORRED;
STICKLINE(VAR14,HIGH,LOW,0,0),COLORRED;
VAR15:=IF((VAR13-CLOSE)*100/VAR13>=10-0.01*100/VAR13 AND LOW=CLOSE,1,0);
STICKLINE(VAR15,OPEN,CLOSE,1,0),COLORGREEN;
STICKLINE(VAR15,HIGH,LOW,0,1),COLORGREEN;



3、集合竞价异动

 {公式名称: 集合竞价异动

公式描述: 公众号:小王
公式类型: 条件选股公式-指标条件选股}
 
VAR1:=REF(CLOSE,1);
VAR2:=IF((CLOSE-VAR1)*100/VAR1>=10-0.01*100/VAR1,1,0);
VAR3:=REF(CLOSE,1);
VAR4:=OPEN>VAR3*0.943;
VAR5:=OPEN/REF(CLOSE,1)<1.095;
VAR6:=DYNAINFO(15)/10000000000;
VAR7:=FINANCE(46)*CLOSE/10000000000;
VAR8:=VAR7*0.009;
VAR9:=DYNAINFO(15)/100/OPEN;
VAR10:=VAR9/REF(VOL,1);
VAR11:=REF(VOL,1)/REF(VOL,2);
VAR12:=VOL/REF(VOL,1);
VAR13:=REF(VAR12,1)>1.07;
VAR14:=IF(NAMELIKE(228) OR NAMELIKE(229),0,1);
VAR15:=DYNAINFO(15)/100/OPEN;
VAR16:=REF(VOL,1);
VAR17:=VAR15/VAR16;
VAR18:=OPEN/REF(CLOSE,1)>1.05;
VAR19:=CLOSE/REF(CLOSE,1)>1.095 AND HIGH=OPEN AND LOW=HIGH;
VAR20:=VAR10>0.3 AND VAR4 AND VAR5 AND VAR14;
竞价和竞昨比:VAR20;
 

上一篇:通达信源码:操作地图,金屋藏娇,洗盘结束

下一篇:通达信源码:地量爆发,仿预测赢家测上升阻力,大财女变线