股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信街盈分时主图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-6-24 12:06:33

{指标介绍:
这个主图分时线是有颜色的,根据资金量进攻强度大小来上色,红色最强,持续红色时间越久越可能冲击涨停。
根据强度由强到弱依次是大红色—紫色—黄色—蓝色—白色—灰色。
白色就是正常色,灰色相对来说就是弱势,高位票的灰色可能参考意义不大,不一定是真弱,而且拉升之后也可能就变色了。
分时均线也上色了,跟上面的分时线差不多,也是红色,紫色,黄色,白色,灰色,强弱递减,上面也挂了一些图标,是为了方便看,所挂图标如攻击,红B等都是对应那个时间出的信号。}

AT:=REF(C,BARSLAST(DAY!=REF(DAY,1))),NODRAW;
AT1:=DYNAINFO(4),NODRAW;
AT2:=AT-AT1,NODRAW;
D:=DYNAINFO(20),NODRAW;
SPEED:=AT2/AT1*100,NODRAW;
速度931:=STRCAT('开盘抢', CON2STR(SPEED, 1)),LINETHICK2;
DRAWTEXT_FIX(1,0.2,0.6,0,STRCAT(STRCAT('速幅 ',CON2STR(SPEED,2)),'')),COLORRED;
{分时买卖点}
现价:C,COLORWHITE,LINETHICK2;
AA:=C/DYNAINFO(3);
单笔换手:=V/CAPITAL*100;
XX:=BARSSINCE(V>0)+1;
均价线:=SUM(C*V,XX)/SUM(V,XX),NODRAW;
限制:=AA>1.01 AND AA<1.04;
X1:=单笔换手>0.08 AND crOSS(C,均价线) AND 限制;
DRAWTEXT(X1,C*0.999,'强拉'),COLORC080FF;
MMA30:=EMA(CLOSE,30);
强弱界定:IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR AND SPEED>=3.5, 0.55, 0.55, 0, 速度931), COLORYELLOW;
{资金流向}
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);
机卖:=(AA3);
散买:=(AA4);
散卖:=(AA5);
总买:=AA2+AA4;
总卖:=AA3+AA5;
机构买比:=机买/总买*0.1;
机构卖比:=机卖/总卖*0.1;
均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0} AND C/均价<1.09 AND TT>1 AND TT<240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));
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) AND (V/CAPITAL<=0.2) AND C/REF(C,1)<1.07;
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;
C1:=HOUR=09 AND MINUTE=45;
C2:=HHV(H,15);
C3:=BARSLAST(C1);
C4:=REF(C2,C3);
C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
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;
HJ_4:=CLOSE;
HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
HJ_6:=CLOSE/DYNAINFO(3);
HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 AND VOL>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240);
全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(VOL,TT)=0 AND C/均价<1.09 AND TT>1 AND TT<240 AND BARSLAST(主力扫盘)>=21;
VAR1:=EMA(EMA(C,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
JJ:=DYNAINFO(11);
P:=55;
S:=8;
M1:=3;
P2:=21;
能量:=(EMA(C,S)-EMA(C,P))*10;
空头:=EMA(能量,M1);
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ3:=CROSS(能量,空头) AND 能量<-0.3;
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
有庄:=BTJ811;
DRAWICON(BTJ811,CLOSE,26);
VAR2:=100*WINNER(CLOSE*0.95);
高度控盘:=VAR2>50 AND COST(85)<CLOSE AND 控盘>0;
IF(高度控盘,强弱界定,DRAWNULL),COLORYELLOW,LINETHICK2;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P2))*50;
神:=EMA(财,M1);
BTJ4:=CROSS(财,神) AND 财<-0.3;
BTJ5:=控盘>REF(控盘,1) AND 控盘<-0.2;
庄:= BTJ11 AND BTJ5 AND BTJ4;
财神:=FILTER(庄,30);
DRAWICON(财神,CLOSE,27);
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
财1:=(EMA(CLOSE,8)-EMA(CLOSE,55))*10;
神1:=EMA(财1,3);
STJ31:=CROSS(神1,财1);
STJ32:=CROSS(神1,财1) AND 财1>1.618;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
DRAWICON(STJ81,强弱界定,19);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,强弱界定,'必卖'),COLORRED;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
BTJ32:=CROSS(财1,神1) AND 财1<-0.1;
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
BTJ1:=(C-JJ)/JJ<-0.005;
BTJ3A:=CROSS(财1,神1) AND 财1<-0.3;
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3A,13);
BTJ811A:=FILTER(BTJ11 AND BTJ2 AND BTJ3A,13);
DRAWTEXT(BTJ81 AND TIME>10,C,'底');
DRAWICON(BTJ811A AND TIME>10,C,23);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORLIRED,LINETHICK2;
支撑:L1+P1*0.5/8,COLORYELLOW,LINETHICK2;
DRAWICON(LONGCROSS(支撑,C,2),C,25);
DRAWICON(LONGCROSS(C,阻力,2),C,24);
DRAWTEXT(LONGCROSS(支撑,CLOSE,2),CLOSE,'★买'),COLORMAGENTA;
DRAWTEXT(LONGCROSS(CLOSE,阻力,2),CLOSE,'-★卖'),COLORRED;
KP:=DYNAINFO(4);
ZX:=DYNAINFO(7);
{分时量}
{分时K}
ZS:=DYNAINFO(3);
ZG:=DYNAINFO(5);
ZD:=DYNAINFO(6);
OP:=500-(KP/ZS-1)*1200;
CL:=500-(ZX/ZS-1)*1200;
HI:=500-(ZG/ZS-1)*1200;
LO:=500-(ZD/ZS-1)*1200;
N1:=IF(FROMOPEN>=120,250,750);
Z1:=IF(ZX>=KP,255,0);
Z2:=IF(ZX>=KP,0,255);
Z3:=IF(ZX>=KP,0,255);
{文字显示及画线}
DRAWTEXT_FIX(1,0.4,0.642,1,STRCAT(STRCAT('阻',CON2STR(阻力,2)),' 元')),COLORLIRED;
DRAWTEXT_FIX(1,0.65,0.642,1,STRCAT(STRCAT('支',CON2STR(支撑,2)),' 元')),COLORYELLOW;
{抓板起爆}
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);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
TT1:=BARSCOUNT(C);
均价黄:=SUM(C*V,TT1)/SUM(V,TT1);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
流通盘:=CAPITAL*100/100000000,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
DRAWICON(每日一点,C,13);
ACX:=FILTER(CROSS(KK1,KK2),60);
ACX1:=BARSSINCE(ACX)+1;
首次抓板价:=REF(C,ACX1-1),NODRAW;
{竞价}
LTPY:=CAPITAL/1000000;
PJ:=IF(LTPY>10,3,IF(RANGE(LTPY,5,8),4,IF(RANGE(LTPY,3,5),5,IF(RANGE(LTPY,2,3),8,10))));
竞开标量:=LTPY/10*PJ;
竞价额万:=DYNAINFO(15)/10000;
DRAWTEXT_FIX(1,0.76,0.85,0,STRCAT(STRCAT('【竞价额万】',CON2STR(竞价额万,0)),'万')),COLORRED;
竞价量:=DYNAINFO(15)/O;
竞价Z:=竞价量/FINANCE(46)*100,NODRAW;
DRAWTEXT_FIX(1,0.6,0.85,0,STRCAT(STRCAT('【竞价Z】',CON2STR(竞价Z,2)),'%')),COLORRED;
开盘幅:=(DYNAINFO(4)/DYNAINFO(3)-1)*100;
DRAWTEXT_FIX(1,0.6,0.9,0,STRCAT(STRCAT('【开盘幅】',CON2STR(开盘幅,2)),'%')),COLORRED;
{涨停能量,C变色}
量价:=(VOL/CLOSE)/3,NODRAW;
统计主动大买量:=SUM(IF(量价>100 AND CLOSE>REF(CLOSE,1),量价,0),0);
统计主动大卖量:=SUM(IF(量价>100 AND CLOSE<REF(CLOSE,1),量价,0),0);
小买:=SUM(IF(量价<100 AND CLOSE>REF(CLOSE,1),量价,0),0);
小卖:=SUM(IF(量价<100 AND CLOSE<REF(CLOSE,1),量价,0),0);
合力度:=统计主动大买量+统计主动大卖量+小买+小卖;
主动大买量比:=(统计主动大买量/合力度)*100;
主动大卖量比:=(统计主动大卖量/合力度)*100;
涨停能量:=主动大买量比-主动大卖量比,LINETHICK2,COLORFFFDE9;
IF(涨停能量<0,C,DRAWNULL),COLORGRAY,LINETHICK2;
IF(涨停能量>0 AND 涨停能量<20,C,DRAWNULL),COLORFFFF00,LINETHICK2;
IF(涨停能量>20 AND 涨停能量<30,C,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(涨停能量>30 AND 涨停能量<95,C,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(涨停能量>95,C,DRAWNULL),COLORRED,LINETHICK3;
{砸盘}
拉升量:=IF(C>REF(C,1),VOL,0);
打压量:=IF(C<REF(C,1),VOL,0);
今打压最高值:=CONST(REF(HHV(打压量,FROMOPEN),0)),NODRAW;
DRAWTEXT(FILTER(CROSS(拉升量,今打压最高值),30),ZSTJJ,'★攻击'),COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0));
DRAWICON(C<REF(C,1) AND V>=今拉升最高值,C,2);
DRAWTEXT(C<REF(C,1) AND V>=今拉升最高值,C,'-砸'),COLORYELLOW;
{大家抢筹B}
均价2:=SUM(V*C,0)/SUM(V,0);
地:=EMA(均价2,50)/0.97;
买单次数:=COUNT(V>4000 AND C>REF(C,1),0);
黄次数:=COUNT(V>DYNAINFO(16)*10 AND C>REF(C,1),0);
DRAWICON(买单次数>REF(买单次数,1) AND 黄次数>REF(黄次数,1) AND CROSS(C,地),ZSTJJ,7);
HB:=买单次数>REF(买单次数,1) AND 黄次数>REF(黄次数,1) AND CROSS(C,地);
GONG:=FILTER(CROSS(拉升量,今打压最高值),30);
DRAWICON(HB AND GONG,C,42);
{主动买}
{主力流入}
主力:=expma( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;
散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK5,COLORGREEN;
大单买量:=SUM(IF(C>REF(C,1) AND V>4000,V/1000,0),0),NODRAW;
大单卖量:=SUM(IF(C<REF(C,1) AND V>4000,V/1000,0),0),NODRAW;
买单总量:=SUM(IF(C>REF(C,1),V/1000,0),0),NODRAW;
卖单总量:=SUM(IF(C<REF(C,1),V/1000,0),0),NODRAW;
小单买量:=买单总量-大单买量,NODRAW;
小单卖量:=卖单总量-大单卖量,NODRAW;
大宗进:=大单买量,NODRAW;
大宗出:=大单卖量,NODRAW;
非大宗进:=小单买量,NODRAW;
非大宗出:=小单卖量,NODRAW;
主力净流入:=大单买量-大单卖量,LINETHICK5,COLORMAGENTA;
IF(主力净流入<0,均价线,DRAWNULL),COLORGREEN,LINETHICK2;
IF(主力净流入=0,均价线,DRAWNULL),COLORWHITE,LINETHICK2;
IF(主力净流入>0,均价线,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT_FIX(1,0.85,0.55,0,STRCAT(STRCAT('主净 ',CON2STR(主力净流入,2)),'')),COLORMAGENTA;
DRAWICON(FILTER(CROSS(C,支撑),240),C,34);
{分时九转}
VAR59:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5);
VAR60:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3) AND REFX(CLOSE,8)<REFX(CLOSE,4);
VAR61:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6);
VAR62:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3);
VAR63:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7);
VAR64:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2);
VAR65:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8);
VAR66:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1);
VAR67:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9);
VAR68:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE;
VAR69:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10);
VAR70:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1);
VAR71:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11);
VAR72:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2);
VAR73:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12);
VAR74:=REFX(CLOSE,1)<REF(CLOSE,3);
VAR75:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12) AND REF(CLOSE,9)>REF(CLOSE,13);
VAR76:=IF(PERIOD<4,LOW*(1-(PERIOD+1)/10*0.01),LOW*0.98);
VAR77:=IF(PERIOD<4,HIGH*(1+(PERIOD+1)/10*0.01),HIGH*1.05);
VAR78:=CURRBARSCOUNT-1;
DRAWNUMBER(VAR59 AND (VAR60 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72) OR (VAR78=3 AND VAR70) OR (VAR78=4 AND VAR68) OR (VAR78=5 AND VAR66) OR (VAR78=6 AND VAR64) OR (VAR78=7 AND VAR62)),VAR76,1),COLORGREEN;
{DRAWNUMBER(VAR61 AND (VAR62 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72) OR (VAR78=3 AND VAR70) OR (VAR78=4 AND VAR68) OR (VAR78=5 AND VAR66) OR (VAR78=6 AND VAR64)),VAR76,2),COLORGREEN;
DRAWNUMBER(VAR63 AND (VAR64 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72) OR (VAR78=3 AND VAR70) OR (VAR78=4 AND VAR68) OR (VAR78=5 AND VAR66)),VAR76,3),COLORGREEN;
DRAWNUMBER(VAR65 AND (VAR66 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72) OR (VAR78=3 AND VAR70) OR (VAR78=4 AND VAR68)),VAR76,4),COLORGREEN;
DRAWNUMBER(VAR67 AND (VAR68 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72) OR (VAR78=3 AND VAR70)),VAR76,5),COLORGREEN;}
DRAWNUMBER(VAR69 AND (VAR70 OR VAR78=0 OR (VAR78=1 AND VAR74) OR (VAR78=2 AND VAR72)),VAR76,6),COLORGREEN;
{DRAWNUMBER(VAR71 AND (VAR72 OR VAR78=0 OR (VAR78=1 AND VAR74)),VAR76,7),COLORGREEN;
DRAWNUMBER(VAR73 AND (VAR74 OR VAR78<1),VAR76,8),COLORGREEN;}
DRAWNUMBER(VAR75,VAR76,9),COLORMAGENTA;
VAR79:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5);
VAR80:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3) AND REFX(CLOSE,8)>REFX(CLOSE,4);
VAR81:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6);
VAR82:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3);
VAR83:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7);
VAR84:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2);
VAR85:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8);
VAR86:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1);
VAR87:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9);
VAR88:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE;
VAR89:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10);
VAR90:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1);
VAR91:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11);
VAR92:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2);
VAR93:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12);
VAR94:=REFX(CLOSE,1)>REF(CLOSE,3);
VAR95:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12) AND REF(CLOSE,9)<REF(CLOSE,13);
DRAWNUMBER(VAR79 AND (VAR80 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92) OR (VAR78=3 AND VAR90) OR (VAR78=4 AND VAR88) OR (VAR78=5 AND VAR86) OR (VAR78=6 AND VAR84) OR (VAR78=7 AND VAR82)),VAR77,1),COLORMAGENTA;
{DRAWNUMBER(VAR81 AND (VAR82 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92) OR (VAR78=3 AND VAR90) OR (VAR78=4 AND VAR88) OR (VAR78=5 AND VAR86) OR (VAR78=6 AND VAR84)),VAR77,2),COLORMAGENTA;
DRAWNUMBER(VAR83 AND (VAR84 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92) OR (VAR78=3 AND VAR90) OR (VAR78=4 AND VAR88) OR (VAR78=5 AND VAR86)),VAR77,3),COLORMAGENTA;
DRAWNUMBER(VAR85 AND (VAR86 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92) OR (VAR78=3 AND VAR90) OR (VAR78=4 AND VAR88)),VAR77,4),COLORMAGENTA;
DRAWNUMBER(VAR87 AND (VAR88 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92) OR (VAR78=3 AND VAR90)),VAR77,5),COLORMAGENTA;}
DRAWNUMBER(VAR89 AND (VAR90 OR VAR78=0 OR (VAR78=1 AND VAR94) OR (VAR78=2 AND VAR92)),VAR77,6),COLORMAGENTA;
{DRAWNUMBER(VAR91 AND (VAR92 OR VAR78=0 OR (VAR78=1 AND VAR94)),VAR77,7),COLORMAGENTA;
DRAWNUMBER(VAR93 AND (VAR94 OR VAR78<1),VAR77,8),COLORMAGENTA;}
DRAWNUMBER(VAR95,VAR77,9),COLORGREEN;
{大小牛}
DXN6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
DXN7:=EMA(DXN6,35);
DXN8:=(HHV(DXN7,5)+HHV(DXN7,15)+HHV(DXN7,30))/3;
DXN9:=(LLV(DXN7,5)+LLV(DXN7,15)+LLV(DXN7,30))/3;
大牛线:=(HHV(DXN8,5)+HHV(DXN8,15)+HHV(DXN8,30))/3;
DXN25:=(MA(CLOSE,60)-LOW)/MA(CLOSE,20);
DXN26:=(MA(CLOSE,60)-LOW)/MA(CLOSE,60);
DXN27:=(MA(CLOSE,30)-LOW)/MA(CLOSE,30);
红主:=(-50)*(DXN25+DXN26+DXN27)/3;
穿大牛:=CROSS(红主,大牛线);
DRAWTEXT(穿大牛,C,'大牛');
DRAWICON(穿大牛,ZSTJJ,33);
DXN28:=MA(CLOSE,5);
DXN29:=MA(CLOSE,10);
DXN30:=MA(CLOSE,20);
DXN31:=MA(CLOSE,30);
DXN32:=MA(CLOSE,54);
DXN33:=MA(CLOSE,60);
DXN34:=MA(CLOSE,120);
小牛线:=50/((DXN28+DXN29+DXN30+DXN31+DXN33+DXN34)/6/CLOSE)/10;
穿小牛:=CROSS(红主,小牛线);
DRAWTEXT(穿小牛,C,'小牛');
DRAWICON(穿小牛,ZSTJJ,31);





回复

举报

QQ|

GMT+8, 2024-11-16 16:25

快速回复 返回顶部 返回列表