再好的指标关键还是自己如何去用 灯塔加黄金 通达信指标 源码 贴图

2018-04-24 11:41:00来源:本站整理浏览:323

再好的指标关键还是自己如何去用 灯塔加黄金 通达信指标 源码 贴图

灯塔加黄金 通达信指标 源码 贴图

点击下载灯塔加黄金 通达信指标 源码 贴图


{公式名称: 灯塔加黄金

公式描述:
参数数量: 6
参数1: M1, 最小: 1990, 最大: 3000, 缺省: 2016
参数2: M2, 最小: 1, 最大: 12, 缺省: 1
参数3: M3, 最小: 1, 最大: 31, 缺省: 1
参数4: N1, 最小: 1990, 最大: 3000, 缺省: 2016
参数5: N2, 最小: 1, 最大: 12, 缺省: 1
参数6: N3, 最小: 1, 最大: 31, 缺省: 1
}

XA_1:=YEAR=M1 AND MONTH=M2 AND DAY=M3;
XA_2:=YEAR=N1 AND MONTH=N2 AND DAY=N3;
水平线:REF(CLOSE,BARSLAST(XA_1));
A:DRAWLINE(XA_1,CLOSE,XA_2,OPEN,1);
B:DRAWLINE(XA_1,CLOSE,XA_2,CLOSE,1);
D:DRAWLINE(XA_1,CLOSE,XA_2,HIGH,1);
E:DRAWLINE(XA_1,CLOSE,XA_2,LOW,1);
DRAWNUMBER(ISLASTBAR,水平线,水平线);
DRAWNUMBER(ISLASTBAR,1.01*A,A);
DRAWNUMBER(ISLASTBAR,1.01*B,B);
DRAWNUMBER(ISLASTBAR,1.01*D,D);
DRAWNUMBER(ISLASTBAR,1.01*E,E);
XA_3:=REF(CLOSE,1);
XA_4:=CLOSE<0.96*OPEN OR CLOSE<=XA_3*0.96 OR CLOSE>1000 AND CLOSE<=XA_3*0.98;
XA_5:=BARSLAST(FILTER(XA_4,3));
大阴实顶:REF(OPEN,XA_5),POINTDOT,COLORLIGREEN;
大阴二一:REF((LOW+HIGH)/2,XA_5),NODRAW;
XA_6:=1.3;
XA_7:=1;
XA_8:=0;
XA_9:=MA(CLOSE,5);
XA_10:=MA(CLOSE,10);
XA_11:=MA(CLOSE,20);
XA_12:=XA_9>REF(XA_9,1) AND XA_10<REF(XA_10,1) AND XA_11<REF(XA_11,1);
XA_13:=REF(VOL,1);
XA_14:=REF(VOL,2);
XA_15:=REF(VOL,3);
XA_16:=REF(CLOSE,2);
XA_17:=REF(CLOSE,3);
XA_18:=REF(CLOSE,4);
XA_19:=REF(OPEN,1);
XA_20:=REF(OPEN,2);
XA_21:=REF(OPEN,3);
XA_22:=REF(OPEN,4);
XA_23:=CLOSE>=XA_17 AND XA_3>=XA_17 AND XA_16>=XA_17;
XA_24:=LOW>XA_21 AND REF(LOW,1)>XA_21 AND REF(LOW,2)>XA_21;
XA_25:=AMOUNT/VOL/100;
XA_26:=REF(XA_25,1);
XA_27:=REF(XA_25,2);
XA_28:=CLOSE>=OPEN OR (CLOSE<OPEN AND XA_25>XA_3);
XA_29:=COUNT(XA_28,3)>=2;
XA_30:=XA_17>XA_21;
XA_31:=XA_25>=XA_26 OR CLOSE>XA_3 AND (XA_26>=XA_27 OR XA_3>=XA_16);
XA_32:=(CLOSE+XA_3+XA_16)/3>XA_17;
XA_33:=VOL>XA_13 AND XA_13>XA_14;
XA_34:=VOL<=XA_13 AND XA_13<=XA_14;
XA_35:=(VOL+XA_13+XA_14)/3<=XA_15 AND NOT(XA_33);
XA_36:=CLOSE/VOL;
XA_37:=XA_36>=REF(XA_36,1) AND REF(XA_36,1)>=REF(XA_36,2);
XA_38:=(CLOSE+XA_3+XA_16)/3/XA_17;
XA_39:=(VOL+XA_13+XA_14)/3/XA_15;
XA_40:=XA_6*XA_38/XA_39>1;
XA_41:=XA_21>XA_18 AND XA_18>XA_22;
XA_42:=XA_30 AND XA_31 AND XA_34 AND XA_23 AND XA_24 AND XA_41;
XA_43:=BACKSET(XA_42,5);
XA_44:=FILTER(XA_43,4);
XA_45:=XA_30 AND XA_31 AND XA_34 AND XA_23 AND XA_24;
XA_46:=BACKSET(XA_45,4);
XA_47:=FILTER(XA_46,3);
XA_48:=XA_45 AND REF(XA_45,1);
XA_49:=BACKSET(XA_48,4);
XA_50:=FILTER(XA_49,3);
XA_51:=XA_45 AND REF(XA_45,2);
XA_52:=BACKSET(XA_51,4);
XA_53:=FILTER(XA_52,3);
XA_54:=XA_45 AND REF(XA_45,3);
XA_55:=BACKSET(XA_54,4);
XA_56:=FILTER(XA_55,3);
XA_57:=XA_30 AND XA_31 AND XA_35 AND NOT(XA_33) AND XA_23 AND XA_24 AND XA_41 AND NOT(XA_45) AND NOT(XA_42);
XA_58:=BACKSET(XA_57,5);
XA_59:=FILTER(XA_58,4);
XA_60:=XA_30 AND XA_31 AND XA_35 AND NOT(XA_33) AND XA_23 AND XA_24 AND NOT(XA_45) AND NOT(XA_42);
XA_61:=BACKSET(XA_60,4);
XA_62:=FILTER(XA_61,3);
XA_63:=XA_60 AND REF(XA_60,1);
XA_64:=BACKSET(XA_63,4);
XA_65:=FILTER(XA_64,3);
XA_66:=XA_60 AND REF(XA_60,2);
XA_67:=BACKSET(XA_66,4);
XA_68:=FILTER(XA_67,3);
XA_69:=XA_60 AND REF(XA_60,3);
XA_70:=BACKSET(XA_69,4);
XA_71:=FILTER(XA_70,3);
XA_72:=XA_30 AND XA_32 AND XA_34 AND XA_23 AND XA_24 AND XA_41 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_42) AND NOT(XA_57);
XA_73:=BACKSET(XA_72,5);
XA_74:=FILTER(XA_73,4);
XA_75:=XA_30 AND XA_32 AND XA_34 AND XA_23 AND XA_24 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_42) AND NOT(XA_57);
XA_76:=BACKSET(XA_75,4);
XA_77:=FILTER(XA_76,3);
XA_78:=XA_75 AND REF(XA_75,1);
XA_79:=BACKSET(XA_78,4);
XA_80:=FILTER(XA_79,3);
XA_81:=XA_75 AND REF(XA_75,2);
XA_82:=BACKSET(XA_81,4);
XA_83:=FILTER(XA_82,3);
XA_84:=XA_75 AND REF(XA_75,3);
XA_85:=BACKSET(XA_84,4);
XA_86:=FILTER(XA_85,3);
XA_87:=XA_30 AND XA_32 AND XA_35 AND XA_23 AND XA_24 AND XA_41 AND NOT(XA_45) AND NOT(XA_42) AND NOT(XA_60) AND NOT(XA_57) AND NOT(XA_75) AND NOT(XA_72);
XA_88:=BACKSET(XA_87,5);
XA_89:=FILTER(XA_88,4);
XA_90:=XA_30 AND XA_32 AND XA_35 AND XA_23 AND XA_24 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_75) AND NOT(XA_42) AND NOT(XA_57) AND NOT(XA_72);
XA_91:=BACKSET(XA_90,4);
XA_92:=FILTER(XA_91,3);
XA_93:=XA_90 AND REF(XA_90,1);
XA_94:=BACKSET(XA_93,4);
XA_95:=FILTER(XA_94,3);
XA_96:=XA_90 AND REF(XA_90,2);
XA_97:=BACKSET(XA_96,4);
XA_98:=FILTER(XA_97,3);
XA_99:=XA_90 AND REF(XA_90,3);
XA_100:=BACKSET(XA_99,4);
XA_101:=FILTER(XA_100,3);
XA_102:=XA_30 AND XA_32 AND XA_40 AND XA_23 AND XA_24 AND XA_41 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_75) AND NOT(XA_90) AND NOT(XA_42) AND NOT(XA_57) AND NOT(XA_72) AND NOT(XA_87);
XA_103:=BACKSET(XA_102,5);
XA_104:=FILTER(XA_103,4);
XA_105:=XA_30 AND XA_32 AND XA_40 AND XA_23 AND XA_24 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_75) AND NOT(XA_90) AND NOT(XA_42) AND NOT(XA_57) AND NOT(XA_72) AND NOT(XA_87);
XA_106:=BACKSET(XA_105,4);
XA_107:=FILTER(XA_106,3);
XA_108:=XA_105 AND REF(XA_105,1);
XA_109:=BACKSET(XA_108,4);
XA_110:=FILTER(XA_109,3);
XA_111:=XA_105 AND REF(XA_105,2);
XA_112:=BACKSET(XA_111,4);
XA_113:=FILTER(XA_112,3);
XA_114:=XA_105 AND REF(XA_105,3);
XA_115:=BACKSET(XA_114,4);
XA_116:=FILTER(XA_115,3);
XA_117:=XA_30 AND XA_32 AND XA_37 AND XA_23 AND XA_24 AND XA_41 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_75) AND NOT(XA_90) AND NOT(XA_105) AND NOT(XA_42) AND NOT(XA_57) AND NOT(XA_72) AND NOT(XA_87) AND NOT(XA_102);
XA_118:=BACKSET(XA_117,5);
XA_119:=FILTER(XA_118,4);
XA_120:=XA_30 AND XA_32 AND XA_37 AND XA_23 AND XA_24 AND NOT(XA_45) AND NOT(XA_60) AND NOT(XA_75) AND NOT(XA_90) AND NOT(XA_105) AND NOT(XA_42) AND NOT(XA_57) AND NOT(XA_72) AND NOT(XA_87) AND NOT(XA_102);
XA_121:=BACKSET(XA_120,4);
XA_122:=FILTER(XA_121,3);
XA_123:=XA_120 AND REF(XA_120,1);
XA_124:=BACKSET(XA_123,4);
XA_125:=FILTER(XA_124,3);
XA_126:=XA_120 AND REF(XA_120,2);
XA_127:=BACKSET(XA_126,4);
XA_128:=FILTER(XA_127,3);
XA_129:=XA_120 AND REF(XA_120,3);
XA_130:=BACKSET(XA_129,4);
XA_131:=FILTER(XA_130,3);
XA_132:=XA_47 AND NOT(REF(XA_47,4)) OR (XA_50 AND NOT(REF(XA_50,4))) OR (XA_53 AND NOT(REF(XA_53,4))) OR (XA_56 AND NOT(REF(XA_56,4)));
XA_133:=XA_62 AND NOT(REF(XA_62,4)) OR (XA_65 AND NOT(REF(XA_65,4))) OR (XA_68 AND NOT(REF(XA_68,4))) OR (XA_71 AND NOT(REF(XA_71,4)));
XA_134:=XA_77 AND NOT(REF(XA_77,4)) OR (XA_80 AND NOT(REF(XA_80,4))) OR (XA_83 AND NOT(REF(XA_83,4))) OR (XA_86 AND NOT(REF(XA_86,4)));
XA_135:=XA_92 AND NOT(REF(XA_92,4)) OR (XA_95 AND NOT(REF(XA_95,4))) OR (XA_98 AND NOT(REF(XA_98,4))) OR (XA_101 AND NOT(REF(XA_101,4)));
XA_136:=XA_107 AND NOT(REF(XA_107,4)) OR (XA_110 AND NOT(REF(XA_110,4))) OR (XA_113 AND NOT(REF(XA_113,4))) OR (XA_116 AND NOT(REF(XA_116,4)));
XA_137:=XA_122 AND NOT(REF(XA_122,4)) OR (XA_125 AND NOT(REF(XA_125,4))) OR (XA_128 AND NOT(REF(XA_128,4))) OR (XA_131 AND NOT(REF(XA_131,4)));
XA_138:=XA_132 OR XA_133 OR XA_134 OR XA_135 OR XA_136 OR XA_137;
STICKLINE(XA_138 AND NOT(REF(XA_138,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(XA_138 AND NOT(REF(XA_138,4)),LOW*0.986,250),COLOR0099FF;
XA_139:=SUMBARS(XA_138,1);
STICKLINE(XA_139 AND XA_7=1,REF(CLOSE,XA_139-1),REF(CLOSE,XA_139-1),10,0),COLOR8822FF;
XA_140:=XA_44 AND NOT(REF(XA_44,5));
XA_141:=XA_59 AND NOT(REF(XA_59,5));
XA_142:=XA_74 AND NOT(REF(XA_74,5));
XA_143:=XA_89 AND NOT(REF(XA_89,5));
XA_144:=XA_104 AND NOT(REF(XA_104,5));
XA_145:=XA_119 AND NOT(REF(XA_119,5));
XA_146:=XA_140 OR XA_141 OR XA_142 OR XA_143 OR XA_144 OR XA_145;
STICKLINE(XA_146 AND NOT(REF(XA_146,5)),OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(XA_146 AND NOT(REF(XA_146,5)),LOW*0.978,251),COLORRED;
XA_147:=SUMBARS(XA_146,1);
STICKLINE(XA_147 AND XA_7=1,REF(CLOSE,XA_147-1),REF(CLOSE,XA_147-1),10,0),COLOR8822FF;
XA_148:=XA_45 OR XA_60 OR XA_75 OR XA_90 OR XA_105 OR XA_120 AND XA_12 AND XA_8;
XA_149:=BACKSET(XA_148,4);
XA_150:=FILTER(XA_149,3);
STICKLINE(XA_150 AND NOT(REF(XA_150,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(XA_150 AND NOT(REF(XA_150,4)),LOW*0.958,3),COLOR0099FF;
XA_151:=XA_42 OR XA_57 OR XA_72 OR XA_87 OR XA_102 OR XA_117 AND XA_12 AND XA_8;
XA_152:=BACKSET(XA_151,5);
XA_153:=FILTER(XA_152,5);
STICKLINE(XA_153 AND NOT(REF(XA_153,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(XA_153 AND NOT(REF(XA_153,4)),LOW*0.958,3),COLOR0099FF;
几倍:VOL/REF(VOL,1),NODRAW,COLORYELLOW;
XA_154:=1.9;
倍量:VOL>=REF(VOL,1)*XA_154 AND IF(CLOSE<OPEN,CLOSE>REF(CLOSE,1),1),NODRAW,COLORYELLOW;
XA_155:=CLOSE>OPEN OR CLOSE>REF(CLOSE,1);
XA_156:=REF(XA_155,3);
XA_157:=REF(倍量,3);
XA_158:=REF(VOL,3)>=HHV(VOL,7);
XA_159:=LLV(CLOSE,3)>=REF(LOW,3);
XA_160:=COUNT(CLOSE>=REF(CLOSE,1),3)=3;
XA_161:=COUNT(VOL<=REF(VOL,1),3)=3;
XA_162:=COUNT(XA_155,3)=3;
XA_163:=XA_157 AND XA_159 AND XA_156;
XA_164:=XA_158 AND XA_159 AND XA_156;
XA_165:=XA_163 OR XA_164;
XA_166:=XA_165 AND XA_160 AND XA_161 AND XA_162;
XA_167:=VOL<=LLV(VOL,100)*1.2 AND VOL>0 AND BARSCOUNT(VOL)>=100;
XA_168:=COUNT(XA_167,5)>=3;
XA_169:=CLOSE/REF(CLOSE,1)<=0.96 AND VOL<HHV(VOL,30)/1.9;
STICKLINE(XA_165,CLOSE,OPEN,2,0),COLORWHITE;
STICKLINE(XA_165,CLOSE,OPEN,0.5,0),COLORYELLOW;
STICKLINE(XA_166,CLOSE,OPEN,2,0),COLORWHITE;
STICKLINE(XA_166,CLOSE,OPEN,0.5,0),COLORMAGENTA;
STICKLINE(XA_168,CLOSE,OPEN,0.5,0),COLORWHITE;
STICKLINE(XA_168,CLOSE,OPEN,0.2,0),COLORCYAN;
STICKLINE(XA_169,CLOSE,OPEN,0.2,0),COLORBLACK;
XA_170:=BARSLAST(HIGH=HHV(HIGH,60) AND CLOSE<OPEN AND OPEN>REF(CLOSE,1) AND HIGH/LOW>1.05);
XA_171:=EVERY(CLOSE<REF(CLOSE,1),2);
XA_172:=EVERY(LOW<=REF(LOW,1),2);
XA_173:=BARSLAST(REF(XA_170,2)=0 AND XA_171 AND XA_172);
XA_174:=XA_170-XA_173=2 AND CLOSE>REF(CLOSE,XA_170)*1.02;
XA_175:=BARSLASTCOUNT(CLOSE>OPEN)=4 AND CLOSE/REF(CLOSE,1)>1.045;
XA_176:=REF(EVERY(MAX(CLOSE,OPEN)<REF(HIGH,XA_170),XA_170),1) AND OPEN>REF(HIGH,1) AND XA_174 AND XA_170<15 AND NOT(XA_175);
XA_177:=COUNT(XA_176,XA_170)=1 AND XA_176;
XA_178:=BACKSET(XA_177=1,XA_170+1);
XA_179:=BARSLAST(CROSS(XA_178=1,0.5));
DRAWTEXT(XA_179=0,HIGH*1.1,252),COLORYELLOW;
DRAWICON(XA_179=0,HIGH,12);
STICKLINE(XA_179>=0 AND XA_178=1,REF(HIGH,XA_170),REF(HIGH,XA_170),4,(-1)),COLORLIBLUE;
DRAWTEXT(XA_177=1,LOW*0.95,253),COLORYELLOW;
DRAWICON(XA_177=1,LOW,11);
XA_180:=IF(LLV(LOW,3)>=REF(HIGH,3),REF(HIGH,3),IF(LLV(LOW,3)>=REF(CLOSE,3) AND REF(CLOSE,3)>REF(OPEN,3),REF(CLOSE,3),IF(LLV(LOW,3)>=REF(OPEN,3) AND REF(CLOSE,3)>REF(OPEN,3),REF(OPEN,3),REF(LOW,3))));
XA_181:=DRAWICON(LLV(LOW,3)>REF(LOW,3) OR LLV(LOW,3)=REF(LOW,3) AND HHV(VOL,3)<REF(VOL,3) AND REF(CLOSE,3)>REF(OPEN,3) AND REF(VOL,3)>=2*REF(VOL,4),HIGH+0.2,17);
XA_182:=DRAWICON(LLV(LOW,3)>REF(LOW,3) AND HHV(VOL,3)<REF(VOL,3) AND REF(VOL,5)>REF(VOL,6) AND REF(VOL,4)>REF(VOL,5) AND REF(VOL,3)>REF(VOL,4),HIGH,17);
XA_183:=DRAWICON(LLV(LOW,3)>REF(LOW,3) AND HHV(VOL,3)<REF(VOL,3) AND REF(CLOSE,3)>REF(OPEN,3) AND ABS(REF(VOL,3)-REF(VOL,4))/REF(VOL,4)<=0.03,HIGH,19);
XA_184:=DRAWICON(VOL>REF(VOL,1)*2 OR VOL=REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1),HIGH+0.2,26);
STICKLINE(XA_184,OPEN,CLOSE,(-1),0),COLORYELLOW;
倍量黄金线:STICKLINE(XA_181,XA_180,XA_180,28,0),COLORMAGENTA,LINETHICK5;
DRAWICON(XA_181,XA_180*1.008,12);
DRAWTEXT(XA_181,XA_180*1.008,254),COLORMAGENTA;
XA_185:=(3*CLOSE+HIGH+LOW+OPEN)/6;
XA_186:=(8*XA_185+7*REF(XA_185,1)+6*REF(XA_185,2)+5*REF(XA_185,3)+4*REF(XA_185,4)+3*REF(XA_185,5)+2*REF(XA_185,6)+REF(XA_185,8))/36;
平量黄金线:STICKLINE(XA_183,XA_180*1.002,XA_180,28,0),COLORYELLOW;
DRAWTEXT(XA_183,XA_180*1.015,256),COLORFFCC00;
梯量黄金线:STICKLINE(XA_182,XA_180*1.002,XA_180,28,0),COLORYELLOW;
DRAWTEXT(XA_182,XA_180*1.015,257),COLORCYAN;


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式