三红共震主图,公开通达信公式源码分享(通达信公式 主图 源码 测试图)

 2022-06-07 08:42:08    通达信指标网  

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;
VAR1:=MA(CLOSE,20);
DRAWBAND(赚钱轨道,RGB(155,50,50),VAR1,RGB(0,100,50));
IF(赚钱轨道<VAR1 OR CLOSE<赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;
拉升线:IF(赚钱轨道>VAR1,VAR1,DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(赚钱轨道<=VAR1,VAR1,DRAWNULL),COLORLIBLUE,LINETHICK2;
VAR2:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR3:=MA((CLOSE*2+HIGH)/3,5);
VAR4:=MA((OPEN*2+HIGH)/3,5);
VAR5:=MA((CLOSE+LOW*2)/3,5);
VAR6:=MA((OPEN+LOW*2)/3,5);
VAR7:=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(VAR3>=VAR4,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(VAR3>=VAR4,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(VAR3>=VAR4,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(VAR3<VAR4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;
STICKLINE(VAR3<VAR4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(VAR3<VAR4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;
STICKLINE(VAR3>=VAR4 AND CLOSE<VAR4,VAR7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;
STICKLINE(CROSS(VAR3,VAR4),CLOSE,OPEN,2.8,0),COLORYELLOW;
STICKLINE(VAR3<VAR4 AND (CROSS(CLOSE,VAR6) OR CROSS(VAR2,VAR6)),VAR7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;
STICKLINE(CROSS(VAR4,VAR3) AND CLOSE<OPEN AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;
VAR8:=REF(OPEN,1);
VAR9:=SMA(MAX(OPEN-VAR8,0),6,1)/SMA(ABS(OPEN-VAR8),6,1)*100;
VAR10:=REF(CLOSE,1);
VAR11:=SMA(MAX(CLOSE-VAR10,0),6,1)/SMA(ABS(CLOSE-VAR10),6,1)*100;
VAR12:=REF(HIGH,1);
VAR13:=SMA(MAX(HIGH-VAR12,0),6,1)/SMA(ABS(HIGH-VAR12),6,1)*100;
VAR14:=REF(LOW,1);
VAR15:=SMA(MAX(LOW-VAR14,0),6,1)/SMA(ABS(LOW-VAR14),6,1)*100;
VAR16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;
VAR17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
VAR18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR19:=EMA(VAR18,8)*10<(-26);
VAR20:=IF(VAR16 AND MA(VAR17,5)<50 AND VAR19,30,0);
VAR21:=VAR9;
VAR22:=VAR11;
VAR23:=VAR13;
VAR24:=VAR15;
VAR25:=MIN(MIN(MIN(VAR21,VAR22),VAR23),VAR24);
VAR26:=MAX(MAX(MAX(VAR21,VAR22),VAR23),VAR24);
DRAWICON(LLV(VAR25,5)<=20 OR LLV(VAR26,5)<=30 AND CROSS(VAR3,VAR4),HIGH,9);
VAR27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));
STICKLINE(VAR27,CLOSE,OPEN,0.5,0),COLOR0088FF;
DRAWTEXT(CROSS(VAR4,VAR3) AND CLOSE<赚钱轨道,HIGH,5),COLORCYAN;
VAR28:=(CLOSE+LOW+HIGH)/3;
VAR29:=ATAN(EMA(VAR28,13)-REF(EMA(VAR28,13),1))*3.1416*10;
VAR30:=EMA(CLOSE,8);
DRAWTEXT(FILTER(VAR29>1 AND EMA(VAR28,13)>REF(EMA(VAR28,8),1),10),VAR30,3),COLORWHITE;
VAR31:=REF(CLOSE,1);
VAR32:=SMA(MAX(CLOSE-VAR31,0),3,1)/SMA(ABS(CLOSE-VAR31),3,1)*100;
VAR33:=EMA(CLOSE,3);
VAR34:=EMA(CLOSE,21);
DRAWTEXT(CROSS(VAR33,VAR34),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;
VAR35:=INDEXADV;
VAR36:=INDEXDEC;
VAR37:=VAR35/(VAR35+VAR36)*100;
VAR38:=IF(VAR37>=70,VAR37,DRAWNULL);
VAR39:=IF(VAR37<70,VAR37,DRAWNULL);
DRAWTEXT_FIX(1,0,0.18,0,6);
DRAWNUMBER_FIX(1,0.07,0.18,0,CONST(VAR38)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.07,0.18,0,CONST(VAR39)),COLORGREEN;
DRAWTEXT_FIX(1,0.11,0.18,0,7);
VAR40:=HY_INDEXADV;
VAR41:=HY_INDEXDEC;
VAR42:=VAR40/(VAR40+VAR41)*100;
VAR43:=IF(VAR42>=70,VAR42,DRAWNULL);
VAR44:=IF(VAR42<70,VAR42,DRAWNULL);
DRAWTEXT_FIX(1,0.13,0.18,0,8);
DRAWNUMBER_FIX(1,0.2,0.18,0,CONST(VAR43)),COLORYELLOW;
DRAWNUMBER_FIX(1,0.2,0.18,0,CONST(VAR44)),COLORGREEN;
DRAWTEXT_FIX(1,0.24,0.18,0,7);
VAR45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
VAR46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
VAR47:=FINANCE(23)/FINANCE(10)*3.3;
VAR48:=FINANCE(19)/FINANCE(15)*0.6;
VAR49:=FINANCE(20)/FINANCE(15)*0.999;
VAR50:=VAR45+VAR46+VAR47+VAR48+VAR49;
DRAWTEXT_FIX(VAR50<1.2,0.9,0,0,9),COLORYELLOW;
DRAWTEXT_FIX(BETWEEN(VAR50,1.2,2.6),0.9,0,0,10),COLOR0099FF;

DRAWTEXT_FIX(VAR50>2.6,0.9,0,0,11),COLORLIBLUE;


  •  标签:  

原文链接:https://www.tdxzb.com/?id=347

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服