通达信【八卦乾坤双轨】主图指标 趋势追涨选股工具 源码

DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);



赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;

ZYG1:=MA(CLOSE,20);

DRAWBAND(赚钱轨道,RGB(155,50,50),ZYG1,RGB(0,100,50));

IF(赚钱轨道< ZYG1 OR CLOSE< 赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;

拉升线:IF(赚钱轨道>ZYG1,ZYG1,DRAWNULL),COLORMAGENTA,LINETHICK3;

下跌线:IF(赚钱轨道<=ZYG1,ZYG1,DRAWNULL),COLORLIBLUE,LINETHICK2;

ZYG2:=(CLOSE+HIGH+LOW+OPEN)/4;

ZYG3:=MA((CLOSE*2+HIGH)/3,5);

ZYG4:=MA((OPEN*2+HIGH)/3,5);

ZYG5:=MA((CLOSE+LOW*2)/3,5);

ZYG6:=MA((OPEN+LOW*2)/3,5);

ZYG7:=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(ZYG3>=ZYG4,CLOSE,OPEN,2.9,0),COLOR000099;

STICKLINE(ZYG3>=ZYG4,CLOSE,OPEN,1.5,0),COLOR0000CC;

STICKLINE(ZYG3>=ZYG4,CLOSE,OPEN,0.1,0),COLOR9966FF;

STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;

STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;

STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;

STICKLINE(ZYG3>=ZYG4 AND CLOSE< ZYG4,ZYG7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;

STICKLINE(CROSS(ZYG3,ZYG4),CLOSE,OPEN,2.8,0),COLORYELLOW;

STICKLINE(ZYG3< ZYG4 AND (CROSS(CLOSE,ZYG6) OR CROSS(ZYG2,ZYG6)),ZYG7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;

STICKLINE(CROSS(ZYG4,ZYG3) AND CLOSE< OPEN AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;

ZYG8:=REF(OPEN,1);

ZYG9:=SMA(MAX(OPEN-ZYG8,0),6,1)/SMA(ABS(OPEN-ZYG8),6,1)*100;

ZYG10:=REF(CLOSE,1);

ZYG11:=SMA(MAX(CLOSE-ZYG10,0),6,1)/SMA(ABS(CLOSE-ZYG10),6,1)*100;

ZYG12:=REF(HIGH,1);

ZYG13:=SMA(MAX(HIGH-ZYG12,0),6,1)/SMA(ABS(HIGH-ZYG12),6,1)*100;

ZYG14:=REF(LOW,1);

ZYG15:=SMA(MAX(LOW-ZYG14,0),6,1)/SMA(ABS(LOW-ZYG14),6,1)*100;

ZYG16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;

ZYG17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;

ZYG18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

ZYG19:=EMA(ZYG18,8)*10< (-26);

ZYG20:=IF(ZYG16 AND MA(ZYG17,5)< 50 AND ZYG19,30,0);

ZYG21:=ZYG9;

ZYG22:=ZYG11;

ZYG23:=ZYG13;

ZYG24:=ZYG15;

ZYG25:=MIN(MIN(MIN(ZYG21,ZYG22),ZYG23),ZYG24);

ZYG26:=MAX(MAX(MAX(ZYG21,ZYG22),ZYG23),ZYG24);

ZYG27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));

ZYG28:=(CLOSE+LOW+HIGH)/3;

ZYG29:=ATAN(EMA(ZYG28,13)-REF(EMA(ZYG28,13),1))*3.1416*10;

ZYG30:=EMA(CLOSE,8);

ZYG31:=REF(CLOSE,1);

ZYG32:=SMA(MAX(CLOSE-ZYG31,0),3,1)/SMA(ABS(CLOSE-ZYG31),3,1)*100;

ZYG33:=EMA(CLOSE,3);

ZYG34:=EMA(CLOSE,21);

ZYG35:=INDEXADV;

ZYG36:=INDEXDEC;

ZYG37:=ZYG35/(ZYG35+ZYG36)*100;

ZYG38:=IF(ZYG37>=70,ZYG37,DRAWNULL);

ZYG39:=IF(ZYG37< 70,ZYG37,DRAWNULL);

ZYG40:=HY_INDEXADV;

ZYG41:=HY_INDEXDEC;

ZYG42:=ZYG40/(ZYG40+ZYG41)*100;

ZYG43:=IF(ZYG42>=70,ZYG42,DRAWNULL);

ZYG44:=IF(ZYG42< 70,ZYG42,DRAWNULL);

ZYG45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;

ZYG46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;

ZYG47:=FINANCE(23)/FINANCE(10)*3.3;

ZYG48:=FINANCE(19)/FINANCE(15)*0.6;

ZYG49:=FINANCE(20)/FINANCE(15)*0.999;

ZYG50:=ZYG45+ZYG46+ZYG47+ZYG48+ZYG49;


未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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