通达信最新指标公式 分时T+0操作分时主图公式源码(3)
DRAWICON(VAR86,VAR82,39);
VAR87:=BARSLAST(TIME2=100100);
C1:CONST(IF(VAR87,MAX(REF(HHV(HIGH,0),VAR87),DYNAINFO(4)),HHV(HIGH,0))),DOTLINE,COLORBROWN;
C2:CONST(IF(VAR87,MIN(REF(LLV(LOW,0),VAR87),DYNAINFO(4)),LLV(LOW,0))),DOTLINE,COLORBROWN;
VAR88:=HHV(VOL,0);
DRAWTEXT(C1/C2<=1.03 AND CROSS(CLOSE,C1) AND VOL>=VAR88,C1,37),COLORRED;
DRAWTEXT(C1/C2<=1.03 AND CROSS(C2,CLOSE) AND VOL>=VAR88,C2,38),COLORGREEN;
VAR89:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;
VAR90:=BARSLAST(VAR89-REF(VAR89,1)!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;
VAR91:=REF(CLOSE,VAR90);
VAR92:=REF(VAR91,VAR90);
VAR93:=REF(VAR92,VAR90);
VAR94:=REF(VAR93,VAR90);
VAR95:=REF(VAR94,VAR90);
VAR96:=REF(VAR95,VAR90);
VAR97:=REF(VAR96,VAR90);
VAR98:=REF(VAR97,VAR90);
VAR99:=REF(VAR98,VAR90);
CK:REFDATE((CLOSE+VAR91+VAR92+VAR93+VAR94+VAR95+VAR96+VAR97+VAR98+VAR99)/10,DATE),CIRCLEDOT,COLORAC59FF;
VAR100:=TIME=100000;
VAR101:=BARSLAST(VAR100);
VAR102:=CONST(IF(VAR101=0,CLOSE,REF(CLOSE,VAR101)));
VAR103:=CONST(IF(VAR101,HHV(HIGH,0),REF(HHV(HIGH,0),VAR101)));
VAR104:=CONST(IF(VAR101,LLV(LOW,0),REF(LLV(LOW,0),VAR101)));
STICKLINE(VAR100=1,VAR103,VAR104,1.2,0),COLOR008888;
VAR105:=SUM(VOL*CLOSE,0)/SUM(VOL,0);
CONST(IF(VAR100,HHV(HIGH,0),REF(HHV(HIGH,0),VAR101))),DOTLINE,COLOR000066;
CONST(IF(VAR100,LLV(LOW,0),REF(LLV(LOW,0),VAR101))),DOTLINE,COLOR006600;
CONST(IF(VAR101,LLV(LOW,1),REF(LLV(LOW,0),VAR101))),COLOR888888;
CONST(IF(VAR101,HHV(LOW,1),REF(HHV(LOW,0),VAR101))),COLOR888888;
VAR106:=BARSCOUNT(CLOSE);
VAR107:=MAX(DYNAINFO(3),DYNAINFO(5));
VAR108:=MIN(DYNAINFO(3),DYNAINFO(6));
VAR109:=VAR107-VAR108;
VAR110:=VAR108+VAR109*7/8;
VAR111:=VAR108+VAR109*0.5/8;
DRAWICON(LONGCROSS(VAR111,CLOSE,2),CLOSE,1);
DRAWICON(LONGCROSS(CLOSE,VAR110,2),CLOSE,2);
VAR112:=DYNAINFO(4);
VAR113:=DYNAINFO(5);
VAR114:=DYNAINFO(6);
VAR115:=DYNAINFO(11);
VAR116:=CLOSE;
VAR117:=BARSCOUNT(VAR116);
VAR118:=SUM(VOL*CLOSE,0)/SUM(VOL,0);
VAR119:=MA(VAR116,VAR117);
VAR120:=VAR119+2*STD(VAR116,3);
VAR121:=VAR119-2*STD(VAR116,3);
DRAWICON(CROSS(VAR118,VAR119),VAR118,38);
VAR122:=TIME>93000;
VAR123:=VAR116/REF(CLOSE,1)>1.02;
VAR124:=VAR116/REF(CLOSE,1)<0.98;
VAR125:=(HHV(VAR116,VAR117)-LLV(VAR116,VAR117))/VAR116<0.05;
VAR126:=SMA(VOL,30,1);
VAR127:=(VAR126-LLV(LLV(VAR126,1),30))/(HHV(HHV(VAR126,1),30)-LLV(LLV(VAR126,1),30))>0.95;
VAR128:=VAR123 OR VAR124;
VAR129:=VAR128=0 AND VAR125 AND VAR127 AND CROSS(VAR118,VAR119);
DRAWTEXT(FILTER(VAR129,10),VAR118,39),COLORYELLOW;
VAR130:=VAR128=0 AND VAR125 AND VAR127 AND CROSS(CLOSE,VAR118) AND CROSS(CLOSE,VAR119);
DRAWTEXT(FILTER(VAR130,10),VAR118*0.99,40),COLORRED;
VAR131:=SUM(CLOSE*VOL,240)/SUM(VOL,240);
VAR132:=REF(HHV(HIGH,VAR106),1);
VAR133:=CROSS(CLOSE,REF(HHV(HIGH,VAR106),1)) AND CLOSE/VAR131<1.09 AND VAR106>1 AND VAR106<240;
VAR134:=COUNT(VAR133,13)>=3 AND CROSS(CLOSE,REF(HHV(HIGH,VAR106),1));
DRAWTEXT(VAR134,VAR132,41),COLORRED;
VAR135:=CROSS(CLOSE,REF(HHV(HIGH,VAR106),1)) AND HHVBARS(VOL,VAR106)=0 AND CLOSE/VAR131<1.09 AND VAR106>1 AND VAR106<240 AND BARSLAST(VAR134)>=15;
DRAWTEXT(VAR135,VAR132,42),COLORRED;
DRAWICON(VAR135,VAR132,25);
VAR136:=EMA(EMA(CLOSE,13),13);
VAR137:=(VAR136-REF(VAR136,1))/REF(VAR136,1)*1000;
VAR138:=DYNAINFO(11);
VAR139:=55;
VAR140:=7;
VAR141:=3;
VAR142:=(EMA(CLOSE,VAR140)-EMA(CLOSE,VAR139))*10;
VAR143:=EMA(VAR142,VAR141);
VAR144:=(CLOSE-VAR138)/VAR138<(-0.03);
VAR145:=VAR137>REF(VAR137,1) AND VAR137<(-0.2);
VAR146:=CROSS(VAR142,VAR143) AND VAR142<(-0.3);
VAR147:=FILTER(VAR144 AND VAR145 AND VAR146,13);
DRAWTEXT(VAR147,CLOSE*0.985,43),COLORRED;
DRAWICON(VAR147,CLOSE*0.985,28);
阻力1:REFDATE(REF(HHV(CLOSE,60),FROMOPEN-60),DATE),DOTLINE,COLORBLUE;
更多股票公式相关资讯请关注南方财富网
(股票知识网zhishi.southmoney.com)