每日解盘-精品通达信指标公式源码分享
LC:=REF(C,1);
STICKLINE(1=1,10,0,4,0),COLOR444444;
STICKLINE(C<=MA(C,13) AND MA(C,13)<=REF(MA(C,13),1),10,0,4,0),COLOR663300;
STICKLINE(C>=MA(C,13) AND MA(C,13)>=REF(MA(C,13),1),10,0,4,0),COLOR000055;
K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),COLORCCCCCC;
D9:=SMA(K9,3,1),COLOR00FFFF;
J9:=3*K9-2*D9,LINETHICK1,COLORFFFFFF;
KK:K9*0.1,COLORCCCCCC;
JJ:J9*0.1,LINETHICK1,COLORFF00FF;
VAR01:=DYNAINFO(17)*REF(MA(V,5),1);
VAR02:=DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT;
预测V1:=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,VAR01,VAR02);
预量:=IF(V>=预测V1 AND PERIOD=5,V,预测V1),LINETHICK0;
比:=预量/V;
买盘:=DYNAINFO(23)*比;
卖盘:=DYNAINFO(22)*比;
买盘0:=IF(ISLASTBAR AND PERIOD=5,买盘,0);
卖盘0:=IF(ISLASTBAR AND PERIOD=5,卖盘,0);
V1:=MA(V,5);
V2:=MA(V,10);
VAR1:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100;
VAR3:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;
VAR6:=(VAR3-VAR1)/20+6;
AA:=MA(VAR6,5),COLOR00CC00;
压力1:=MA(C,26)+2*STD(C,26),COLORCCCC00;
支撑01:=MA(INDEXC,26)-2.2*STD(INDEXC,26),COLORCCCC00;
支撑02:=MA(INDEXC,26)-3*STD(INDEXC,26),COLORFF9999;
压力02:=MA(INDEXC,26)+3*STD(INDEXC,26),COLORFF9999;
压力01:=MA(INDEXC,26)+2*STD(INDEXC,26),COLORCCCC00;
YYY:=EMA((INDEXC-LLV(INDEXL,11))/(HHV(INDEXH,25)-LLV(INDEXL,11))*4,8)+1;
YY:=POW(YYY,2)-10;
XXX:=EMA((C-LLV(L,11))/(HHV(H,25)-LLV(L,11))*4,8)+1;
XX:=IF(1=1,POW(XXX,2)-10,DRAWNULL);
大盘低:=IF(YY<-8.6 AND INDEXC<支撑01 AND PERIOD=5,10,DRAWNULL);
大盘高:=IF(YY>10.8 AND INDEXC>压力01 AND PERIOD=5,9,DRAWNULL);
DRAWTEXT(大盘低=10 AND ISLASTBAR,-8,'大盘低'),COLOR0055FF;
DRAWTEXT(大盘高=9 AND ISLASTBAR,-6,'大盘高'),COLORFFFF00;
DRAWTEXT(CONST(IF(C>=MA(C,10) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF
(MA(C,20),1) AND MA(C,40)>REF(MA(C,40),1) AND MA(C,10)>REF(MA(C,20),1),1,0))
AND CURRBARSCOUNT=40,-7,'上升趋势'),COLOR0033FF;
DRAWTEXT(CONST(IF(C<=MA(C,10) AND MA(C,10)<REF(MA(C,10),1) AND MA(C,20)<REF(MA(C,20),1)
AND MA(C,40)<REF(MA(C,40),1) AND MA(C,10)<REF(MA(C,20),1),1,0)) AND
CURRBARSCOUNT=40,-7,'下跌趋势'),COLORFFFFFF;
DRAWTEXT(CONST(IF((C>MA(C,5) AND MA(C,5)>=REF(MA(C,5),1) AND MA(C,10)>=REF(MA
(C,10),1) AND MA(C,5)>=MA(C,10)) OR (XX>REF(XX,1) AND XX>YY
AND C>LC),1,0)) AND CURRBARSCOUNT=40,-5,'短线强'),COLORFF44FF;
DRAWTEXT(CONST(IF(C<MA(C,5) AND C<MA(C,10) AND (MA(C,5)<REF(MA(C,5),1) OR
MA(C,10)<REF(MA(C,10),1) OR MA(C,5)<MA(C,10) OR C<LC),1,0)) AND
CURRBARSCOUNT=40,-5,'短线弱'),COLOR00FF00;
DRAWTEXT(CONST(IF((C>MA(C,5) AND C<MA(C,10)) OR (C<=MA(C,5) AND (C>=MA(C,10)
OR MA(C,10)>=REF(MA(C,10),1))),1,0)) AND C<LC AND CURRBARSCOUNT=40,-3,
'短线盘整'),COLORFF77CC;
DRAWTEXT(CONST(IF(预量=LLV(预量,10),1,0)) AND CURRBARSCOUNT=40,-1,'缩量'),COLOR00FF00;
DRAWTEXT(CONST(IF(预量=LLV(预量,10) AND J9<70,1,0)) AND CURRBARSCOUNT=40,-1,
'缩量,一旦放量上升可买入'),COLOR00FF00;
DRAWTEXT(CONST(IF(MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF
(MA(C,20),1) AND MA(C,30)>REF(MA(C,30),1) AND C>MA(C,5) AND C>MA(C,10)
AND C>MA(C,30) AND C>LC AND V1>V2 AND (预量>REF(预量,1) OR 预量>V1)
AND C>LC AND XX<8 AND C>O,1,0)) AND CURRBARSCOUNT=40,-2,'量能理想 继续持有'),COLOR00FFFF;
DRAWTEXT(CONST(IF(C>LC AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND C>
MA(C,5) AND REF(MA(C,5),1)>=REF(MA(C,5),2) AND V1<=V2 AND (预量<REF
(预量,1) AND 预量<V1) AND 买盘>卖盘,1,0)) AND CURRBARSCOUNT=40,-3,
'量弱少量买 明放量加仓'),COLORFF00FF;
DRAWTEXT(CONST(IF(C<LC AND C<MA(C,5) AND 买盘<卖盘 AND 预量>REF(预量,1) AND
预量>V1,1,0)) AND CURRBARSCOUNT=40,-2,'放量跌'),COLOR00FF00;
DRAWTEXT(CONST(IF(C<LC*0.96 AND C<MA(C,5) AND 买盘>卖盘*1.15 AND 预量>REF
(预量,1) AND 预量>V1,1,0)) AND CURRBARSCOUNT=40,-2,'有抄底资金进入'),COLOR00CCCC;
DRAWTEXT(CONST(IF(C<LC AND MA(C,5)<REF(MA(C,5),1) AND C<MA(C,5) AND C<MA(C,10)
AND MA(C,10)>REF(MA(C,10),1) AND REF(MA(C,5),1)>=REF(MA(C,5),2),1,0))
AND CURRBARSCOUNT=40,-1,'减仓部分'),COLOR00FF00;
DRAWTEXT(CONST(IF(LLV(J9,5)<-15 AND C=LLV(C,10) AND C<L*1.016 AND C<MA(C,10)
*0.96,1,0)) AND CURRBARSCOUNT=40,-3,'可少量抢反弹,快进快出'),COLOR00FF00;
DRAWTEXT(CONST(IF(C<LC AND MA(C,5)<REF(MA(C,5),1) AND MA(C,10)<=REF(MA(C,10),1)
AND 买盘<卖盘 AND C<MA(C,5) AND C<MA(C,10) AND 预量>LLV(预量,10),1,0))
AND CURRBARSCOUNT=40,-7,'走弱离场'),COLORFFFF00;
DRAWTEXT(卖盘/买盘>1.4 AND CURRBARSCOUNT=40,7,'卖盘/买盘>1.4'),COLORGREEN;
DRAWTEXT(买盘/卖盘>1.4 AND CURRBARSCOUNT=40,7,'买量/卖盘>1.4'),COLORYELLOW;
量大:=CONST((卖盘0+买盘0)/REF(V,1)>2);
量缩:=CONST((卖盘0+买盘0)/REF(V,1)<0.5);
DRAWTEXT(量大 AND CURRBARSCOUNT=40,9,'预比昨量放1倍以上'),COLORGREEN;
DRAWTEXT(量缩 AND CURRBARSCOUNT=40,9,'预比昨量缩一半以上'),COLORYELLOW;
DRAWTEXT(((V>REF(V,1)*3 AND HHV(REF(H,1),15)>LLV(REF(L,1),15)*1.18 AND HHV
(H,5)>LLV(L,70)*1.3 AND HHV(H,40)>LLV(L,40)*1.3 AND J9>90) OR XX>12)
AND C>压力1 AND C<LC*1.0985 AND CURRBARSCOUNT=40,3,'危'),COLOR00FF00;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!