「翔博精选指标」黄金波段,公开通达信公式源码分享 主图
2022-03-06原创 编 辑:翔博软件
黄金波段,主图公式,公式没加密,留意钱袋子信号。
{公式名称: 黄金波段
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
M5:MA(CLOSE,5);
M13:MA(CLOSE,13);
M27:MA(CLOSE,27),COLORMAGENTA,LINETHICK2;
VAR1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR2:=M27/CLOSE<1.03;
VAR3:=OPEN<M27 AND CLOSE>=M27 OR CROSS(CLOSE,M27) AND VAR2;
VAR4:=EMA(CLOSE,1);
VAR5:=EMA(CLOSE,5);
VAR6:=EMA(CLOSE,10);
VAR7:=EMA(CLOSE,20);
VAR8:=EMA(CLOSE,30);
VAR9:=EMA(CLOSE,60);
VAR10:=IF(VAR4-VAR5>=0,1,0);
VAR11:=IF(VAR4-VAR6>=0,1,0);
VAR12:=IF(VAR4-VAR7>=0,1,0);
VAR13:=IF(VAR4-VAR8>=0,1,0);
VAR14:=IF(VAR4-VAR9>=0,1,0);
VAR15:=VAR10+VAR11+VAR12+VAR13+VAR14;
VAR16:=VAR4;
VAR17:=VAR9;
VAR18:=REF(VAR15,1)<=4 AND VAR15=5 AND VAR16>=VAR17;
VAR19:=VAR3;
VAR20:=(HIGH+LOW+CLOSE)/3;
VAR21:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VAR22:=IF(CAPITAL=0,VAR21*(VAR20-MIN(CLOSE,OPEN)),VAR21*IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW));
VAR23:=IF(CAPITAL=0,VAR21*(MIN(OPEN,CLOSE)-LOW),VAR21*IF(HIGH=LOW,1,VAR20-MIN(CLOSE,OPEN)));
VAR24:=IF(CAPITAL=0,VAR21*(HIGH-MAX(OPEN,CLOSE)),VAR21*IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)));
VAR25:=IF(CAPITAL=0,VAR21*(MAX(CLOSE,OPEN)-VAR20),VAR21*IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-VAR20));
VAR26:=(VAR22+VAR23-(VAR24+VAR25))/IF(CAPITAL=0,1000000,10000);
VAR27:=MA(VAR26,5)*20;
VAR28:=SMA(VAR27,3,1);
VAR29:=SMA(VAR28,3,1);
VAR30:=EMA(VAR29,5);
VAR31:=VAR28>VAR29 AND VAR29>VAR30;
VAR32:=VAR26>0 AND MA(VOL,5)>MA(MA(VOL,5),5) AND VAR31;
VAR33:=VAR1>=3 AND VAR3 AND VAR32 AND VAR18 AND M13>=REF(M13,1) AND CLOSE!=OPEN;
DRAWICON(VAR33,LOW-0.03,9);
VAR34:=(HHV(HIGH,30)/LLV(LOW,30)-1)*100;
VAR35:=HHV(HIGH,30);
VAR36:=VOL/CAPITAL*100;
VAR37:=FILTER(CROSS(CLOSE,REF(VAR35,1)),8) AND CLOSE>=MA(CLOSE,27) AND VAR1>4 AND CLOSE!=OPEN AND REF(VAR34,1)<45;
VAR38:=VAR37;
VAR39:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR40:=EMA(VAR39,9);
VAR41:=2*(VAR39-VAR40);
VAR42:=CROSS(VAR39,VAR40);
VAR43:=VAR42 AND VAR39<0;
VAR44:=BARSLAST(VAR43);
VAR45:=COUNT(VAR42,VAR44);
VAR46:=REF(VAR40,2)-REF(VAR39,2)>0.025;
VAR47:=VAR39>0 AND VAR40>0 AND VAR45<2 AND VAR42 AND VAR46 AND CROSS(CLOSE,HHV(CLOSE,10)) AND CLOSE>OPEN;
STICKLINE(VAR38,CLOSE,OPEN,4,1),COLORYELLOW;
DRAWTEXT(VAR38,LOW-0.1,3),COLORYELLOW,LINETHICK2;
VAR48:=CLOSE>=OPEN;
STICKLINE(VAR48,CLOSE,HIGH,0,0),COLOR0726CA;
STICKLINE(VAR48,CLOSE,OPEN,3,0),COLOR070084;
STICKLINE(VAR48,CLOSE,OPEN,2.8,0),COLOR0000A3;
STICKLINE(VAR48,CLOSE,OPEN,2.5,0),COLOR0000B7;
STICKLINE(VAR48,CLOSE,OPEN,2.2,0),COLOR0000CD;
STICKLINE(VAR48,CLOSE,OPEN,2,0),COLOR0000E9;
STICKLINE(VAR48,CLOSE,OPEN,1.5,0),COLOR0754E9;
STICKLINE(VAR48,CLOSE,OPEN,1,0),COLOR076EF3;
STICKLINE(VAR48,OPEN,LOW,0,0),COLOR0726CA;
VAR49:=VAR33 AND VAR1<9.9;
STICKLINE(VAR49,CLOSE,HIGH,0,0),COLORFF33FF;
STICKLINE(VAR49,CLOSE,OPEN,3,0),COLOR0093FF;
STICKLINE(VAR49,CLOSE,OPEN,2.8,0),COLOR0093FF;
STICKLINE(VAR49,CLOSE,OPEN,2.5,0),COLOR0064FF;
STICKLINE(VAR49,CLOSE,OPEN,2.2,0),COLOR0093FF;
STICKLINE(VAR49,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(VAR49,CLOSE,OPEN,1.5,0),COLOR00C2FF;
STICKLINE(VAR49,CLOSE,OPEN,1,0),COLORYELLOW;
STICKLINE(VAR49,CLOSE,HIGH,0,0),COLORFF33FF;
VAR50:=CLOSE<OPEN;
STICKLINE(VAR50,OPEN,HIGH,0,0),COLORFFDD00;
STICKLINE(VAR50,CLOSE,OPEN,3,0),COLORFF1100;
STICKLINE(VAR50,CLOSE,OPEN,2.8,0),COLORFF3300;
STICKLINE(VAR50,CLOSE,OPEN,2.6,0),COLORFF5500;
STICKLINE(VAR50,CLOSE,OPEN,2.4,0),COLORFF7700;
STICKLINE(VAR50,CLOSE,OPEN,2,0),COLORFF9900;
STICKLINE(VAR50,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(VAR50,CLOSE,OPEN,1,0),COLORFFDD00;
STICKLINE(VAR50,CLOSE,LOW,0,0),COLORFFDD00;
VAR51:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=9.92 AND CLOSE=HIGH;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,3,0),COLOR333333;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,2.8,0),COLOR555555;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,2.6,0),COLOR777777;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,2.3,0),COLOR999999;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,2,0),COLORBBBBBB;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(VAR51,OPEN,(OPEN+CLOSE)/2,1,0),COLORWHITE;
VAR52:=VAR33 AND VAR51;
STICKLINE(VAR52,CLOSE,HIGH,0,0),COLORFF33FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,3,0),COLOR0093FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,2.7,0),COLOR0093FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,2.5,0),COLOR0064FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,2.2,0),COLOR0093FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,2,0),COLORYELLOW;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,1.5,0),COLOR00C2FF;
STICKLINE(VAR52,CLOSE,(OPEN+CLOSE)/2,1,0),COLORYELLOW;
STICKLINE(VAR52,OPEN,LOW,0,0),COLORFF33FF;
VAR53:=VAR33 AND VAR51;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,3,0),COLOR333333;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,2.7,0),COLOR555555;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,2.5,0),COLOR777777;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR999999;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,2,0),COLORBBBBBB;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(VAR53,OPEN,(OPEN+CLOSE)/2,1,0),COLORWHITE;