以下是通达信3个趋势主图公式

通达信3个趋势主图公式

显示仪表盘1 :0 1 1  自行设置参数

 

{主图公式1}

 

范围高A:=REFDATE(HHV(H,120),DATE)*2.05;

范围低A:=REFDATE(LLV(L,120),DATE)*0.95;

MA5:MA(CLOSE,5),COLORWHITE;

MA24:=MA(C,24),COLORGREEN,LINETHICK2;

MA72:=MA(C,72),COLORRED,LINETHICK2;

MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;

{=======================仪表盘=========================}

ma1:=ma(c,5);

主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);

初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;

底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;

探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;

观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);

有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);

放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);

DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,’观望’,0)COLOR00BF00;

DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,’主升浪’,0)COLORFF00FF;

DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,’主浪回调’,0)COLORFF8080;

DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,’主浪深调’,0)COLOR009500;

DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,’初升浪’,0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,’底部反弹’,0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,’探底阶段’,0);

DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,’观望’,0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,’有牛’,0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,’放弃’,0)COLOR00BF00;

拉升:IF(CURRBARSCOUNT=1 AND REF(C,1)<REF(C,2) AND C>REF(C,1) AND MA1>REF(MA1,1),CONST(REF(C,1)*1.01),DRAWNULL),COLORFF00FF;

A001:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),拉升,拉升*0.9992,15,0),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=1 AND 拉升=CONST(REF(C,1)*1.01),L*0.99996,’      拉升线’),COLORMAGENTA;

DRAWKLINE(H,拉升,L,C);

止损:REF(HHV(H,13),1)*0.95,COLORGREEN,DOTLINE;

A002:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),止损,止损*0.9996,15,0),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,止损*0.996,’止损线’),COLORGREEN;

AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/

(HHV(HIGH,30)-LLV(LOW,30))*100,8);

BA:=EMA(AB,5);

A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);

B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);

D{中}:=((A1)+(B1))/2;

五:MA(C,5)LINETHICK2,COLOR00FFFF;

二O:EMA(C,20),COLORMAGENTA;

空仓:IF(AB-BA<0,五,DRAWNULL),LINETHICK2,COLOR00FFFF;

持仓:IF(AB-BA>0,五,DRAWNULL),,LINETHICK2,COLORRED;

箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),LINETHICK3,COLOR00FF00;

箱腰:IF(AB>0 AND AB-BA<=0,D,D),LINETHICK3,COLOR00FF00;

箱低:IF(AB>0 AND AB-BA<=0,B1,B1),LINETHICK3,COLOR00FF00;

_____五:IF(CURRBARSCOUNT=6,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORWHITE,LINETHICK3;{五日转点}

十:IF(CURRBARSCOUNT=11,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORYELLOW,LINETHICK3;{十日转点}

二十:IF(CURRBARSCOUNT=21,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORRED,LINETHICK3;{二十日转点};

三十:IF(CURRBARSCOUNT=31,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORCYAN,LINETHICK3;{三十日转点};

六十:IF(CURRBARSCOUNT=61,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORYELLOW,LINETHICK3;{六十日转点};

九十:IF(CURRBARSCOUNT=91,L*0.992-0.02,DRAWNULL),

CROSSDOT,COLORYELLOW,LINETHICK3;{九十日转点};

高1:IF(AB>0 AND AB-BA>0,A1,DRAWNULL),LINETHICK3,COLORRED;

中1:IF(AB>0 AND AB-BA>0,D,DRAWNULL),LINETHICK3,COLORRED;

低1:IF(AB>0 AND AB-BA>0,B1,DRAWNULL),LINETHICK3,COLORRED;

C2:=REF(C,1);

涨停0:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);

STICKLINE(涨停0,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(涨停0,H,L,0,0),COLORRED;

跌停0:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);

STICKLINE(跌停0,OPEN,CLOSE,2,0),COLORGREEN;

STICKLINE(跌停0,H,L,0,1),COLORGREEN;

{选股}

HHH:=CROSS(C,MA(L+(H-L)/2,25)*0.95);LLL:=CROSS(MA(L+(H-L)/2,25)*0.95,C);

CCC:=CROSS(H,MA(L+(H-L)/2,25)*1.15);DDD:=CROSS(H,MA(L+(H-L)/2,25)*1.25);

DRAWTEXT(HHH AND MA(L+(H-L)/2,75)>=REF(MA(L+(H-L)/2,75),1),L*0.98,’买吧’),COLOR6699FF;

DRAWTEXT(CCC AND MA(L+(H-L)/2,75)>=REF(MA(L+(H-L)/2,75),1),H*1.02,’卖了’),COLOR6699FF;

DRAWTEXT(DDD AND MA(L+(H-L)/2,75)>=REF(MA(L+(H-L)/2,75),1),H*1.02,’小心顶’),COLOR6699FF;

VAR1:=(100 – ((90 * (HHV(HIGH,14) – CLOSE)) / (HHV(HIGH,14) – LLV(LOW,14))));

VAR2:=(100 – ((90 * (HHV(HIGH,14) – CLOSE)) / (HHV(HIGH,14) – LLV(LOW,14))));

VAR3:=(100 – MA(((100 * (HHV(HIGH,6) – CLOSE)) / (HHV(HIGH,6) – LLV(LOW,6))),34));

DIR1:=ABS(CLOSE-REF(CLOSE,5));

VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);

ER1:=DIR1/VIR1;

CS1:=ER1*(0.8-2/8)+2/8;

CQ1:=CS1*CS1;

DIR2:=ABS(CLOSE-REF(CLOSE,10));

VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);

ER2:=DIR2/VIR2;

CS2:=ER2*(0.8-2/24)+2/24;

CQ2:=CS2*CS2;

STICKLINE(VAR2 < MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;

STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,0,1),COLORRED;

STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;

STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;

STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;

STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED;

DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW – (LOW*0.02)),7);

DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)),8);

PT:=REF(H,1)-REF(L,1);

CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;

AH:=CDP+PT;

AL:=CDP-PT;

NH:=CDP*2-REF(L,1);

NL:=CDP*2-REF(H,1);

强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;

阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;

M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);

撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;

底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;

涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW;

跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW;

{量能饱和度}

SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));

【量能饱和】:=IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;

{活跃度}

LC:=REF(CLOSE,1);

RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;

WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;

活跃度:=(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;

活跃度比:=IF(活跃度>=0,(活跃度+100)/2,100-ABS((活跃度-100)/2));

M1:=30;

P2:=80;

VAR11:=(C+H+O+L)/4;

买入:=XMA(VAR11,M1)*(1-P2/1000),COLORFFFFFF,LINETHICK2;

反弹:=EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORRED,LINETHICK1;

XG:=CROSS(买入,反弹);

DRAWTEXT(XG,(LOW -0.2),’暴’ ),COLORRED;

DRAWTEXT_FIX(C>0,0.08,0.0,0,STRCAT(‘所属行业:’,HYBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(C>0,0.18,0.0,0,STRCAT(‘所属地区:’,DYBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(C>0,0.28,0.0,0,STRCAT(‘主题投资:’,GNBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(1,0.08,0.05,0,’业绩预报:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.13,0.05,0,EXTERNSTR(0,11))COLORYELLOW;

DRAWTEXT_FIX(1,0.08,0.1,0,’高送转:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.13,0.1,0,EXTERNSTR(0,13))COLORYELLOW;

DRAWTEXT_FIX(C>0,0.08.00,0.15,0,STRCAT(‘机构关注:’,EXTERNSTR(0,0))),COLOR00FFFF;

{DRAWTEXT_FIX(1,0.00,0.04,0,’业绩预报:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.06,0.04,0,EXTERNSTR(0,11))COLORYELLOW;

{DRAWTEXT_FIX(C>0,0.00,0.10,0,STRCAT(‘业绩预报:’,EXTERNSTR(0,11))),COLORYELLOW;}

{DRAWTEXT_FIX(C>0,0.0,0.15,0,STRCAT(‘解禁日期:’,EXTERNSTR(0,8))),COLORYELLOW;}

{DRAWTEXT_FIX(C>0,0.00,0.20,0,STRCAT(‘千股千评:’,EXTERNSTR(0,1))),COLOR00FFFF;}

{DRAWTEXT_FIX(C>0,0.00,0.25,0,STRCAT(‘智能诊股:’,EXTERNSTR(0,2))),COLOR00FFFF;};

DRAWRECTREL(0,500,147,999.4,IF(120,RGB(10,0,0),0));

超B:=L2_AMO(0,2)/10000.0;

大B:=L2_AMO(1,2)/10000.0;

中B:=L2_AMO(2,2)/10000.0;

小B:=L2_AMO(3,2)/10000.0;

超S:=L2_AMO(0,3)/10000.0;

大S:=L2_AMO(1,3)/10000.0;

中S:=L2_AMO(2,3)/10000.0;

小S:=L2_AMO(3,3)/10000.0;

TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);

大宗进:=(超B)+(大B),NODRAW;

大宗出:=(超S)+(大S),NODRAW;

非大宗进:=(中B)+(小B),NODRAW;

非大宗出:=(中S)+(小S),NODRAW;

大宗进限制:=IF((超B+大B)=0,0,大宗进);

大宗出限制:=IF((超S+大S)=0,0,大宗出);

非大宗进限制:=IF(中B+小B=0,0,非大宗进);

非大宗出限制:=IF(中S+小S=0,0,非大宗出);

主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;

散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;

净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;

大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;

大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);

大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;

大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);

总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;

总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;

成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;

机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;

大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;

大单强度限制:=IF(大单强度=0,-100,大单强度);

大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;

超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;

超单强度限制:=IF(超单强度=0,-100,超单强度);

超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;

DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;

DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));

DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));

DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));

DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));

DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT(”,CON2STR(大宗进/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT(”,CON2STR(大宗出/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT(”,CON2STR(非大宗进/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT(”,CON2STR(非大宗出/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT(”,CON2STR(净流入/1,0))),COLORYELLOW;

DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT(‘主力 ‘,CON2STR(主力净流入,0)),’万’)),COLORMAGENTA;

DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT(‘散户 ‘,CON2STR(散户净流入,0)),’万’)),COLORCYAN;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,’净流入:(万)’),COLORYELLOW;

主力买力度:=LARGEINTRDVOL*1000/VOL;

主力卖力度:=LARGEOUTTRDVOL*1000/VOL;

AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;

DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));

DRAWTEXT_FIX(1,0,0.524,0,STRCAT(‘主买力度:’,CON2STR(主力买力度,0))),COLORYELLOW;

DRAWTEXT_FIX(1,0,0.576,0,STRCAT(‘主卖力度:’,CON2STR(主力卖力度,0))),COLORYELLOW;

 

 

 

 

 

 

 

{主图公式2}

 

 

 

DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));

DRAWKLINE(H,O,L,C);

MA5:MA(CLOSE,5),COLORWHITE;

MA10:MA(CLOSE,10),COLORYELLOW;

MA20:MA(CLOSE,24),COLORMAGENTA;

MA60:MA(CLOSE,60),COLORGREEN;

MA120:MA(CLOSE,120),COLORLIMAGENTA;

MA240:MA(CLOSE,240),COLORBLUE;

DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做记号}

DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号}

DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号}

DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号}

DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号}

DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做记号}

DRAWICON(CROSS(MA120,MA240),MA240,1);{120日上穿240日做记号}

DRAWICON(CROSS(MA10,MA5),MA10,2); {5日下穿10日做记号}

DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号}

DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}

DRAWICON(CROSS(MA120,MA60),MA60,2); {60日下穿120日做记号}

反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);

月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);

季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);

短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);

半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);

熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);

年托:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240);

月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);

DRAWTEXT(月蜘蛛,MA20-0.08,’金蜘蛛’),COLORMAGENTA;

DRAWTEXT(反弹托,MA20-0.08,’反弹托’),COLORMAGENTA;

DRAWTEXT(月价托 ,MA20-0.2,’月托’),COLORMAGENTA;

DRAWTEXT(季价托,MA60-0.0.08,’季托’),COLORMAGENTA;

DRAWTEXT(短长价托,L+0.015,’短长托’),COLOR36C0C1;

DRAWTEXT(半年托,MA120-0.08,’牛市来’),COLORRED;

DRAWTEXT(熊来,MA60+0.08,’小心熊’),COLORGREEN;

DRAWTEXT(年托,MA240-0.08,’年托’),COLORRED;

压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10);

DRAWTEXT(压,MA20+0.012,’压’),COLORYELLOW;

VOL5:=MA(VOL,5),COLORWHITE;

VOL10:=MA(VOL,10),COLORYELLOW;

VOL40:=MA(VOL,40),COLORFF00FF ;

量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);

DRAWTEXT(量托,L-0.012,’量托’),COLORWHITE;

AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));

BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);

CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;

芙蓉出水:=BB AND CC1,COLOR00FF00;

DRAWTEXT(芙蓉出水,H+0.12,’芙蓉出水’),COLORFF00FF;

STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;

STICKLINE(芙蓉出水,O,C,4,1),LINETHICK2,COLORFF00FF;

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

MA3:=MA(CLOSE,30);

ZJ:=AMOUNT/10000;{资金}

TM:=V-MA(V,10);{量填满}

一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;

DRAWTEXT(一穿三,L-0.012,’穿三线’),COLORFF00FF;

C6:=REF(C,1);

涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);

STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;

STICKLINE(涨停,H,L,0,0),COLORLIRED;

{压力一}

TY:=C;

A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);

A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);

前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;

STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;

 

 

 

 

 

{主图公式3}

 

范围高A:=REFDATE(HHV(H,120),DATE)*1.05;

范围低A:=REFDATE(LLV(L,120),DATE)*0.95;

MA5:MA(CLOSE,5),COLORWHITE;

MA24:=MA(C,24),COLORGREEN,LINETHICK2;

MA72:=MA(C,72),COLORRED,LINETHICK2;

MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;

{=======================仪表盘=========================}

MA1:=MA(C,5);

主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);

初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;

底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;

探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;

观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);

有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);

放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);

DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,’观望’,0)COLOR00BF00;

DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,’主升浪’,0)COLORFF00FF;

DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,’主浪回调’,0)COLORFF8080;

DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,’主浪深调’,0)COLOR009500;

DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,’初升浪’,0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,’底部反弹’,0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,’探底阶段’,0);

DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,’观望’,0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,’有牛’,0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,’放弃’,0)COLOR00BF00;

拉升:IF(CURRBARSCOUNT=1 AND REF(C,1)<REF(C,2) AND C>REF(C,1) AND MA1>REF(MA1,1),CONST(REF(C,1)*1.01),DRAWNULL),COLORFF00FF;

A001:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),拉升,拉升*0.9992,15,0),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=1 AND 拉升=CONST(REF(C,1)*1.01),L*0.99996,’      拉升线’),COLORMAGENTA;

DRAWKLINE(H,拉升,L,C);

止损:REF(HHV(H,13),1)*0.95,COLORGREEN,DOTLINE;

A002:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),止损,止损*0.9996,15,0),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,止损*0.996,’止损线’),COLORGREEN;

SSL:=EMA(CLOSE,3);

MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);

MM:=MA(MMV,1);

捞钱手:IF(((SSL>MM)),MM,SSL),LINETHICK2,COLORFF00FF;

上开:=O;

上收:=C;

上高:=H;

上低:=L;

JJ:=(上开+上高+上低)/3;

A:=EMA(JJ,4);

智能黄金线:A,COLORYELLOW,LINETHICK1;

B:=REF(A,1);

STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;

VA1:=EMA(上收,8);

VA2:=EMA(上收,20);

DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,’★绝佳’) ,LINETHICK2,COLORRED;

DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,’★卖’);

DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,’★买’),COLOR00FF00;

选手A:=MA(上收,3);

箱顶A:=MA(REF(HHV(上收,6),1),3);

箱底A:=MA(REF(LLV(上收,3),1),3);

T01:=MA(上收,20)>=REF(MA(上收,20),1);

T02:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T01;

T03:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;

选手:=MA(上收,2);

箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;

箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;

T04:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;

T05:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;

VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;

VAR2:=SMA(VAR1,3,1);

VAR3:=SMA(VAR2,3,1);

VAR4:=SMA(VAR3,3,1);

DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 ,LOW*0.96,’★’),COLORF00FF0;

STICKLINE(C>=O,C,O,3,0),COLORRED;

STICKLINE(C>=O,H,L,0,0),COLORYELLOW;

STICKLINE(C<=O,C,O,3,0),COLORGREEN;

STICKLINE(C<=O,H,L,0,0),COLORFFFF00;

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);  

DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,’★跟’),COLOR00FFFF;

STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;

DRAWTEXT_FIX(C>0,0.08,0.0,0,STRCAT(‘所属行业:’,HYBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(C>0,0.18,0.0,0,STRCAT(‘所属地区:’,DYBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(C>0,0.28,0.0,0,STRCAT(‘所属概念:’,GNBLOCK)),COLORYELLOW;

DRAWTEXT_FIX(1,0.08,0.05,0,’业绩预报:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.13,0.05,0,EXTERNSTR(0,11))COLORYELLOW;

DRAWTEXT_FIX(1,0.08,0.1,0,’高送转:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.13,0.1,0,EXTERNSTR(0,13))COLORYELLOW;

{DRAWTEXT_FIX(1,0.0,0.05,0,’业绩预报:’)COLORYELLOW;

DRAWTEXT_FIX(1,0.042,0.05,0,EXTERNSTR(0,11))COLORYELLOW;

{DRAWTEXT_FIX(C>0,0.0,0.05,0,STRCAT(‘主题投资:’,EXTERNSTR(0,7))),COLORYELLOW;}

{DRAWTEXT_FIX(C>0,0.00,0.10,0,STRCAT(‘业绩预报:’,EXTERNSTR(0,3))),COLORYELLOW;}

{DRAWTEXT_FIX(C>0,0.0,0.15,0,STRCAT(‘解禁日期:’,EXTERNSTR(0,8))),COLORYELLOW;}

{DRAWTEXT_FIX(C>0,0.00,0.20,0,STRCAT(‘千股千评:’,EXTERNSTR(0,1))),COLOR00FFFF;}

{DRAWTEXT_FIX(C>0,0.00,0.25,0,STRCAT(‘智能诊股:’,EXTERNSTR(0,2))),COLOR00FFFF;};

DRAWRECTREL(0,500,147,999.4,IF(120,RGB(10,0,0),0));

超B:=L2_AMO(0,2)/10000.0;

大B:=L2_AMO(1,2)/10000.0;

中B:=L2_AMO(2,2)/10000.0;

小B:=L2_AMO(3,2)/10000.0;

超S:=L2_AMO(0,3)/10000.0;

大S:=L2_AMO(1,3)/10000.0;

中S:=L2_AMO(2,3)/10000.0;

小S:=L2_AMO(3,3)/10000.0;

TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);

大宗进:=(超B)+(大B),NODRAW;

大宗出:=(超S)+(大S),NODRAW;

非大宗进:=(中B)+(小B),NODRAW;

非大宗出:=(中S)+(小S),NODRAW;

大宗进限制:=IF((超B+大B)=0,0,大宗进);

大宗出限制:=IF((超S+大S)=0,0,大宗出);

非大宗进限制:=IF(中B+小B=0,0,非大宗进);

非大宗出限制:=IF(中S+小S=0,0,非大宗出);

主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;

散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;

主力强势:=大宗进>大宗出*3;

净流入:=((超B+大B+中B+小B)>(超S+大S+中S+小S));

连续流入:EVERY(净流入>0,2),NODRAW,COLORFFFFFF;

涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW;

跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW;

{DDE显示}

DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);

DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);

DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);

DRAWRECTREL(150,500,192,540,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWTEXT_FIX(1,0.153,0.500,0,STRCAT(‘DDX:’,CON2STR(DDX,1))),COLORYELLOW,COLORWHITE;

DRAWTEXT_FIX(1,0.153,0.548,0,STRCAT(‘DDY:’,CON2STR(DDY,1))),COLORYELLOW,COLORWHITE;

DRAWTEXT_FIX(1,0.153,0.596,0,STRCAT(‘DDZ:’,CON2STR(DDZ,1))),COLORYELLOW,COLORWHITE;

大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;

大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);

大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;

大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);

总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;

总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;

成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;

机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;

大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;

大单强度限制:=IF(大单强度=0,-100,大单强度);

大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;

超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;

超单强度限制:=IF(超单强度=0,-100,超单强度);

超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;

DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;

DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));

DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));

DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));

DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));

DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT(”,CON2STR(大宗进/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT(”,CON2STR(大宗出/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT(”,CON2STR(非大宗进/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT(”,CON2STR(非大宗出/1,0))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT(”,CON2STR(净流入/1,0))),COLORYELLOW;

DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT(‘主力 ‘,CON2STR(主力净流入,0)),’万’)),COLORMAGENTA;

DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT(‘散户 ‘,CON2STR(散户净流入,0)),’万’)),COLORCYAN;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,’净流入:(万)’),COLORYELLOW;

主力买力度:=LARGEINTRDVOL*1000/VOL;

主力卖力度:=LARGEOUTTRDVOL*1000/VOL;

AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;

DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));

DRAWTEXT_FIX(1,0,0.524,0,STRCAT(‘主买力度:’,CON2STR(主力买力度,0))),COLORYELLOW;

DRAWTEXT_FIX(1,0,0.576,0,STRCAT(‘主卖力度:’,CON2STR(主力卖力度,0))),COLORYELLOW;

T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);

T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);

T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);

T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);

T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4);

T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);

T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);

T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7);

T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)<0,9,T8);

T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)>0,10,T9);

DRAWTEXT_FIX(1,0.190,0.500,0,STRCAT(STRCAT(‘ ‘,CON2STR(T,0)),’ [天] ‘)),COLORYELLOW;

T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);

T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11);

T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);

T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);

T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);

T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)<0,6,T51);

T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);

T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);

T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)<0,9,T81);

TY01:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);

DRAWTEXT_FIX(1,0.190,0.548,0,STRCAT(STRCAT(‘ ‘,CON2STR(TY01,0)),’ [天] ‘)),COLORYELLOW;

T1Z:=IF (DDZ>0 AND REF(DDZ,2)<0,1,0);

T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);

T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);

T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);

T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);

T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)<0,6,T5Z);

T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);

T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);

T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)<0,9,T8Z);

TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)>0,10,T9Z);

DRAWTEXT_FIX(1,0.190,0.596,0,STRCAT(STRCAT(‘ ‘,CON2STR(TZ,0)),’ [天] ‘)),COLORYELLOW;
 

 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。