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

通达信源码:牛股分时,智能解盘很准,RM3线一线阴线

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

1、牛股分时,通达信分时主图公式

{分时突破}
{MACD}
ZX:=DYNAINFO(3);
价位轴:ZX,COLORLICYAN;
DIFF0:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA0:= EMA(DIFF0,9);
攻击:=2*(DIFF0-DEA0)*2, COLORSTICK;
STICKLINE(攻击>REF(攻击,1) AND DIFF0>DEA0,攻击+ZX,ZX,1,0),COLORRED;
STICKLINE(攻击<REF(攻击,1) AND 攻击>0,攻击+ZX,ZX,1,0),COLORGREEN;
STICKLINE(攻击<REF(攻击,1) AND 攻击<0,攻击+ZX,ZX,1,0),COLORGREEN;
STICKLINE(攻击>REF(攻击,1) AND 攻击<0,攻击+ZX,ZX,1,0),COLORYELLOW;
分时顶:HHV(H,480),COLORRED,LINETHICK2;
现价:C,COLORWHITE,LINETHICK2;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
{均线5:MA(C,5)LINETHICK1,COLORCYAN;}
均价线:SUM(现价*V,240)/SUM(V,240),COLORYELLOW; 
分时压力:MA(REF(HHV(C,30),1),2),COLORMAGENTA;
分时支撑:MA(REF(LLV(C,30),1),2),COLORBLUE; 
DRAWICON(W4 AND COUNT(W4,5)=1,分时压力,9);
绝密线:EXPMA(C,17),COLORRED,LINETHICK2;
AA1:=(VOL/CLOSE)/3;
 AA2:=SUM((IF(((AA1>40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);
 AA3:=SUM((IF(((AA1>40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);
 AA4:=SUM((IF(((AA1<40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);
 AA5:=SUM((IF(((AA1<40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);
 AA6:=((AA2+AA3)+AA4)+AA5;
 AA7:=IF((BARSTATUS=2),((100*AA2)/AA6),0);
 AA8:=((IF((BARSTATUS=2),((100*AA3)/AA6),0)));
 AA9:=((IF((BARSTATUS=2),((100*AA4)/AA6),0)));
 AA10:=((IF((BARSTATUS=2),((100*AA5)/AA6),0)));
机买:=(AA2),LINETHICK0;
机卖:=(AA3),LINETHICK0;
散买:=(AA4);
散卖:=(AA5);
总买:=AA2+AA4;
总卖:=AA3+AA5;
机构买比:=机买/总买*0.1,LINETHICK0;
机构卖比:=机卖/总卖*0.1,LINETHICK0;
最新:CLOSE,LINETHICK2,COLORWHITE;
 AAB:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
 BB:=BETWEEN(C/AAB,C+H,C-H);
 DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;
 DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌▼',CON2STR(最新,2))),COLOR00FF00;
均价11:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0} AND C/均价11<1.09 AND TT>1 AND TT<240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0};
 DRAWTEXT(主力扫盘,前高, '←扫盘'),COLORYELLOW;
已主力扫盘:=BARSLAST(主力扫盘)<13;
 DRAWTEXT(BARSLAST(主力扫盘)<8,(DYNAINFO(3))*9.5/10 , '↖已扫'),COLORGREEN;
全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(VOL,TT)=0 AND C/均价11<1.09 AND TT>1 AND TT<240 AND BARSLAST(主力扫盘)>=21;
DRAWTEXT(全仓买进 ,前高, '←全仓'),COLORCYAN;
VAR1:=EMA(EMA(C,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
 JJJ:=DYNAINFO(11);
 P:=55;
 S:=8;
 M1:=3;
能量:=(EMA(C,S)-EMA(C,P))*10;
空头:=EMA(能量,M1);
 BTJ11:=(C-JJJ)/JJJ<-0.03;
 BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
 BTJ3:=CROSS(能量,空头) AND 能量<-0.3;
 BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
有庄:=BTJ811;
RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*80;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
RS:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*80;
K1:=RS>=75;
K2:=RS<80;
HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)<1.25 AND REF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85;
HJ_9:=EMA(CLOSE,2);
HJ_10:=EMA(CLOSE,3);
HJ_11:=MAX(HJ_9,HJ_10);
X2:=CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015);
DRAWTEXT(X2,C*0.999,'←准备注意买进'),COLORGREEN;
{牛熊线}
NX:=MA(((SLOPE(C,20)*5)+C),10);
{中枢}
B1:=HOUR=09 AND  MINUTE=45;
B20:=LLV(L,15);
B30:=BARSLAST(B1);
B4:=REF(B20,B30);
B5:CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=20,B4,'分时支撑'),COLORYELLOW;
C1:=HOUR=09 AND  MINUTE=45;
C2:=HHV(H,15);
C3:=BARSLAST(C1);
C4:=REF(C2,C3);
C5:CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=20,C4,'分时突破'),COLORRED;
{DRAWBAND(C5,RGB(204,204,204),B5,RGB(204,204,204));}
{MACD}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD10:=(DIF-DEA)*2;
AA0:=MACD10>00 AND DIF>0 AND DEA>0;
{捉牛信号}
A100:=HOUR=10 AND  MINUTE=0;
A20:=HHV(H,30);
A30:=BARSLAST(A100);
A40:=REF(A20,A30);
A50:=CONST(A40);
A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;
AB:=FILTER(A80,100);
A90:=DYNAINFO(3);
AC:=CLOSE<=A90*1.04 AND CLOSE>A90;
量比:=V/REF(MA(V,5),1);
XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;
DRAWICON(XG,A50,23);
{DRAWTEXT(CURRBARSCOUNT=20,A4,'强势区域'),COLORYELLOW;
D1:=HOUR=10 AND  MINUTE=0;
D2:=LLV(L,30);
D3:=BARSLAST(D1);
D4:=REF(D2,D3);
D5:CONST(D4),COLOR808080,CIRCLEDOT,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=20,D4,'底部区域'),COLORYELLOW;}
{均线突破中枢}
JJ1:=DAY!=REF(DAY,1);
JJ2:=BARSLAST(V>0 AND JJ1)+1;
JJ:=SUM(V*C,JJ2)/SUM(V,JJ2);
XG2:=CROSS(JJ,C5);
DRAWICON(XG2,JJ,23);
{TS:=(B4+C4)/2;
DRAWTEXT(XG2,TS,'回落靠近黄线买');}
VARA3:=HHV(CLOSE,90);
VARA4:=LLV(CLOSE,90);
VARA5:=VARA3 - VARA4;
VARA6:=EMA((CLOSE - VARA4)/VARA5 - 0.5,14);
ZLSP:=VARA6*20;
VARA7:=REF(HHV(CLOSE,66),2);
VARA8:=CROSS(CLOSE,VARA7) AND (HHV(CLOSE,110)/LLV(CLOSE,110) - 1) * 100 < 45 AND ZLSP < 5.666;
VARA11:=15* FILTER(VARA8,41);
 
XG0:HHV(H,480),DOTLINE,COLORCYAN;
 
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10) AND C>REF(XG,1),C*0.995,'突'),COLORYELLOW;
RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;
JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;
MA1:=REF(C,JY);
MA2:=REF(MA1,JY);
MA3:=REF(MA2,JY);
MA4:=REF(MA3,JY);
MA5:=REF(MA4,JY);
MA6:=REF(MA5,JY);
MA7:=REF(MA6,JY);
MA8:=REF(MA7,JY);
MA9:=REF(MA8,JY);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*8/9,COLORLIRED,DOTLINE;
支撑:L1+P1*0.5/9,COLORGREEN,DOTLINE;
均线:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW,DOTLINE;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);
DEAA:=EMA(DIFF,9);
MACD1:=10*(DIFF-DEAA);
MACD2:=EMA(MACD1,2);
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);
底:=1;1.022,NODRAW;高:=1.033;
DRAWTEXT(CROSS(主力,1.02),C*0.999,'  拉'),COLORMAGENTA;
DRAWICON(CROSS(主力,1.04),C,26);
DRAWTEXT(CROSS(主力,1.04),C*0.999,'  冲'),COLORRED;
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));
A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));
A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));
 
DRAWICON(LONGCROSS(支撑,C,2),C-0.01,23);
 
DRAWTEXT(LONGCROSS(C,阻力,2),C+0.01,'  卖'),COLORGREEN;
DRAWICON(LONGCROSS(C,阻力,2),C+0.01,15);
 
量价:=(VOL/CLOSE)/3;
B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
B6:=B2+B3;DD1:=1;比:=B2/B3;
D1:=YEAR AND MONTH AND DAY;
BA1:=STRCAT(CON2STR(YEAR,0),'年');
BA2:=STRCAT(CON2STR(MONTH,0),'月');
BA3:=STRCAT(CON2STR(DAY,0),'日');
BA4:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
AA:=STRCAT(STRCAT(STRCAT(BA1,BA2),STRCAT(BA3,BA4)),'');
DRAWTEXT_FIX(D1,0.905,0,0,AA),COLORGRAY;
WA1:=V*C/100;
WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
WA6:=((A2+A3)+A4)+A5;
WA7:=IF((ISLASTBAR),((100*WA2)/WA6),0);
WA8:=IF((ISLASTBAR),((100*WA3)/WA6),0);
WA9:=IF((ISLASTBAR),((100*WA4)/WA6),0);
WA10:=IF((ISLASTBAR),((100*WA5)/WA6),0);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
DRAWTEXT_FIX(1,0.752,1-0.088,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),' 万')),COLORRED;
DRAWTEXT_FIX(1,0.883,1-0.088,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),' 万')),COLORGREEN;
敢死队:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100;
GSD11:=CROSS(EXPMA(敢死队,120)-0.0004,EXPMA(敢死队,200));
XGG:=(GSD11);
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
地:=EMA(均价,50)/0.99,LINETHICK2,COLORGREEN;
均价1:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
地1:=EMA(均价1,50)/0.97,LINETHICK2,COLORGREEN;
如果:IF(地>REF(地,1),地,DRAWNULL),COLORRED,LINETHICK2;
买单次数:=COUNT(V>2000 AND C>REF(C,1),0) AND XG;
 
时间:=TIME2=100100;
N:=BARSLAST(时间);
C11:CONST(IF(N,MAX(REF(HHV(H,0),N+1),DYNAINFO(4)),HHV(H,0))),DOTLINE,COLORRED;
C21:CONST(IF(N,MIN(REF(LLV(L,0),N+1),DYNAINFO(4)),LLV(L,0))),DOTLINE,COLORGREEN;
C31:(C11+C21)/2,DOTLINE,COLORYELLOW;
VV:=HHV(V,0);
ZF:=(C11/C21-1)*100;
DRAWTEXT(CURRBARSCOUNT=2,C11,VARCAT(VARCAT(VARCAT(VARCAT('上限:',VAR2STR(C1,2)),'元,'),VARCAT('振幅:',VAR2STR(ZF,2))),'%')),COLORRED;
DRAWTEXT(CURRBARSCOUNT=2,C31,VARCAT(VARCAT('中限:',VAR2STR(C31,2)),'元')),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=2,C21,VARCAT(VARCAT('下限:',VAR2STR(C21,2)),'元')),COLORGREEN;
DRAWTEXT(C11/C21<=1.03 AND CROSS(C,C11) AND V>=VV,C11*1.005,'↙准备买入')COLORRED;
DRAWTEXT(C11/C21<=1.03 AND CROSS(C21,C) AND V>=VV,C21*0.998,'★卖出')COLORGREEN;



2、智能解盘很准

在右下角显示解盘内容,很清新。
 

指标显得很简单,二行字显示当前股票趋势,能进不能进,持有还是割肉!
这个指标对于绝大部分散户绝对有用,因为大部分人不会看指标,也不会分析趋势,看了这个指标提示,就知道哪些股不能选,就不会手欠乱买了。
一共有24种趋势判断,应该非常详细了!我测试了很多股票,趋势分析比较准。( 顶尖财经 股票学院: http://58188.com )
 
{参数范围:0-0.9,意思:上到下0.0-0.9,左到右0.0-0.9}
右:=0.7;
上1:=0.6;
上2:=0.8;
YYA4:=MA(CLOSE,20);
YYA5:=(CLOSE > MA(CLOSE,5));
YYA6:=(MA(CLOSE,5)>MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));
YYA8:=(MA(CLOSE,5)>MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));
YYA10:=REF(YYA4,1);
YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0-10))+IF(YYA6,10,(0-10)))+IF(YYA7,10,(0-10)))+IF(YYA8,10,(0-10)))+IF(YYA9,10,(0-10)))+IF(YYA11,10,(0-10)));
DSLX:=(CLOSE/INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);
YYV2:=MA(VOL,30);     {修改30-60}
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1>=YYV2)) AND (DSLX>=DSLX1)),1,0));
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1<YYV2)) AND (DSLX>=DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1>YYV2)) AND (DSLX<DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1<=YYV2)) AND (DSLX<DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1>=YYV2)) AND (DSLX>=DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1<YYV2)) AND (DSLX>=DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1>=YYV2)) AND (DSLX<DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1< YYV2)) AND (DSLX<DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX>=1) AND (REF(YYAVX,1)>0)) AND (YYV1>=YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX>=1) AND (REF(YYAVX,1)>0)) AND (YYV1<YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX>=1) AND (REF(YYAVX,1)>0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况12:=CONST(IF(((((YYAVX>=1) AND (REF(YYAVX,1)>0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX<1) AND (REF(YYAVX,1)<0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX<1) AND (REF(YYAVX,1)<0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX<1) AND (REF(YYAVX,1)<0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX<1) AND (REF(YYAVX,1)<0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >=YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 <YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >=YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 <YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX>=1) AND (REF(YYAVX,1)> 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX>=1) AND (REF(YYAVX,1)> 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX<1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX<1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
DRAWTEXT_FIX(情况1=1 ,右,上1,0,'量能理想,明显走强,中线参与,仓位在2/3右'),COLORFF00FF;
DRAWTEXT_FIX(情况2=1 ,右,上1,0,'走势趋强量能不足,短线进场,仓位在1/2右'),COLORFF00FF;
DRAWTEXT_FIX(情况3=1 ,右,上1,0,'量价良好,并没有明显走强,短线进场,仓位1/2右。'),COLORFF00FF;
DRAWTEXT_FIX(情况4=1 ,右,上1,0,'形态尚可,量能不足,未完全走强,短线参与,仓位1/3右。'),COLORFF00FF;
DRAWTEXT_FIX(情况5=1 ,右,上1,0,'形态变坏,走势尚可,重仓减大半,清仓者观望。'),COLOR00FFFF;
DRAWTEXT_FIX(情况6=1 ,右,上1,0,'随大盘一起下跌,明显缩量走势,考虑大盘风险,减持或清仓。'),COLOR00FFFF;
DRAWTEXT_FIX(情况7=1 ,右,上1,0,'该股放量下跌,走势明显偏弱,离场观望。'),COLORFFFFFF;
DRAWTEXT_FIX(情况8=1 ,右,上1,0,'该股缩量下跌,走势偏弱,离场观望。'),COLORFFFF00;
DRAWTEXT_FIX(情况9=1 ,右,上1,0,'该股形态良好,强势明显,量能充足,可以继续持有。'),COLOR00FFFF;
DRAWTEXT_FIX(情况10=1,右,上1,0,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险'),COLOR00FFFF;
DRAWTEXT_FIX(情况11=1,右,上1,0,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),COLORFFFFFF;
DRAWTEXT_FIX(情况12=1,右,上1,0,'该股走势趋弱,量能不足,减持大部分筹码'),COLORFFFF00;
DRAWTEXT_FIX(情况13=1,右,上1,0,'该股形态不佳,注意成交量的变化,但目前不适合参与。'),COLORFFFF00;
DRAWTEXT_FIX(情况14=1,右,上1,0,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),COLORFFFF00;
DRAWTEXT_FIX(情况15=1,右,上1,0,'有走强迹象,但量能不足,趋势不明,不适合操作'),COLORFFFF00;
DRAWTEXT_FIX(情况16=1,右,上1,0,'该股走势太弱,没有参与价值。'),COLORFFFFFF;
DRAWTEXT_FIX(大盘1,右,上2,0,'总势量能理想,2/3仓位, 前一轮下跌,是否最佳买点,否则谨慎介入。'),COLOR00FF00;
DRAWTEXT_FIX(大盘2,右,上2,0,'总势趋强,量能不足,若前一轮下跌,短线进场1/2,量能放大加仓。'),COLORFF00FF;
DRAWTEXT_FIX(大盘3,右,上2,0,'总势形态走坏,重仓者可以减去大部分仓位。'),COLORAAAAAA;
DRAWTEXT_FIX(大盘4,右,上2,0,'总势缩量调整,注意风险,短线清仓观望。'),COLORFFFFFF;
DRAWTEXT_FIX(大盘5,右,上2,0,'总势走势良好,量能理想,可以继续持有强势股。'),COLOR00FFFF;
DRAWTEXT_FIX(大盘6,右,上2,0,'总势形态良好,但量能稍显不足,随时准备减仓'),COLOR00FF00;
DRAWTEXT_FIX(大盘7,右,上2,0,'总势趋势不明,注意成交量变化,目前不适宜进场。'),COLORFFFFFF;
DRAWTEXT_FIX(大盘8,右,上2,0,'总势趋势向下,量能萎缩,不适合进场。'),COLORFFFFFF;




3、RM3线一线阴线

RM3线一线法法:    
       1  上RM3线,当天线向下,下一天线向上(打46键预测),当天收盘RM3线乖离率小于3.5,可收盘进或下一天开盘进,当天线向上,开始做。
         2  线向上,一律开盘线乖离率小于2进,  收盘线乖离率小于3.5可进, 卖出股后阴线极近RM3可以收盘收回。
         3  线向上,涨五天后,涨第六天开始、只要上一天开在线下当天就只卖不买,涨第六天开始,  线向上,只要开在线上下一天继续做下去。
         4  卖日是阴线 做阴线法,线向下一样做( 顶尖财经 股票学院: http://58188.com )

MA5:=MA(CLOSE,5)COLORGREEN;

MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW,COLORWHITE;
一:C*1.012,NODRAW,COLORRED;
二:C*1.022,NODRAW,COLOR00FFFF;
三:C*1.032,NODRAW,COLORGREEN;
四:C*1.042,NODRAW,COLOR00FFFF;
五:C*1.052,NODRAW,COLORGREEN;
六:C*1.062,NODRAW,COLORWHITE;
七:C*1.072,NODRAW,COLOR00FFFF;
八:C*1.082,NODRAW,COLORGREEN;
九:C*1.092,NODRAW;
十:C*1.102,NODRAW,COLORFF00FF;
十一:C*1.112,NODRAW,COLORRED;
十二:C*1.122,COLORYELLOW,NODRAW;
十五:C*1.152,NODRAW;
二十:C*1.202,NODRAW;
三十:C*1.302,NODRAW,COLORRED;
F:=100*(C-REF(C,1))/REF(C,1);
STICKLINE(F>4.9,C,O,2.2,0),COLORFFFFFF;
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P1:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P2:=今小前;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,1,0),COLORMAGENTA;
 
A1:=CLOSE;
A2:=OPEN;
 
STICKLINE(A1<A2 AND F<=-9.9,A2,A1,3,0),COLOR00FF00;
 
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1  AND REF(P2,1)=0,OPEN,CLOSE,1,0),COLORAAAAAA;
STICKLINE(A1<A2 AND F<-2.9 AND F>-5,A1+(A2-A1)/3,A1+(A2-A1)/3,1,0),COLORRED;
STICKLINE(A1<A2 AND F<-2.9 AND F>-5,A1+2*(A2-A1)/3,A1+2*(A2-A1)/3,1,0),COLORRED;
STICKLINE(A1<A2 AND F<=-5 AND F>-7,A1+(A2-A1)/2,A1+(A2-A1)/2,1,0),COLORRED;
STICKLINE(A1<A2 AND F<=-7 AND F>-10,A1+2*(A2-A1)/3,A1+(A2-A1)/3,3,1),COLORRED;
STICKLINE(A1>A2 AND F>2.9 AND F<5,A2+(A1-A2)/3,A2+(A1-A2)/3,1,0),COLORYELLOW;
STICKLINE(A1>A2 AND F>2.9 AND F<5,A2+2*(A1-A2)/3,A2+2*(A1-A2)/3,1,0),COLORYELLOW;
STICKLINE(A1>A2 AND F>=5.5 AND F<7,A2+(A1-A2)/2,A2+(A1-A2)/2,1,0),COLORYELLOW;
STICKLINE(A1>A2 AND F>=7 AND F<9.8,A2+2*(A1-A2)/3,A2+(A1-A2)/3,1,1),COLORYELLOW; 
{STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1  AND REF(P2,1)=0,OPEN,CLOSE,1,0),COLORAAAAAA;}
{出标志}
  F1:=100*(C-REF(C,1))/REF(C,1);
  HT:=(H>REF(C,1)*1.032) AND C>=O ;
BZ1A:=HT AND H>REF(H,2);
BZ1:=BZ1A AND COUNT(BZ1A,4)=1;
一字:=C=O AND C=L  AND C=H AND F1>9.4;
BZ2:=((BZ1 AND  REF(BZ1,1)=0) OR REF(一字,1)=1)
AND 一字=0 ;
DRAWTEXT(BZ2,L*0.99, '标'),COLORYELLOW;
{出黄头}
  STICKLINE(H>(REF(C,1)*1.032),(O+C)/2,H,0.1,0),COLOR00FFFF;
M3:=MA(CLOSE,3)COLORGREEN;
{RM3}
RM3: (REF(MA(C,3),1))  ,COLOR00FFFF;
M5:=MA(CLOSE,5),COLOR00FFFF;
IF(M5<REF(M5,1),RM3,DRAWNULL),COLORFFF000;
K9:=((EMA(KDJ.K,3)-50)*2);
IF(K9>REF(K9,1),RM3,DRAWNULL),COLORF000FF;
IF(K9>REF(K9,1),RM3,DRAWNULL),POINTDOT,COLOR0000FF,LINETHICK5;
线买最高涨:100*(H-REF(RM3,1))/REF(RM3,1),NODRAW,COLOR00FFFF;
{线买赚四点:RM3*1.042,NODRAW,COLORWHITE;}
RM3角度:ATAN((RM3/REF(RM3,1)-1)*100)*180/3.1416,NODRAW,COLORWHITE;
BIAS5:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100),NODRAW,COLOR00FFFF;
{昨CC半,上一天实体一半偏上一点位置}
DA:=MAX(C,O);
DB:=MIN(C,O);
CC半A:=(DA-(DA-DB)/2.5);
CC半:=IF(C>O,CC半A,C),NODRAW;
昨CC半:=REF(CC半,1),COLORYELLOW,NODRAW;
昨CC半买涨:100*(H-REF(昨CC半,1))/REF(昨CC半,1),COLOR88AAFF,NODRAW;
STICKLINE(ISLASTBAR,昨CC半,昨CC半,10,-1),COLORFF66CC;
明线乖3点5:M3*1.02 ,NODRAW,COLORWHITE;
昨线乖高赚:100*(H-REF(明线乖3点5,2))/REF(明线乖3点5,2),COLOR00FFFF,NODRAW;
收线乖:((CLOSE-RM3)/RM3*100),NODRAW,COLOR00FFFF;
最底线乖:((L-RM3)/RM3*100),NODRAW,COLOR00FFFF;
开线乖:((O-RM3)/RM3)*100,NODRAW,COLOR00FFFF;
 
FH:=100*(H-REF(C,1))/REF(C,1),COLOR88AAFF,NODRAW;
F4:=(C/REF(C,1)-1)*100;
今小昨1:=IF(C<REF(O,1) AND F4<0,1,0);
P11:=今小昨1;
今小前1:=IF(C<REF(O,2) AND F4<0,1,0);
P21:=今小前1;
ZY1:=P11=0 AND REF(P11,1)=1 AND P21=0 AND REF(P21,1)=1;
ZY11:=REF(L,BARSLAST(ZY1));
ZY2:=CROSS(ZY11,C) AND ZY1=0;
 
STICKLINE(ISLASTBAR ,REF(C,1)*1.042,REF(C,1)*1.042,0,-1),COLOR00FFFF;{把前面第一个C改成 ISLASTBAR 就只有最后一天有黄虚线}
DRAWNUMBER(ISLASTBAR,REF(C,1)*1.03-0.03,REF(C,1)*1.042),COLOR00FFFF;
 
A3:=C>REF(C,4);
NT:=BARSLASTCOUNT(A3);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR   BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF;
DRAWTEXT(NT=9,H*1.02,'9'),COLORGREEN;
B1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
WWW58188COM:=NT0=9;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9)  OR  BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF;
DRAWTEXT(NT0=9,L*0.98,'9'),COLORGREEN;
 
 
 
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
股本市值:=STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
市销率:=STRCAT(' 市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
市净率:=STRCAT(' 市净率:',CON2STR(C/FINANCE(34),2));
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
净利润率:=STRCAT(' 净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.07,0,股本市值),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,当前业绩),COLORMAGENTA;
DRAWTEXT_FIX(1,0.005,0.17,0,'莸利比例:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.06,0.17,0,CONST(WINNER(C )*100)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.15,0.17,0,CONST(DYNAINFO(37)*100)),COLORYELLOW;
DRAWTEXT_FIX (1,0.12,0.17,0,'换手:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.25,0.17,0,CONST(DYNAINFO(17))),COLORYELLOW;
DRAWTEXT_FIX (1,0.22,0.17,0,'量比:'),COLORYELLOW;
DRAWTEXT_FIX (1,0.30,0.17,0,'涨幅:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.33,0.17,0,CONST(DYNAINFO(14)*100)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.33,0.17,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL)),COLORYELLOW;
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X1+X2+X3+X4+X5;
预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));
财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));
优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};
现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};
财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.23,0,财务系数),COLORGREEN;
 
 
 
R1:=(C+L+H)/3;
R2:=EMA(R1,6);
R3:=EMA(R2,5);
生命线:EMA(R3,30),COLOR00AAFF,LINETHICK2;
N:=5;
M1:=6;
M2:=6;
M4:=8;
R:=IF(DATE<1910612,1,0);
EE:=(H+MAX(C,O))/2;
EE1:=MA(EE,3);
EE2:=(L+MIN(C,O))/2;
EE3:=MA(EE2,3);
 
FF:=(H+L+C+O)/4,COLORWHITE;
FF1:=MA(FF,3),COLORGREEN;
FF3:=REF((C+O)/2,1)>REF((C+O)/2,2) AND REF(MIN(C,O),1)>REF(MAX(C,O),2);
实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100,LINETHICK;
FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;
FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;
FF6:=FF1-(REF(FF1,1)-FF1);
FF7:=EE1+(EE1-REF(EE1,1));
期望获利率:=IF(FF3,FF5,FF4),LINETHICK;
YY1:=REF(EVERY(C>=O,4),1) AND REF(EVERY((C+O)/2>FF1,4),1) AND (C+O)/2<FF1;
YY2:=NOT(YY1) AND (FF1-O)/O*1000>5 AND O<REF(MIN(C,O),1);
A:=SMA(L,4,3);
B:=SMA(H,4,3);
BB:=SMA(MIN(C,O),4,3);
BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);
BB2:=REF((C+O)/2,1)>REF((C+O)/2,2);
BB3:=L<=BB1+BB1*0.01 AND O>REF(O,2) AND O>=REF(L,3) AND COUNT(C>O,7)>3;
BB6:=(BB1-L)/L*100;
BB7:=(REF(L,1)-BB1)/BB1*100;
A4:=(A-L)/L>N/1000 ;
A8:=A4;
A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100;
A10:=IF(BB2,BB6,A9);
BB4:=BB6+A10>2;
BB5:=IF(BB2,BB3,BB4) AND 期望获利率>2;
D5:=R AND A8 AND BB5;
STICKLINE(D5,A*0.995,A*0.992,4,0)COLORYELLOW;
DRAWICON(R AND (REF((D5),1)) AND (L<REF((L/0.995),1)),L*0.97,11);

上一篇:通达信公式下载:经传旗舰版全套指标(完整整套),金山趋势鱼

下一篇:通达信源码:压力支撑,跳空高开未回调,分时买卖点