当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:三红共震主图,公开通达信公式源码分享(通达信公式 主图 源码 测试图)
软件名称:[B]三红共震主图,公开通达信公式源码分享(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2020-08-08 00:15:20
软件简介:
{公式名称: 三红共震主图
公式描述:
公式类型: 技术指标公式-均线型
画线方法: 主图叠加
公式源码:}
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);{公式指标网 WWW.70822.com 整理}
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;
[url=http://www.70822.com/soft/sort013/sort05/down-149742.html]三红共震主图,公开通达信公式源码分享(通达信公式 主图 源码 测试图)[/url]