首页 > 编程语言 >通达信洞察主力主图指标公式源码

通达信洞察主力主图指标公式源码

时间:2024-03-10 11:23:50浏览次数:34  
标签:STICKLINE FIX DRAWTEXT 主图 通达信 源码 CLOSE 100 OPEN

{ 通达信洞察主力主图指标公式源码 }

DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.5,0,0,1),COLORCYAN;
赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
X_1:=MA(CLOSE,20);
DRAWBAND(赚钱轨道,RGB(155,50,50),X_1,RGB(0,100,50));
IF(赚钱轨道<x_1 or="" close<赚钱轨道,赚钱轨道,drawnull),colorblue,linethick2;<br=""> 拉升线:IF(赚钱轨道>X_1,X_1,DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(赚钱轨道<=X_1,X_1,DRAWNULL),COLORLIBLUE,LINETHICK2;
X_2:=(CLOSE+HIGH+LOW+OPEN)/4;
X_3:=MA((CLOSE*2+HIGH)/3,5);
X_4:=MA((OPEN*2+HIGH)/3,5);
X_5:=MA((CLOSE+LOW*2)/3,5);
X_6:=MA((OPEN+LOW*2)/3,5);
X_7:=OPEN+(CLOSE-OPEN)/2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(dmi.pdi>DMI.mdi,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3>=X_4,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(X_3>=X_4,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(X_3>=X_4,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3<x_4 and="" dmi.pdi<dmi.mdi,close,open,2.9,0),color999900;<br=""> STICKLINE(X_3<x_4 and="" dmi.pdi<dmi.mdi,close,open,1.5,0),colorcccc00;<br=""> STICKLINE(X_3<x_4 and="" dmi.pdi<dmi.mdi,close,open,0.1,0),colorffff66;<br=""> STICKLINE(X_3>=X_4 AND CLOSE<x_4,x_7,max(open,close),2.8,0),colormagenta;
STICKLINE(crOSS(X_3,X_4),CLOSE,OPEN,2.8,0),COLORYELLOW;
STICKLINE(X_3<x_4 and="" (cross(close,x_6)="" or="" cross(x_2,x_6)),x_7,min(close,open),2.8,0),colorwhite;<br=""> STICKLINE(CROSS(X_4,X_3) AND CLOSE X_8:=REF(OPEN,1);
X_9:=SMA(MAX(OPEN-X_8,0),6,1)/SMA(Abs(OPEN-X_8),6,1)*100;
X_10:=REF(CLOSE,1);
X_11:=SMA(MAX(CLOSE-X_10,0),6,1)/SMA(ABS(CLOSE-X_10),6,1)*100;
X_12:=REF(HIGH,1);
X_13:=SMA(MAX(HIGH-X_12,0),6,1)/SMA(ABS(HIGH-X_12),6,1)*100;
X_14:=REF(LOW,1);
X_15:=SMA(MAX(LOW-X_14,0),6,1)/SMA(ABS(LOW-X_14),6,1)*100;
X_16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>vol/CAPITAL*0.001;
X_17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_19:=EMA(X_18,8)*10<(-26);
X_20:=IF(X_16 AND MA(X_17,5)<50 AND X_19,30,0);
X_21:=X_9;
X_22:=X_11;
X_23:=X_13;
X_24:=X_15;
X_25:=MIN(MIN(MIN(X_21,X_22),X_23),X_24);
X_26:=MAX(MAX(MAX(X_21,X_22),X_23),X_24);
DRAWICON(LLV(X_25,5)<=20 OR LLV(X_26,5)<=30 AND CROSS(X_3,X_4),HIGH,9);
X_27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));
STICKLINE(X_27,CLOSE,OPEN,0.5,0),COLOR0088FF;
DRAWTEXT(CROSS(X_4,X_3) AND CLOSE<赚钱轨道,HIGH,5),COLORCYAN;
X_28:=(CLOSE+LOW+HIGH)/3;
X_29:=ATAN(EMA(X_28,13)-REF(EMA(X_28,13),1))*3.1416*10;
X_30:=EMA(CLOSE,8);
DRAWTEXT(FILTER(X_29>1 AND EMA(X_28,13)>REF(EMA(X_28,8),1),10),X_30,3),COLORWHITE;
X_31:=REF(CLOSE,1);
X_32:=SMA(MAX(CLOSE-X_31,0),3,1)/SMA(ABS(CLOSE-X_31),3,1)*100;
X_33:=EMA(CLOSE,3);
X_34:=EMA(CLOSE,21);
DRAWTEXT(CROSS(X_33,X_34),LOW*0.99,4),COLORA6E500;
DRAWTEXT_FIX(1,0,0,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,ZSBLOCK),COLORYELLOW;
X_35:=INDEXADV;
X_36:=INDEXDEC;
X_37:=X_35/(X_35+X_36)*100;
X_38:=IF(X_37>=70,X_37,DRAWNULL);
X_39:=IF(X_37<70,X_37,DRAWNULL);
DRAWTEXT_FIX(1,0,0.18,0,6);
DRAWNUMBER_FIX(1,0.07,0.18,0,CONST(X_38)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.07,0.18,0,CONST(X_39)),COLORGREEN;
DRAWTEXT_FIX(1,0.11,0.18,0,7);
X_40:=HY_INDEXADV;
X_41:=HY_INDEXDEC;
X_42:=X_40/(X_40+X_41)*100;
X_43:=IF(X_42>=70,X_42,DRAWNULL);
X_44:=IF(X_42<70,X_42,DRAWNULL);
DRAWTEXT_FIX(1,0.13,0.18,0,8);
DRAWNUMBER_FIX(1,0.2,0.18,0,CONST(X_43)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.2,0.18,0,CONST(X_44)),COLORGREEN;
DRAWTEXT_FIX(1,0.24,0.18,0,7);
X_45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X_46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
X_47:=FINANCE(23)/FINANCE(10)*3.3;
X_48:=FINANCE(19)/FINANCE(15)*0.6;
X_49:=FINANCE(20)/FINANCE(15)*0.999;
X_50:=X_45+X_46+X_47+X_48+X_49;
DRAWTEXT_FIX(X_50<1.2,0.9,0,0,9),COLORYELLOW;
DRAWTEXT_FIX(BETWEEN(X_50,1.2,2.6),0.9,0,0,10),COLOR0099FF;
DRAWTEXT_FIX(X_50>2.6,0.9,0,0,11),COLORLIBLUE;

 

标签:STICKLINE,FIX,DRAWTEXT,主图,通达信,源码,CLOSE,100,OPEN
From: https://www.cnblogs.com/zhibiao/p/18063878

相关文章

  • 通达信回调选升级选股指标公式源码
    {通达信回调选升级选股指标公式源码}T:=IF(NAMELIKE('ST'),0,1)ANDIF(NAMELIKE('*'),0,1);T2:=NOT(CODELIKE('688'));T3:=NOT(CODELIKE('3'));T5:=NOT(CODELIKE('4'));T6:=NOT(CODELIKE('8'));T7:=NOT(INBLOCK('......
  • 通达信牛股强势异动指标公式源码
    {通达信牛股强势异动指标公式源码}VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,60);VAR4:=MA(CLOSE,120);VAR7:=EMA(HHV(HIGH,1),8);VAR8:=EMA(CLOSE,8);VAR9:=VAR8<ref(var8,1)and=""close<var8;<br="">VAR10:=IF(VAR7<ref(var7,......
  • 通达信波浪风险系数指标公式源码
    {通达信波浪风险系数指标公式源码}VAR13:=IF(YEAR>=2018ANDMONTH>=11ANDDAY>=1,0,1);AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;CC:=EMA(AA,2);DD:=EMA(BB,5);VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;VAR......
  • 通达信中波01号指标公式源码副图
    {通达信中波01号指标公式源码副图}X_1:=(MA(AMOUNT,5)/MA(vol,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);X_2:=MA((LLV(LOW,28)-CLOSE)/(HHV(HIGH,28)-LLV(LOW,28))*100,5);X_3:=IF(NAMELIKE(1),0,1)ANDIF(NAMELIKE(2),0,1);X_4:=(CLOSE-MA(......
  • 通达信买入翻倍指标公式源码副图
    {通达信买入翻倍指标公式源码副图}{指标介绍:当多空线上穿0轴以后并且沿着45度向上运行时可视为有效突破,此时的信号可视为有效信号。信号出现在平台盘整期间,或者是小多头回调之后向上拉升之际,此时的信号最为有效,其它时间的信号要仔细辨别,下跌趋势中信号或者是高位钝化中的信号......
  • 通达信九转主图指标公式源码主图
    {通达信九转主图指标公式源码主图}买线:=EMA(C,1);卖线:=EMA(SLOPE(C,10)*10+C,20);STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR442233;STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR224056;DRAWKL......
  • 通达信平台支撑线主图指标公式源码
    {通达信平台支撑线主图指标公式源码}N日平台:=20;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;MA5:MA(CLOSE,5),COLORD......
  • 通达信突破追涨副图指标公式
    {通达信突破追涨副图指标公式}T1:=BARSLAST(EMA(CLOSE,5)<ref(ema(close,5),1))=1;<br="">C1:=MAX(C,O);GAO1:=MAX(REF(C1,1),REF(C1,2));GAO2:=MAX(GAO1,REF(C1,3));GAO3:=MAX(GAO2,REF(C1,4));GAO4:=MAX(GAO3,REF(C1,5));GAO5:=MAX(GAO4,REF(C1,6));GAO6......
  • 通达信三线合一主图,抓住老鼠仓源码
    {通达信三线合一主图,抓住老鼠仓源码}源码参数数量:2参数1:N,最小:0,最大:1000,缺省:6参数2:M,最小:0,最大:1000,缺省:3公式类型:技术指标公式-其他类型画线方法:主图叠加公式版本:0显示小数:缺省位数坐标线位置:自动额外Y轴分界:无参......
  • 通达信牛股平台突破,副图指标公式
    {通达信牛股平台突破,副图指标公式}MA10A:=MA(CLOSE,10);MA54A:=MA(CLOSE,54);HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BArslAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(......