通达信【打板波段+灵光闪现】主图/副图指 波段操作兼打首板的神奇指标

{打板波段主图源码如下}


{一进二、二进三打板+波段操作主图指标,无未来函数}
K:=EMA(C,2);
K1:=EMA(K,2);
K2:=EMA(K1,2);
K3:=EMA(K2,2);
快:=EMA(K1,3),COLORRED,LINETHICK1;
中:=EMA(K2,5),COLORYELLOW,LINETHICK1;
慢:=EMA(K3,7),COLORBLUE,LINETHICK1;
DRAWBAND(快,RGB(50,50,125),慢,RGB(0,105,0));
K线:DRAWKLINE(H,O,L,C);
限时:=1;
重心:=(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70 AND 快>慢 AND ((H-O)<(O-C) AND C<O) AND REF(C,1)<REF(C,2)*1.095,H+0.07,'洗'),COLORGREEN;
A1:=EMA(C,14),COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100* 限时,NODRAW;
突破:=REF(EMA(C,14),1),NODRAW;
距离:=(C-突破)/突破*100,NODRAW;
入场:=IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
出逃:=IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
钱袋子:=DRAWICON(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097,L,9);
起爆点:=DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 ,L-0.18,'爆')COLORBLUE;
DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(快,慢) AND C>=快 AND C>O,L-0.18,'打首板')COLORWHITE;
DRAWTEXT(CROSS(快,慢) AND C>=快 AND C>O AND C<REF(C,1)*1.07 ,O,'买')COLORYELLOW;
DRAWTEXT(REF(C,1)>REF(快,1) AND REF(C,2)>REF(快,2) AND REF(C,3)>REF(快,3) AND C<快 AND REF(快,1)>REF(慢,1) AND REF(L,1)<REF(快,1) AND O>C ,H+0.1,'卖')COLORYELLOW;
卖出:=DRAWICON(REF(C,1)>REF(快,1) AND REF(C,2)>REF(快,2) AND REF(C,3)>REF(快,3) AND C<快 AND REF(快,1)>REF(慢,1) AND REF(L,1)<REF(快,1) AND O>C,H+0.1,15);
STICKLINE(CROSS(A1X,0),(C+O)/2,O,1,0),COLORRED;
STICKLINE(CROSS(0,A1X),(C+O)/2,O,1,0),COLORYELLOW;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
生命线:MA(CLOSE,60),COLORRED,LINETHICK1;
上轨:=BOLL+2*STD(CLOSE,60);
下轨:=BOLL-2*STD(CLOSE,60);
NN:=((REF(C,1)>REF(C,2)*1.096 AND REF(C,2)>REF(C,3)*1.096 ) AND C<REF(C,1)*1.095);
DRAWTEXT(NN,H,'清'),COLORYELLOW;
DRAWSL(快=慢,REF(H,1),0,3,0),LINETHICK2;
ZTTJ:=(CLOSE>=ZTPRICE(REF(CLOSE,1),IF(FINANCE(3)=4,0.2,0.1)));
一板1:=ZTTJ AND NOT(REF(ZTTJ,1)) AND H=C AND FINANCE(42)>20;
一板:=C>REF(C,1)*1.095 AND C<REF(C,1)*1.118 AND C=H AND REF(C,1)<REF(C,2)*1.095;
M1:=一板 AND V<REF(V,1);
二连板1:=((C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>30 AND
REF(C,1)=ZTPRICE(REF(C,2),0.1)) OR
(C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>30 AND
REF(C,1)=ZTPRICE(REF(C,2),0.2)) AND NOT(REF(ZTTJ,2)));
二连板:=C>REF(C,1)*1.095 AND C<REF(C,1)*1.118 AND C=H AND
REF(C,1)>REF(C,2)*1.095 AND REF(C,1)<REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND REF(C,2)<REF(C,3)*1.095;
M2:=STICKLINE(二连板 AND V<REF(V,1),(O+C)/2,C,1,0),COLORRED;
三连板1:=(C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>20 AND
REF(C,1)=ZTPRICE(REF(C,2),0.1) AND
REF(C,2)=ZTPRICE(REF(C,3),0.1)) OR
(C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>20 AND
REF(C,1)=ZTPRICE(REF(C,2),0.2) AND
REF(C,2)=ZTPRICE(REF(C,3),0.2));
三连板:=C>REF(C,1)*1.095 AND C<REF(C,1)*1.118 AND C=H AND
REF(C,1)>REF(C,2)*1.095 AND REF(C,1)<REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND
REF(C,2)>REF(C,3)*1.095 AND REF(C,2)<REF(C,3)*1.118 AND REF(C,2)=REF(H,2);
M3:=三连板 AND V<REF(V,1);
MAVOL1:=MA(V,5);
DRAWTEXT(一板 AND C>O AND V>REF(MAVOL1,1)*2,L-0.09,'一进二'),COLORRED;
DRAWTEXT(M1 AND C>O,L-0.09,'一进二'),COLORRED;
DRAWTEXT(M2 ,L-0.07,'二进三'),COLORYELLOW;
DRAWTEXT(M3 ,O,'龙妖'),COLORYELLOW;
夹1:=C>REF(C,1)*1.095 AND REF(C,1)<REF(C,2)*1.095 AND REF(C,2)>REF(C,3)*1.095 AND REF(C,3)<REF(C,4)*1.095;
DRAWTEXT(夹1 ,L-0.09,'一进二'),COLORYELLOW;
夹2:=C>REF(C,1)*1.095 AND REF(C,1)<REF(C,2)*1.095 AND REF(C,2)<REF(C,3)*1.095 AND REF(C,3)>REF(C,4)*1.095 AND REF(C,4)<REF(C,5)*1.095;
DRAWTEXT(夹2 ,L-0.09,'一进二'),COLORYELLOW;
生线:=L*0.85;
火箭:=(一板 AND C>O AND V>REF(MAVOL1,1)*2) OR (M1 AND C>O) OR (M2) OR (M3) OR(夹1)
OR (夹2) OR(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND
CROSS(快,慢) AND C>=快 AND C>O);
DRAWICON(火箭,生线,42);

{打板波段副图源码如下}


{灵光闪现副图指标,无未来函数}
HGW1:=1;
HGW4:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100*HGW1;
变速率:(SMA(SMA(HGW4,2,1)+3*HGW1,2,1)-(MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100));
MACD2:=变速率;
TJ:=MACD2>0;T:=MACD2<0;
DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW;
DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN;
趋势线: 3*SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1),3,1);
天:100,COLOR9F9F5F;
地:-10,COLOR7070DB;
FFD:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
A:=EMA(FFD,3);
B:=EMA(A,2);
E:=3*A-2*B;
LOWV:=LLV(LOW,8);
HIGHV:=HHV(HIGH,8);
A3:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
上:=EMA(A3,3);
下:=EMA(上,2);
A4:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K:=SMA(A4,3,1);
D:=SMA(K,2.5,1);
进:K,COLORMAGENTA;
退:D,COLORGREEN;
DRAWBAND(D,RGB(10,250,10),K,RGB(250,10,10));
DRAWICON(CROSS(K,D),K,1);
DRAWICON(CROSS(D,K),D,2);
A1:=BARSLAST(REF(CROSS(E,B),1));
底:=REF(CLOSE,A1+1)>CLOSE AND E>REF(E,A1+1) AND CROSS(E,B);
A2:=BARSLAST(REF(CROSS(B,E),1));
顶:=REF(CLOSE,A2+1)<CLOSE AND REF(B,A2+1)>B AND CROSS(B,E);
DRAWTEXT(CROSS(96,E) AND (E<=80),75,'回'),COLORFF6EC7;
DRAWTEXT(CROSS(E,1) AND (E<=20),15,'反'),COLORFF8855 ;
DRAWTEXT(底>0,5,'底'),COLORB0C4DE;
DRAWTEXT(顶>0,98,'顶'),COLOR0099FF;
好股网:=CROSS(A,50) AND CROSS(B,40);
STICKLINE(好股网,71,19,2,0),COLORFF8855;
DRAWTEXT(好股网,75,'买'),COLORYELLOW;
好股网5:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,22);
STICKLINE(好股网5,71,19,2,0),COLORFF0088;
DRAWTEXT(好股网5,75,'买'),COLORYELLOW;
好股网6:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,35);
STICKLINE(好股网6,71,19,2,0),COLORFF0088;
DRAWTEXT(好股网6,75,'买'),COLORYELLOW;
好股网7:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,45);
STICKLINE(好股网7,71,19,2,0),COLORFF0088;
DRAWTEXT(好股网7,75,'买'),COLORYELLOW;
好股网8:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,55.3);
STICKLINE(好股网8,71,19,2,0),COLORFF0088;
DRAWTEXT(好股网8,75,'买'),COLORYELLOW;



未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图