自用看大盘通达信公式 主图 源码附图

十日线:=MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
DRAWNUMBER(ISLASTBAR,十日线,十日线),COLOR00FFFF;
二十日线:=MA(CLOSE,20),LINETHICK1,COLORFF00FF;
DRAWNUMBER(ISLASTBAR,二十日线,二十日线),COLORFF00FF;
三十日控仓线:=MA(C,30),LINETHICK1,COLORFF8000;
DRAWNUMBER(ISLASTBAR,三十日控仓线,三十日控仓线),COLORFF8000;
六十二日线:=MA(CLOSE,62),LINETHICK1,COLOR00FF00;
DRAWNUMBER(ISLASTBAR,六十二日线,六十二日线),COLOR00FF00;
八十九日线:=MA(CLOSE,89),LINETHICK1,COLOR8080FF;
DRAWNUMBER(ISLASTBAR,八十九日线,八十九日线),COLOR8080FF;
半年线:=MA(CLOSE,120),LINETHICK1,COLORRED;
DRAWNUMBER(ISLASTBAR,半年线,半年线),COLORRED;
年线:=MA(CLOSE,250),COLOR3299CC;
DRAWNUMBER(ISLASTBAR,年线,年线),COLOR3299CC;
进攻线:=MA(CLOSE,4),LINETHICK1,DOTLINE,COLOR4080FF;
DRAWNUMBER(ISLASTBAR,进攻线,进攻线),COLOR4080FF;
{逃顶}
X:=MA(C,120);
VAR5:=(MA(H,5)-X)/X;
VAR6:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
D41:DRAWTEXT(CROSS(95,VAR6) AND VAR5>0.3,H*1.003,'↙逃顶'),COLOR00FF00;
D5:DRAWTEXT( CROSS(93,VAR6) AND HHV(H,30)/LLV(L,30)>1.1 AND REF(X,1)/X>0.997 ,H*1.003,'↙逃顶'),COLOR00FF00;
D6:DRAWTEXT(CLOSE<X AND X<REF(X,1) AND REF(VAR6,1)>90 AND VAR6<REF(VAR6,1) AND REF(VAR6,1)>REF(VAR6,2) ,H*1.003,'↙逃顶'),COLOR00FF00;
 
{题材概念}
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLOR00FFFF;
{金色涨停}
STICKLINE(C/REF(C,1)>1.095,C,O,1.8{金色涨停黄s芯宽度},0),COLORYELLOW;
 
{模块主图指标叠加首-------------------------------------------------}
{资本家建仓}
X1:=(C+L+H)/1.5;
X2:=EMA(X1,3);
X3:=EMA(X2,2.5);
DRAWICON(CROSS(X2,X3),L*0.98,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW;
DRAWTEXT(CROSS(X2,X3),L*0.993{数字大位置高},'↖加仓'),COLORRED,NODRAW;{不显示}{字色}
精:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - 精),0),3,1) / SMA(ABS((CLOSE -精)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'☆顶'),COLOR1880FF,NODRAW;{不显示}
STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED,NODRAW;{不显示}
STICKLINE(X2>=X3,CLOSE,OPEN,2,2),COLORRED,NODRAW;{不显示}
STICKLINE(X2<X3,LOW,HIGH,0,1),COLOR00FF00,NODRAW;{不显示}
STICKLINE(X2<X3,CLOSE,OPEN,2,2),COLOR00FF00,NODRAW;{不显示}
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3,0),COLOR00FF00,NODRAW;{不显示}
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3,0),COLORRED,NODRAW;{不显示}
STICKLINE((CLOSE>OPEN) AND (X2<X3),CLOSE,OPEN,3,2)COLOR00FF00,NODRAW;{不显示}
STICKLINE((CLOSE>OPEN) AND (X2>=X3),CLOSE,OPEN,3,2)COLORRED,NODRAW;{不显示}
STICKLINE((CLOSE<OPEN) AND (X2<X3),CLOSE,OPEN,3,0)COLOR00FF00,NODRAW;{不显示}
STICKLINE((CLOSE<OPEN) AND (X2>=X3),CLOSE,OPEN,1,0)COLORRED,NODRAW;{不显示}
O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),LINETHICK1,DOTLINE,COLOR404080,NODRAW;{不显示}{第一条线}
O2:EMA(O1,3),LINETHICK1,DOTLINE,COLOR404080,NODRAW;{不显示}{第二条线}
O3:EMA(O2,3),LINETHICK1,DOTLINE,COLOR404080,NODRAW;{不显示}{第三条线}
顶:=C-REF(C,1);
妹:=100*EMA(EMA(顶,6),6)/EMA(EMA(ABS(顶),6),6),NODRAW;{不显示}
哥:=IF(LLV(妹,2)=LLV(妹,7) AND COUNT(妹<0,2) AND CROSS(妹,MA(妹,2)),1,0);
DRAWTEXT(FILTER(哥=1,5),L*0.995{数字大位置高},'↖开火'),COLOR00FFFF;
H1:IF(FILTER(哥=1,5),L*0.96,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW,NODRAW;{不显示}
F1_:IF(FILTER(哥=1,5),L*0.96,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED,NODRAW;{不显示}
A:=BARSCOUNT(C);
打:=HHV(H,200);
吃:=LLV(L,200);
高:=(打-吃)/43;
B2:=L-高;
STICKLINE((A+0)/23=FLOOR((A+0)/23),B2,B2-1.5*高,2{方块宽度},0),COLOR00FFFF,NODRAW;{不显示}
DRAWTEXT((A+0)/23=FLOOR((A+0)/23),B2-1*高,'↖起飞'),COLOR00FFFF,NODRAW;{不显示}
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
G:REF(C,GDSJ),COLORFF00FF,POINTDOT;
破:CROSS(C,REF(G,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,G,G,2,0),COLORFF00FF,NODRAW;{不显示}
DRAWTEXT(破,LOW,'突破'),COLORRED,NODRAW;{不显示}
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
J点:REF(C,DDSJ),COLOR00FF00,POINTDOT,NODRAW;{不显示}
STICKLINE(DDSJ<=6,J点,J点,2,0),COLOR808080,NODRAW;{不显示}{虚线色};
{抄底}
Z:=MA(C,120);
VAR3:=(MA(C,5)-Z)/Z;
VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);
D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.994*LOW ,'↖抄底'),COLOR80FFFF;
D2:DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.994*LOW ,'↖抄底'),COLOR80FFFF;
D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.994*LOW ,'↖抄底'),COLOR80FFFF;
 


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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