黄金梯 区间高点 通达信主图指标 源码 贴图
2018-12-21 10:10:00来源:本站整理浏览:662
黄金梯 区间高点 通达信主图指标 源码 贴图
{公式名称: 黄金梯 主图
公式描述:
无参数
公式类型: 技术指标公式-龙系
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
三一:HIGH-(HIGH-LOW)*0.333,NODRAW;
二一:HIGH-(HIGH-LOW)*0.5,NODRAW;
三二:HIGH-(HIGH-LOW)*0.666,NODRAW;
实三一:IF(CLOSE>OPEN,CLOSE-(CLOSE-OPEN)/3,OPEN-(OPEN-CLOSE)/3),NODRAW,COLORGREEN;
实体腰线:OPEN+(CLOSE-OPEN)*0.5,NODRAW;
实三二:IF(CLOSE>OPEN,OPEN+(CLOSE-OPEN)/3,CLOSE+(OPEN-CLOSE)/3),NODRAW,COLORGREEN;
VAR1:=MA(CLOSE,3);
VAR2:=REFX(VAR1,3);
高于实顶:CLOSE<VAR2,NODRAW;
VAR3:=OPEN<REFX(CLOSE,1) AND OPEN<REFX(CLOSE,2) AND OPEN<REFX(CLOSE,3);
VAR4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>2;
VAR5:=CLOSE=OPEN AND CLOSE=HIGH AND CLOSE=LOW;
VAR6:=高于实顶 AND VAR3 AND VAR4 AND VAR5=0;
VAR7:=1.9;
VAR8:=VOL>=REF(VOL,1)*VAR7 AND IF(CLOSE<OPEN,CLOSE>REF(CLOSE,1),1);
DRAWICON(VAR8,LOW*0.98,39),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
DRAWTEXT_FIX(1,0.05,0.06,0,FGBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.22,0.004,0,139),COLORYELLOW;
TESTSKIP(DATE>1191130);
VAR9:=CLOSE/REF(CLOSE,1)>1.097;
年涨停:COUNT(VAR9,250),NODRAW,COLORLIMAGENTA;
VAR10:=MA(CLOSE,5);
MA5角度:ATAN((VAR10/REF(VAR10,1)-1)*100)*180/3.1416,NODRAW,COLORYELLOW;
STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;
STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR11:=REF(CLOSE,1);
VAR12:=IF(CLOSE>=1,10000,100000);
VAR13:=1.1*VAR11-49/VAR12;
VAR14:=1.05*VAR11-49/VAR12;
VAR15:=0.9*VAR11+51/VAR12;
VAR16:=0.95*VAR11+51/VAR12;
VAR17:=NAMELIKE(2) OR NAMELIKE(3);
VAR18:=IF(VAR17,CLOSE>=VAR14,CLOSE>=VAR13);
VAR19:=IF(VAR17,CLOSE<=VAR16,CLOSE<=VAR15);
VAR20:=IF(VAR17,HIGH>=VAR14,HIGH>=VAR13);
VAR21:=IF(VAR17,LOW<=VAR16,LOW<=VAR15);
STICKLINE(VAR20,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;
STICKLINE(VAR21,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;
VAR22:=CLOSE>OPEN AND (CLOSE>=VAR14 OR CLOSE>1.05*OPEN-51/VAR12) OR (CLOSE>1000 AND CLOSE>VAR11*1.024);
STICKLINE(VAR22,OPEN,CLOSE,1,0),COLOR0000BB;
VAR23:=CLOSE<OPEN AND (CLOSE<=VAR16 OR CLOSE<0.95*OPEN+49/VAR12) OR (CLOSE>1000 AND CLOSE<VAR11*0.976);
STICKLINE(VAR23,OPEN,CLOSE,1,0),COLORLIGREEN;
STICKLINE(VAR18,OPEN,CLOSE,1,0),COLORMAGENTA;
STICKLINE(VAR19,OPEN,CLOSE,1,0),COLORLICYAN;
STICKLINE(VAR6,OPEN*1.01,CLOSE*0.99,0,0),COLORWHITE;
VAR24:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR24,OPEN,CLOSE,1.5,0),COLORRED;
VAR25:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
STICKLINE(VAR25,OPEN,CLOSE,1.5,0),COLORYELLOW;
VAR26:=PERIOD=5 AND NAMELIKE(7) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);
STICKLINE(VAR26,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;
STICKLINE(VAR22 OR VAR23 OR VAR18 OR VAR19 AND BETWEEN(CLOSE,1,500),LOW+(HIGH-LOW)/2,LOW+(HIGH-LOW)/2,1,0),COLORYELLOW;
STICKLINE(VAR22 OR VAR23 OR VAR18 OR VAR19 AND BETWEEN(CLOSE,1,500),实体腰线,实体腰线,1,0),COLORBLUE;
区间高点:REF(HHV(HIGH,2),1),NODRAW;
区间低点:REF(LLV(LOW,2),1),NODRAW;
区间半分位:(区间高点+区间低点)/2,NODRAW;
STICKLINE(区间高点 AND ISLASTBAR,区间高点,区间高点,15,(-1)),COLORRED;
STICKLINE(区间低点 AND ISLASTBAR,区间低点,区间低点,15,(-1)),COLORRED;
STICKLINE(区间半分位 AND ISLASTBAR,区间半分位,区间半分位,15,(-1)),COLORYELLOW;
VAR27:=1.3;
VAR28:=1;
VAR29:=0;
VAR30:=MA(CLOSE,5);
VAR31:=MA(CLOSE,10);
VAR32:=MA(CLOSE,20);
VAR33:=VAR30>REF(VAR30,1) AND VAR31<REF(VAR31,1) AND VAR32<REF(VAR32,1);
VAR34:=REF(VOL,1);
VAR35:=REF(VOL,2);
VAR36:=REF(VOL,3);
VAR37:=REF(CLOSE,1);
VAR38:=REF(CLOSE,2);
VAR39:=REF(CLOSE,3);
VAR40:=REF(CLOSE,4);
VAR41:=REF(OPEN,1);
VAR42:=REF(OPEN,2);
VAR43:=REF(OPEN,3);
VAR44:=REF(OPEN,4);
VAR45:=CLOSE>=VAR39 AND VAR37>=VAR39 AND VAR38>=VAR39;
VAR46:=LOW>VAR43 AND REF(LOW,1)>VAR43 AND REF(LOW,2)>VAR43;
VAR47:=AMOUNT/VOL/100;
VAR48:=REF(VAR47,1);
VAR49:=REF(VAR47,2);
VAR50:=CLOSE>=OPEN OR (CLOSE<OPEN AND VAR47>VAR37);
VAR51:=COUNT(VAR50,3)>=2;
VAR52:=VAR39>VAR43;
VAR53:=VAR47>=VAR48 OR CLOSE>VAR37 AND (VAR48>=VAR49 OR VAR37>=VAR38);
VAR54:=(CLOSE+VAR37+VAR38)/3>VAR39;
VAR55:=VOL>VAR34 AND VAR34>VAR35;
VAR56:=VOL<=VAR34 AND VAR34<=VAR35;
VAR57:=(VOL+VAR34+VAR35)/3<=VAR36 AND NOT(VAR55);
VAR58:=CLOSE/VOL;
VAR59:=VAR58>=REF(VAR58,1) AND REF(VAR58,1)>=REF(VAR58,2);
VAR60:=(CLOSE+VAR37+VAR38)/3/VAR39;
VAR61:=(VOL+VAR34+VAR35)/3/VAR36;
VAR62:=VAR27*VAR60/VAR61>1;
VAR63:=VAR43>VAR40 AND VAR40>VAR44;
VAR64:=VAR52 AND VAR53 AND VAR56 AND VAR45 AND VAR46 AND VAR63;
VAR65:=BACKSET(VAR64,5);
VAR66:=FILTER(VAR65,4);
VAR67:=VAR52 AND VAR53 AND VAR56 AND VAR45 AND VAR46;
VAR68:=BACKSET(VAR67,4);
VAR69:=FILTER(VAR68,3);
VAR70:=VAR67 AND REF(VAR67,1);
VAR71:=BACKSET(VAR70,4);
VAR72:=FILTER(VAR71,3);
VAR73:=VAR67 AND REF(VAR67,2);
VAR74:=BACKSET(VAR73,4);
VAR75:=FILTER(VAR74,3);
VAR76:=VAR67 AND REF(VAR67,3);
VAR77:=BACKSET(VAR76,4);
VAR78:=FILTER(VAR77,3);
VAR79:=VAR52 AND VAR53 AND VAR57 AND NOT(VAR55) AND VAR45 AND VAR46 AND VAR63 AND NOT(VAR67) AND NOT(VAR64);
VAR80:=BACKSET(VAR79,5);
VAR81:=FILTER(VAR80,4);
VAR82:=VAR52 AND VAR53 AND VAR57 AND NOT(VAR55) AND VAR45 AND VAR46 AND NOT(VAR67) AND NOT(VAR64);
VAR83:=BACKSET(VAR82,4);
VAR84:=FILTER(VAR83,3);
VAR85:=VAR82 AND REF(VAR82,1);
VAR86:=BACKSET(VAR85,4);
VAR87:=FILTER(VAR86,3);
VAR88:=VAR82 AND REF(VAR82,2);
VAR89:=BACKSET(VAR88,4);
VAR90:=FILTER(VAR89,3);
VAR91:=VAR82 AND REF(VAR82,3);
VAR92:=BACKSET(VAR91,4);
VAR93:=FILTER(VAR92,3);
VAR94:=VAR52 AND VAR54 AND VAR56 AND VAR45 AND VAR46 AND VAR63 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR64) AND NOT(VAR79);
VAR95:=BACKSET(VAR94,5);
VAR96:=FILTER(VAR95,4);
VAR97:=VAR52 AND VAR54 AND VAR56 AND VAR45 AND VAR46 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR64) AND NOT(VAR79);
VAR98:=BACKSET(VAR97,4);
VAR99:=FILTER(VAR98,3);
VAR100:=VAR97 AND REF(VAR97,1);
VAR101:=BACKSET(VAR100,4);
VAR102:=FILTER(VAR101,3);
VAR103:=VAR97 AND REF(VAR97,2);
VAR104:=BACKSET(VAR103,4);
VAR105:=FILTER(VAR104,3);
VAR106:=VAR97 AND REF(VAR97,3);
VAR107:=BACKSET(VAR106,4);
VAR108:=FILTER(VAR107,3);
VAR109:=VAR52 AND VAR54 AND VAR57 AND VAR45 AND VAR46 AND VAR63 AND NOT(VAR67) AND NOT(VAR64) AND NOT(VAR82) AND NOT(VAR79) AND NOT(VAR97) AND NOT(VAR94);
VAR110:=BACKSET(VAR109,5);
VAR111:=FILTER(VAR110,4);
VAR112:=VAR52 AND VAR54 AND VAR57 AND VAR45 AND VAR46 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR97) AND NOT(VAR64) AND NOT(VAR79) AND NOT(VAR94);
VAR113:=BACKSET(VAR112,4);
VAR114:=FILTER(VAR113,3);
VAR115:=VAR112 AND REF(VAR112,1);
VAR116:=BACKSET(VAR115,4);
VAR117:=FILTER(VAR116,3);
VAR118:=VAR112 AND REF(VAR112,2);
VAR119:=BACKSET(VAR118,4);
VAR120:=FILTER(VAR119,3);
VAR121:=VAR112 AND REF(VAR112,3);
VAR122:=BACKSET(VAR121,4);
VAR123:=FILTER(VAR122,3);
VAR124:=VAR52 AND VAR54 AND VAR62 AND VAR45 AND VAR46 AND VAR63 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR97) AND NOT(VAR112) AND NOT(VAR64) AND NOT(VAR79) AND NOT(VAR94) AND NOT(VAR109);
VAR125:=BACKSET(VAR124,5);
VAR126:=FILTER(VAR125,4);
VAR127:=VAR52 AND VAR54 AND VAR62 AND VAR45 AND VAR46 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR97) AND NOT(VAR112) AND NOT(VAR64) AND NOT(VAR79) AND NOT(VAR94) AND NOT(VAR109);
VAR128:=BACKSET(VAR127,4);
VAR129:=FILTER(VAR128,3);
VAR130:=VAR127 AND REF(VAR127,1);
VAR131:=BACKSET(VAR130,4);
VAR132:=FILTER(VAR131,3);
VAR133:=VAR127 AND REF(VAR127,2);
VAR134:=BACKSET(VAR133,4);
VAR135:=FILTER(VAR134,3);
VAR136:=VAR127 AND REF(VAR127,3);
VAR137:=BACKSET(VAR136,4);
VAR138:=FILTER(VAR137,3);
VAR139:=VAR52 AND VAR54 AND VAR59 AND VAR45 AND VAR46 AND VAR63 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR97) AND NOT(VAR112) AND NOT(VAR127) AND NOT(VAR64) AND NOT(VAR79) AND NOT(VAR94) AND NOT(VAR109) AND NOT(VAR124);
VAR140:=BACKSET(VAR139,5);
VAR141:=FILTER(VAR140,4);
VAR142:=VAR52 AND VAR54 AND VAR59 AND VAR45 AND VAR46 AND NOT(VAR67) AND NOT(VAR82) AND NOT(VAR97) AND NOT(VAR112) AND NOT(VAR127) AND NOT(VAR64) AND NOT(VAR79) AND NOT(VAR94) AND NOT(VAR109) AND NOT(VAR124);
VAR143:=BACKSET(VAR142,4);
VAR144:=FILTER(VAR143,3);
VAR145:=VAR142 AND REF(VAR142,1);
VAR146:=BACKSET(VAR145,4);
VAR147:=FILTER(VAR146,3);
VAR148:=VAR142 AND REF(VAR142,2);
VAR149:=BACKSET(VAR148,4);
VAR150:=FILTER(VAR149,3);
VAR151:=VAR142 AND REF(VAR142,3);
VAR152:=BACKSET(VAR151,4);
VAR153:=FILTER(VAR152,3);
VAR154:=VAR69 AND NOT(REF(VAR69,4)) OR (VAR72 AND NOT(REF(VAR72,4))) OR (VAR75 AND NOT(REF(VAR75,4))) OR (VAR78 AND NOT(REF(VAR78,4)));
VAR155:=VAR84 AND NOT(REF(VAR84,4)) OR (VAR87 AND NOT(REF(VAR87,4))) OR (VAR90 AND NOT(REF(VAR90,4))) OR (VAR93 AND NOT(REF(VAR93,4)));
VAR156:=VAR99 AND NOT(REF(VAR99,4)) OR (VAR102 AND NOT(REF(VAR102,4))) OR (VAR105 AND NOT(REF(VAR105,4))) OR (VAR108 AND NOT(REF(VAR108,4)));
VAR157:=VAR114 AND NOT(REF(VAR114,4)) OR (VAR117 AND NOT(REF(VAR117,4))) OR (VAR120 AND NOT(REF(VAR120,4))) OR (VAR123 AND NOT(REF(VAR123,4)));
VAR158:=VAR129 AND NOT(REF(VAR129,4)) OR (VAR132 AND NOT(REF(VAR132,4))) OR (VAR135 AND NOT(REF(VAR135,4))) OR (VAR138 AND NOT(REF(VAR138,4)));
VAR159:=VAR144 AND NOT(REF(VAR144,4)) OR (VAR147 AND NOT(REF(VAR147,4))) OR (VAR150 AND NOT(REF(VAR150,4))) OR (VAR153 AND NOT(REF(VAR153,4)));
VAR160:=VAR154 OR VAR155 OR VAR156 OR VAR157 OR VAR158 OR VAR159;
STICKLINE(VAR160 AND NOT(REF(VAR160,4)),OPEN,CLOSE,1,0),COLOR0099FF;
VAR161:=SUMBARS(VAR160,1);
STICKLINE(VAR161 AND VAR28=1,REF(CLOSE,VAR161-1),REF(CLOSE,VAR161-1),10,0),COLORYELLOW;
VAR162:=VAR66 AND NOT(REF(VAR66,5));
VAR163:=VAR81 AND NOT(REF(VAR81,5));
VAR164:=VAR96 AND NOT(REF(VAR96,5));
VAR165:=VAR111 AND NOT(REF(VAR111,5));
VAR166:=VAR126 AND NOT(REF(VAR126,5));
VAR167:=VAR141 AND NOT(REF(VAR141,5));
VAR168:=VAR162 OR VAR163 OR VAR164 OR VAR165 OR VAR166 OR VAR167;
STICKLINE(VAR168 AND NOT(REF(VAR168,5)),OPEN,CLOSE,1,0),COLORRED;
VAR169:=SUMBARS(VAR168,1);
STICKLINE(VAR169 AND VAR28=1,REF(CLOSE,VAR169-1),REF(CLOSE,VAR169-1),10,0),COLORWHITE;
VAR170:=VAR67 OR VAR82 OR VAR97 OR VAR112 OR VAR127 OR VAR142 AND VAR33 AND VAR29;
VAR171:=BACKSET(VAR170,4);
VAR172:=FILTER(VAR171,3);
STICKLINE(VAR172 AND NOT(REF(VAR172,4)),OPEN,CLOSE,1,0),COLORWHITE;
VAR173:=VAR64 OR VAR79 OR VAR94 OR VAR109 OR VAR124 OR VAR139 AND VAR33 AND VAR29;
VAR174:=BACKSET(VAR173,10);
VAR175:=FILTER(VAR174,10);
STICKLINE(VAR175 AND NOT(REF(VAR175,4)),OPEN,CLOSE,1,0),COLORWHITE;
VAR176:=VAR67 OR VAR82 OR VAR97 OR VAR112 OR VAR127 OR VAR142 AND NOT(DYNAINFO(4)=0) AND CLOSE=HHV(CLOSE,3);
VAR177:=VAR176 AND REF(CLOSE,4)<REF(CLOSE,5) AND REF(CLOSE,4)<REF(OPEN,4) AND REF(OPEN,3)>=REF(OPEN,4);
VAR178:=FILTER(BACKSET(VAR177,5),5);
STICKLINE(VAR178,LOW,HIGH,0.5,0),COLORMAGENTA;
- 上一篇公式:分时主图 通达信主图指标 源码 贴图
- 下一篇公式:对应转折型态 通达信副图指标 公式源码 贴图