通达信多空线指标公式
原理解析:
当前公式 : 自用主图 (指标画线公式)
错误句 : {公式名称: 量梯公式描述:参数数量: 9参数1: 计算周期, 最小: 30, 最大: 150, 缺省: 100参数2: 千分误差, 最小: 0, 最大: 200, 缺省: 10参数3: 柱底位置, 最小: 1, 最大: 2, 缺省: 1参数4: 显示均线, 最小: 0, 最大: 1, 缺省: 1参数5: N1, 最小: 0, 最大: 10, 缺省: 5参数6: N2, 最小: 0, 最大: 20, 缺省: 10参数7: N3, 最小: 0, 最大: 100, 缺省: 20参数8: N4, 最小: 0, 最大: 100, 缺省: 60参数9: N5, 最小: 0, 最大: 2鼭详细信息 : 未知字符串 N4
错误起始位置 : 2051 ; 长度: 2
源码:
超短:100*(CLOSE-LLV(LOW,3))/(HHV(CLOSE,3)-LLV(LOW,3)),NODRAW,COLORCYAN;短期:100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5)),COLORWHITE;中期:100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10)),COLORYELLOW;中长:100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20)),COLORMAGENTA;长期:100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30)),COLORRED,LINETHICK2;超长:100*(CLOSE-LLV(LOW,60))/(HHV(CLOSE,60)-LLV(LOW,60)),NODRAW,COLORGREEN;特长:100*(CLOSE-LLV(LOW,120))/(HHV(CLOSE,120)-LLV(LOW,120)),NODRAW,COLORLIBLUE;特:100*(CLOSE-LLV(LOW,250))/(HHV(CLOSE,250)-LLV(LOW,250)),NODRAW,COLOR38B0DE;80,COLORFF9933;20,COLOR38B0DE;50,COLORRED,LINETHICK3;VAR1:=DRAWTEXT(超短=50,110,66);单边二十:DRAWTEXT(短期=50,90,67),COLORYELLOW;四线小六:DRAWTEXT(短期REF(VAR11,1) AND VAR12=VAR20 AND VAR18>=VAR20 AND VAR19>=VAR20;VAR27:=LOW>VAR24 AND REF(LOW,1)>VAR24 AND REF(LOW,2)>VAR24;VAR28:=AMOUNT/VOL/100;VAR29:=REF(VAR28,1);VAR30:=REF(VAR28,2);VAR31:=CLOSE>=OPEN OR (CLOSEVAR18);VAR32:=COUNT(VAR31,3)>=2;VAR33:=VAR20>VAR24;VAR34:=VAR28>=VAR29 OR CLOSE>VAR18 AND (VAR29>=VAR30 OR VAR18>=VAR19);VAR35:=(CLOSE+VAR18+VAR19)/3>VAR20;VAR36:=VOL>VAR15 AND VAR15>VAR16;VAR37:=VOL=REF(VAR39,1) AND REF(VAR39,1)>=REF(VAR39,2);VAR41:=(CLOSE+VAR18+VAR19)/3/VAR20;VAR42:=(VOL+VAR15+VAR16)/3/VAR17;VAR43:=VAR8*VAR41/VAR42>1;VAR44:=VAR24>VAR21 AND VAR21>VAR25;VAR45:=VAR33 AND VAR34 AND VAR37 AND VAR26 AND VAR27 AND VAR44;VAR46:=BACKSET(VAR45,5);VAR47:=FILTER(VAR46,4);VAR48:=VAR33 AND VAR34 AND VAR37 AND VAR26 AND VAR27;VAR49:=BACKSET(VAR48,4);VAR50:=FILTER(VAR49,3);VAR51:=VAR48 AND REF(VAR48,1);VAR52:=BACKSET(VAR51,4);VAR53:=FILTER(VAR52,3);VAR54:=VAR48 AND REF(VAR48,2);VAR55:=BACKSET(VAR54,4);VAR56:=FILTER(VAR55,3);VAR57:=VAR48 AND REF(VAR48,3);VAR58:=BACKSET(VAR57,4);VAR59:=FILTER(VAR58,3);VAR60:=VAR33 AND VAR34 AND VAR38 AND NOT(VAR36) AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR45);VAR61:=BACKSET(VAR60,5);VAR62:=FILTER(VAR61,4);VAR63:=VAR33 AND VAR34 AND VAR38 AND NOT(VAR36) AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR45);VAR64:=BACKSET(VAR63,4);VAR65:=FILTER(VAR64,3);VAR66:=VAR63 AND REF(VAR63,1);VAR67:=BACKSET(VAR66,4);VAR68:=FILTER(VAR67,3);VAR69:=VAR63 AND REF(VAR63,2);VAR70:=BACKSET(VAR69,4);VAR71:=FILTER(VAR70,3);VAR72:=VAR63 AND REF(VAR63,3);VAR73:=BACKSET(VAR72,4);VAR74:=FILTER(VAR73,3);VAR75:=VAR33 AND VAR35 AND VAR37 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR45) AND NOT(VAR60);VAR76:=BACKSET(VAR75,5);VAR77:=FILTER(VAR76,4);VAR78:=VAR33 AND VAR35 AND VAR37 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR45) AND NOT(VAR60);VAR79:=BACKSET(VAR78,4);VAR80:=FILTER(VAR79,3);VAR81:=VAR78 AND REF(VAR78,1);VAR82:=BACKSET(VAR81,4);VAR83:=FILTER(VAR82,3);VAR84:=VAR78 AND REF(VAR78,2);VAR85:=BACKSET(VAR84,4);VAR86:=FILTER(VAR85,3);VAR87:=VAR78 AND REF(VAR78,3);VAR88:=BACKSET(VAR87,4);VAR89:=FILTER(VAR88,3);VAR90:=VAR33 AND VAR35 AND VAR38 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR45) AND NOT(VAR63) AND NOT(VAR60) AND NOT(VAR78) AND NOT(VAR75);VAR91:=BACKSET(VAR90,5);VAR92:=FILTER(VAR91,4);VAR93:=VAR33 AND VAR35 AND VAR38 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75);VAR94:=BACKSET(VAR93,4);VAR95:=FILTER(VAR94,3);VAR96:=VAR93 AND REF(VAR93,1);VAR97:=BACKSET(VAR96,4);VAR98:=FILTER(VAR97,3);VAR99:=VAR93 AND REF(VAR93,2);VAR100:=BACKSET(VAR99,4);VAR101:=FILTER(VAR100,3);VAR102:=VAR93 AND REF(VAR93,3);VAR103:=BACKSET(VAR102,4);VAR104:=FILTER(VAR103,3);VAR105:=VAR33 AND VAR35 AND VAR43 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90);VAR106:=BACKSET(VAR105,5);VAR107:=FILTER(VAR106,4);VAR108:=VAR33 AND VAR35 AND VAR43 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90);VAR109:=BACKSET(VAR108,4);VAR110:=FILTER(VAR109,3);VAR111:=VAR108 AND REF(VAR108,1);VAR112:=BACKSET(VAR111,4);VAR113:=FILTER(VAR112,3);VAR114:=VAR108 AND REF(VAR108,2);VAR115:=BACKSET(VAR114,4);VAR116:=FILTER(VAR115,3);VAR117:=VAR108 AND REF(VAR108,3);VAR118:=BACKSET(VAR117,4);VAR119:=FILTER(VAR118,3);VAR120:=VAR33 AND VAR35 AND VAR40 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR108) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90) AND NOT(VAR105);VAR121:=BACKSET(VAR120,5);VAR122:=FILTER(VAR121,4);VAR123:=VAR33 AND VAR35 AND VAR40 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR108) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90) AND NOT(VAR105);VAR124:=BACKSET(VAR123,4);VAR125:=FILTER(VAR124,3);VAR126:=VAR123 AND REF(VAR123,1);VAR127:=BACKSET(VAR126,4);VAR128:=FILTER(VAR127,3);VAR129:=VAR123 AND REF(VAR123,2);VAR130:=BACKSET(VAR129,4);VAR131:=FILTER(VAR130,3);VAR132:=VAR123 AND REF(VAR123,3);VAR133:=BACKSET(VAR132,4);VAR134:=FILTER(VAR133,3);VAR135:=VAR50 AND NOT(REF(VAR50,4)) OR (VAR53 AND NOT(REF(VAR53,4))) OR (VAR56 AND NOT(REF(VAR56,4))) OR (VAR59 AND NOT(REF(VAR59,4)));VAR136:=VAR65 AND NOT(REF(VAR65,4)) OR (VAR68 AND NOT(REF(VAR68,4))) OR (VAR71 AND NOT(REF(VAR71,4))) OR (VAR74 AND NOT(REF(VAR74,4)));VAR137:=VAR80 AND NOT(REF(VAR80,4)) OR (VAR83 AND NOT(REF(VAR83,4))) OR (VAR86 AND NOT(REF(VAR86,4))) OR (VAR89 AND NOT(REF(VAR89,4)));VAR138:=VAR95 AND NOT(REF(VAR95,4)) OR (VAR98 AND NOT(REF(VAR98,4))) OR (VAR101 AND NOT(REF(VAR101,4))) OR (VAR104 AND NOT(REF(VAR104,4)));VAR139:=VAR110 AND NOT(REF(VAR110,4)) OR (VAR113 AND NOT(REF(VAR113,4))) OR (VAR116 AND NOT(REF(VAR116,4))) OR (VAR119 AND NOT(REF(VAR119,4)));VAR140:=VAR125 AND NOT(REF(VAR125,4)) OR (VAR128 AND NOT(REF(VAR128,4))) OR (VAR131 AND NOT(REF(VAR131,4))) OR (VAR134 AND NOT(REF(VAR134,4)));VAR141:=VAR135 OR VAR136 OR VAR137 OR VAR138 OR VAR139 OR VAR140;STICKLINE(VAR141 AND NOT(REF(VAR141,4)),OPEN,CLOSE,1,0),COLOR0099FF;VAR142:=SUMBARS(VAR141,1);VAR143:=VAR47 AND NOT(REF(VAR47,5));VAR144:=VAR62 AND NOT(REF(VAR62,5));VAR145:=VAR77 AND NOT(REF(VAR77,5));VAR146:=VAR92 AND NOT(REF(VAR92,5));VAR147:=VAR107 AND NOT(REF(VAR107,5));VAR148:=VAR122 AND NOT(REF(VAR122,5));VAR149:=VAR143 OR VAR144 OR VAR145 OR VAR146 OR VAR147 OR VAR148;STICKLINE(VAR149 AND NOT(REF(VAR149,5)),OPEN,CLOSE,1,0),COLORRED;VAR150:=SUMBARS(VAR149,1);VAR151:=VAR48 OR VAR63 OR VAR78 OR VAR93 OR VAR108 OR VAR123 AND VAR14 AND VAR10;VAR152:=BACKSET(VAR151,4);VAR153:=FILTER(VAR152,3);STICKLINE(VAR153 AND NOT(REF(VAR153,4)),OPEN,CLOSE,1,0),COLOR0099FF;VAR154:=VAR45 OR VAR60 OR VAR75 OR VAR90 OR VAR105 OR VAR120 AND VAR14 AND VAR10;VAR155:=BACKSET(VAR154,5);VAR156:=FILTER(VAR155,5);STICKLINE(VAR156 AND NOT(REF(VAR156,4)),OPEN,CLOSE,1,0),COLOR0099FF;VAR157:=VAR48 OR VAR63 OR VAR78 OR VAR93 OR VAR108 OR VAR123 AND NOT(DYNAINFO(4)=0) AND CLOSE=HHV(CLOSE,3);VAR158:=VAR157 AND REF(CLOSE,4)=REF(OPEN,4);VAR159:=FILTER(BACKSET(VAR158,5),5);STICKLINE(VAR159,LOW,HIGH,0.5,0),COLORMAGENTA;VAR160:=AMOUNT/VOL/100;VAR161:=CLOSE>OPEN AND REF(CLOSE,1)>VAR160 AND CLOSE>VAR160 AND CLOSE1.04;STICKLINE(VAR162,OPEN,CLOSE,1,0),COLORWHITE;VAR163:=OPEN>CLOSE AND VAR160>REF(CLOSE,1) AND CLOSE>MA(CLOSE,5);STICKLINE(VAR163,OPEN,CLOSE,1,0),COLORRED;VAR164:=VOL>=REF(VOL,1)*1.9 AND CLOSE=4.945;VAR167:=NAMELIKE(143) OR NAMELIKE(144) OR NAMELIKE(164) AND VAR1651.0495 AND VAR168);VAR170:=REF(CLOSE,1)/CLOSE>1.0995 OR (REF(CLOSE,1)/CLOSE>1.0495 AND VAR168);STICKLINE(VAR169,CLOSE,OPEN,3,0),COLORMAGENTA;STICKLINE(VAR170,CLOSE,OPEN,3,0),COLORGREEN;VAR171:=计算周期;VAR172:=千分误差/1000;VAR173:=IF(柱底位置=1,OPEN,LOW);VAR174:=VOL=HHV(VOL,10) AND (CLOSE>=REF(CLOSE,1) OR CLOSE>=OPEN);VAR175:=COUNT(VAR174,CURRBARSCOUNT-VAR171);VAR176:=IF(VAR175>0 AND CURRBARSCOUNT0,REFX(LLV(MIN(OPEN,CLOSE),VAR186-1),VAR186-1),0);VAR188:=IF(VAR182=VAR183 AND VAR1730,1,0);VAR189:=REF(VAR187*(1+VAR172),VAR186-CURRBARSCOUNT);VAR190:=REF(VAR173,VAR186-CURRBARSCOUNT);VAR191:=IF(VAR188=1 AND VAR1900,REFX(LLV(MIN(OPEN,CLOSE),VAR195-1),VAR195-1),0);VAR197:=IF(VAR182=VAR192 AND VAR1730,1,0);VAR198:=REF(VAR196*(1+VAR172),VAR195-CURRBARSCOUNT);VAR199:=REF(VAR173,VAR195-CURRBARSCOUNT);VAR200:=IF(VAR197=1 AND VAR1990,REFX(LLV(MIN(OPEN,CLOSE),VAR204-1),VAR204-1),0);VAR206:=IF(VAR182=VAR201 AND VAR1730,1,0);VAR207:=REF(VAR205*(1+VAR172),VAR204-CURRBARSCOUNT);VAR208:=REF(VAR173,VAR204-CURRBARSCOUNT);VAR209:=IF(VAR206=1 AND VAR2080,REFX(LLV(MIN(OPEN,CLOSE),VAR213-1),VAR213-1),0);VAR215:=IF(VAR182=VAR210 AND VAR1730,1,0);VAR216:=REF(VAR214*(1+VAR172),VAR213-CURRBARSCOUNT);VAR217:=REF(VAR173,VAR213-CURRBARSCOUNT);VAR218:=IF(VAR215=1 AND VAR2170,REFX(LLV(MIN(OPEN,CLOSE),VAR222-1),VAR222-1),0);VAR224:=IF(VAR182=VAR219 AND VAR1730,1,0);VAR225:=REF(VAR223*(1+VAR172),VAR222-CURRBARSCOUNT);VAR226:=REF(VAR173,VAR222-CURRBARSCOUNT);VAR227:=IF(VAR224=1 AND VAR2260,REFX(LLV(MIN(OPEN,CLOSE),VAR231-1),VAR231-1),0);VAR233:=IF(VAR182=VAR228 AND VAR1730,1,0);VAR234:=REF(VAR232*(1+VAR172),VAR231-CURRBARSCOUNT);VAR235:=REF(VAR173,VAR231-CURRBARSCOUNT);VAR236:=IF(VAR233=1 AND VAR2350,REFX(LLV(MIN(OPEN,CLOSE),VAR240-1),VAR240-1),0);VAR242:=IF(VAR182=VAR237 AND VAR1730,1,0);VAR243:=REF(VAR241*(1+VAR172),VAR240-CURRBARSCOUNT);VAR244:=REF(VAR173,VAR240-CURRBARSCOUNT);VAR245:=IF(VAR242=1 AND VAR2440,REFX(LLV(MIN(OPEN,CLOSE),VAR249-1),VAR249-1),0);VAR251:=IF(VAR182=VAR246 AND VAR1730,1,0);VAR252:=REF(VAR250*(1+VAR172),VAR249-CURRBARSCOUNT);VAR253:=REF(VAR173,VAR249-CURRBARSCOUNT);VAR254:=IF(VAR251=1 AND VAR2530,REFX(LLV(MIN(OPEN,CLOSE),VAR258-1),VAR258-1),0);VAR260:=IF(VAR182=VAR255 AND VAR1730,1,0);VAR261:=REF(VAR259*(1+VAR172),VAR258-CURRBARSCOUNT);VAR262:=REF(VAR173,VAR258-CURRBARSCOUNT);VAR263:=IF(VAR260=1 AND VAR2620,REFX(LLV(MIN(OPEN,CLOSE),VAR267-1),VAR267-1),0);VAR269:=IF(VAR182=VAR264 AND VAR1730,1,0);VAR270:=REF(VAR268*(1+VAR172),VAR267-CURRBARSCOUNT);VAR271:=REF(VAR173,VAR267-CURRBARSCOUNT);VAR272:=IF(VAR269=1 AND VAR2710,REFX(LLV(MIN(OPEN,CLOSE),VAR276-1),VAR276-1),0);VAR278:=IF(VAR182=VAR273 AND VAR1730,1,0);VAR279:=REF(VAR277*(1+VAR172),VAR276-CURRBARSCOUNT);VAR280:=REF(VAR173,VAR276-CURRBARSCOUNT);VAR281:=IF(VAR278=1 AND VAR2800,REFX(LLV(MIN(OPEN,CLOSE),VAR285-1),VAR285-1),0);VAR287:=IF(VAR182=VAR282 AND VAR1730,1,0);VAR288:=REF(VAR286*(1+VAR172),VAR285-CURRBARSCOUNT);VAR289:=REF(VAR173,VAR285-CURRBARSCOUNT);VAR290:=IF(VAR287=1 AND VAR2890,IF(VAR188=DRAWNULL,0,IF(VAR191=DRAWNULL,0,VAR191))+IF(VAR197=DRAWNULL,0,IF(VAR200=DRAWNULL,0,VAR200))+IF(VAR206=DRAWNULL,0,IF(VAR209=DRAWNULL,0,VAR209))+IF(VAR215=DRAWNULL,0,IF(VAR218=DRAWNULL,0,VAR218))+IF(VAR224=DRAWNULL,0,IF(VAR227=DRAWNULL,0,VAR227))+IF(VAR233=DRAWNULL,0,IF(VAR236=DRAWNULL,0,VAR236))+IF(VAR242=DRAWNULL,0,IF(VAR245=DRAWNULL,0,VAR245))+IF(VAR251=DRAWNULL,0,IF(VAR254=DRAWNULL,0,VAR254))+IF(VAR260=DRAWNULL,0,IF(VAR263=DRAWNULL,0,VAR263))+IF(VAR269=DRAWNULL,0,IF(VAR272=DRAWNULL,0,VAR272))+IF(VAR278=DRAWNULL,0,IF(VAR281=DRAWNULL,0,VAR281))+IF(VAR287=DRAWNULL,0,IF(VAR290=DRAWNULL,0,VAR290)),0),NODRAW,COLORYELLOW;DRAWTEXT(VAR182=1,(-LOW)*0.01+LOW,VAR298),COLORLIRED;VAR299:=15;VAR300:=VAR299>CURRBARSCOUNT;VAR301:=IF(REF(HIGH,1)=REF(HHV(HIGH,2),1),1,0);上线:IF(VAR301=1,REF(HIGH,1),REF(HIGH,2)),NODRAW;VAR302:=IF(REF(LOW,1)=REF(LLV(LOW,2),1),1,0);下线:IF(VAR302=1,REF(LOW,1),REF(LOW,2)),NODRAW;VAR303:=(上线+下线)/2;VAR304:=IF(CLOSE=1.04 OR CLOSE/REF(CLOSE,1)=1.04 OR CLOSE/REF(CLOSE,1)=1.04 OR CLOSE/REF(CLOSE,1)O,0.01,0.9,0,' WWW. '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'交易策略'),COLORRED;