通达信行情指示主图指标 源码

[复制链接]
查看170 | 回复0 | 2021-8-26 21:33:32 | 显示全部楼层 |阅读模式

以下是通达信行情指示主图指标 源码(无源码的请下载附件导入)

牛熊线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK1,CIRCLEDOT,COLORYELLOW;
小牛:=CROSS(C,牛熊线);
DRAWTEXT(小牛,L,'↖走强区'),COLORRED,LINETHICK4;
DRAWTEXT(ISLASTBAR,牛熊线,'牛熊线'),COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
操盘线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)
+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)
+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,NODRAW;
安全线:MA(操盘线,11),COLORGRAY,LINESTICK,LINETHICK1;

MA20:MA(C,20),NODRAW;
趋势线:MA(C,6) COLORGREEN, LINETHICK2;

STICKLINE(趋势线>=MA20,CLOSE,OPEN,3,0),COLOR0000FF;
STICKLINE(趋势线>=MA20,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(MA20>趋势线,CLOSE,OPEN,3,0),COLORFF9900;
STICKLINE(MA20>趋势线,CLOSE,OPEN,0.5,0),COLORFFCC00;

大牛:=CROSS(趋势线,MA20);
死牛:=CROSS(MA20,趋势线);
DRAWTEXT(大牛,L,'↖行情开始'),COLORYELLOW,LINETHICK4;
DRAWTEXT(死牛,H,'↖行情结束'),COLORWHITE  ,LINETHICK4;
STICKLINE(CROSS(趋势线,MA20),OPEN,CLOSE,2,0),COLOR00FFFF  ;
STICKLINE(CROSS(MA20,趋势线),OPEN,CLOSE,2,0),COLOR00DD00;
VAR2:=O>MA(C,安全线) AND C<MA(C,安全线);
STICKLINE(CROSS(安全线,C),OPEN,CLOSE,2,0),COLORFF0000;
AMA3:IF(趋势线/REF(趋势线,安全线)>0.997,趋势线,DRAWNULL),COLORBLUE,LINETHICK3;
AMA4:IF(趋势线/REF(趋势线,安全线)>1.001,趋势线,DRAWNULL),COLORRED,LINETHICK3;
WH1:=IF(L=LLV(L,9),L,0);DRAWTEXT_FIX(C>O,0.01,0.01,0,'
WH2:=CONST(BARSLAST(WH1!=0));
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORYELLOW,DOTLINE;
DRAWTEXT(ISLASTBAR,WH7,'进场线'),COLORYELLOW;
DP:=IF(C=INDEXC,0,1);
GJ:=AMOUNT/V/100;

1026455053.png

1026455053.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则