{公式名称: 暗風自划线
公式描述: 暗風自划线
参数数量: 6
参数1: N, 最小: 2, 最大: 100, 缺省: 10
参数2: M, 最小: 2, 最大: 100, 缺省: 3
参数3: M1, 最小: 2, 最大: 100, 缺省: 4
参数4: M2, 最小: 2, 最大: 100, 缺省: 4
参数5: M3, 最小: 2, 最大: 100, 缺省: 13
参数6: M4, 最小: 2, 最大: 100, 缺省: 4
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
N: Param#0 (2.00--100.00)
M: Param#1 (2.00--100.00)
M1: Param#2 (2.00--100.00)
M2: Param#3 (2.00--100.00)
M3: Param#4 (2.00--100.00)
M4: Param#5 (2.00--100.00)
用法注释:
公式源码:}
VAR1:=10;
VAR2:=10;
VAR3:=0;
VAR4:=0;
VAR5:=0;
VAR6:=0;
VAR7:=REF(HIGH,VAR1)=HHV(HIGH,2*VAR1+1);
VAR8:=BACKSET(VAR7,VAR1+1);
VAR9:=FILTER(VAR8,VAR1) AND HIGH=HHV(HIGH,VAR1+1);
DRAWICON(VAR9,HIGH*1.005,2);
VAR10:=BARSLAST(VAR9);
VAR11:=IF(VAR9,CURRBARSCOUNT,0);
VAR12:=IF(VAR10,REF(HIGH,VAR10),HIGH);
VAR13:=IF(VAR10,REF(VAR11,VAR10),VAR11);
VAR14:=REF(VAR12,VAR10+1);
VAR15:=CONST(VAR13);
VAR16:=REF(VAR13,VAR10+1);
VAR17:=CONST(VAR16);
VAR18:=REF(VAR14,VAR10+1);
VAR19:=IF(CURRBARSCOUNT VAR17,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=VAR17,HIGH,CURRBARSCOUNT=VAR15,HIGH,1),DOTLINE,COLORGREEN;
压力A:DRAWLINE(CURRBARSCOUNT=VAR17,HIGH,ISLASTBAR,REF(HIGH,VAR17-1),1),DOTLINE,COLOR0055FF;
压力B:DRAWLINE(CURRBARSCOUNT=VAR15,HIGH,ISLASTBAR,REF(HIGH,VAR15-1),1),DOTLINE,COLORYELLOW;
VAR20:=REF(LOW,VAR2)=LLV(LOW,2*VAR2+1);
VAR21:=BACKSET(VAR20,VAR2+1);
VAR22:=FILTER(VAR21,VAR2) AND LOW=LLV(LOW,VAR2+1);
VAR23:=BARSLAST(VAR22);
VAR24:=IF(VAR22,CURRBARSCOUNT,0);
VAR25:=IF(VAR23,REF(LOW,VAR23),LOW);
VAR26:=IF(VAR23,REF(VAR24,VAR23),VAR24);
VAR27:=CONST(VAR26);
VAR28:=REF(VAR25,VAR23+1);
VAR29:=REF(VAR26,VAR23+1);
VAR30:=CONST(VAR29);
低点支撑:DRAWLINE(CURRBARSCOUNT=VAR30,LOW,CURRBARSCOUNT=VAR27,LOW,1),DOTLINE,COLORRED;
VAR31:=(高点压力+低点支撑)/2;
VAR32:=CONST((高点压力+低点支撑)/2);
VAR33:=IF(VAR30 VAR17,VAR30,VAR17);
中轨:DRAWLINE(CURRBARSCOUNT=VAR33,VAR31,ISLASTBAR,VAR32,1),POINTDOT,COLORFFBBFF;
VAR34:=6;
VAR35:=REF(HIGH,6)=HHV(HIGH,2*VAR34+1);
VAR36:=FILTER(VAR35,VAR34);
VAR37:=BACKSET(VAR36,VAR34+1);
VAR38:=FILTER(VAR37,VAR34);
VAR39:=REF(LOW,VAR34)=LLV(LOW,2*VAR34+1);
VAR40:=FILTER(VAR39,VAR34);
VAR41:=BACKSET(VAR40,VAR34+1);
VAR42:=FILTER(VAR41,VAR34);
VAR43:=(REF(LLV(LOW,2*VAR34),1)+REF(HHV(HIGH,2*VAR34),1))/2;
VAR44:=(HIGH+LOW)/2;
VAR45:=VAR38 AND NOT(VAR42 AND VAR43 =VAR44) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
VAR46:=VAR42 AND NOT(VAR38 AND VAR43 VAR44);
VAR47:=VAR38 AND NOT(VAR42 AND VAR43 =VAR44);
VAR48:=REF(BARSLAST(VAR45),1)+1;
VAR49:=BACKSET(VAR45 AND COUNT(VAR46,VAR48) 0,LLVBARS(IF(VAR46,LOW,10000),VAR48));
VAR50:=VAR49 REF(VAR49,1);
VAR51:=BACKSET(VAR50,2);
VAR52:=VAR51 REF(VAR51,1);
VAR53:=VAR52 OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
VAR54:=REF(BARSLAST(VAR53),1)+1;
VAR55:=BACKSET(VAR53 AND COUNT(VAR47,VAR54) 0,HHVBARS(IF(VAR47,HIGH,0),VAR54));
VAR56:=VAR55 REF(VAR55,1);
VAR57:=BACKSET(VAR56,2);
VAR58:=VAR57 REF(VAR57,1);
VAR59:=BACKSET(BARSTATUS,BARSLAST(VAR52)+1);
VAR60:=VAR59 REF(VAR59,1);
VAR61:=BACKSET(VAR60,REF(BARSLAST(VAR52),1)+2);
VAR62:=VAR61 REF(VAR61,1);
VAR63:=BACKSET(BARSTATUS,BARSLAST(VAR58)+1);
VAR64:=VAR63 REF(VAR63,1);
VAR65:=BACKSET(VAR64,REF(BARSLAST(VAR58),1)+2);
VAR66:=VAR65 REF(VAR65,1);
近低A:REF(LOW,BARSLAST(VAR60)),DOTLINE,COLORWHITE;
近低B:REF(LOW,BARSLAST(VAR62)),DOTLINE,COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=8,高点压力,STRCAT(684,CON2STR(高点压力,2))),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=8,低点支撑,STRCAT(685,CON2STR(低点支撑,2))),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=15,中轨,STRCAT(686,CON2STR(中轨,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=20,压力A*0.995,STRCAT(687,CON2STR(压力A,2))),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=12,压力B*0.995,STRCAT(688,CON2STR(压力B,2))),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=12,近低A*1.005,STRCAT(689,CON2STR(近低A,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=20,近低B*1.005,STRCAT(690,CON2STR(近低B,2))),COLOR0018D8;
VAR67:=CLOSE=HHV(CLOSE,13);
VAR68:=BARSLAST(FILTER(CROSS(0.8,VAR67),2))+1;
VAR69:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
高点:REF(CLOSE,VAR68),POINTDOT,COLORMAGENTA;
突破:CROSS(CLOSE,REF(高点,1)),NODRAW,COLORYELLOW;
STICKLINE(VAR68 =6,高点,高点,3,0),COLORMAGENTA;
DRAWTEXT(突破,LOW,691),COLORYELLOW;
VAR70:=CLOSE=LLV(CLOSE,13);
VAR71:=BARSLAST(FILTER(CROSS(0.8,VAR70),2))+1;
低点:REF(CLOSE,VAR71),POINTDOT,COLORGREEN;
DRAWTEXT_FIX(1,0.85,0,20,692),COLORRED;
VAR72:=350;
VAR73:=REFDATE(HHV(HIGH,VAR72),DATE);
VAR74:=REFDATE(LLV(LOW,VAR72),DATE);
VAR75:=REF(LOW,BARSLAST(VAR74=LOW));
VAR76:=REF(HIGH,BARSLAST(VAR73=HIGH));
VAR77:=(VAR76-VAR75)/VAR75*100;
VAR78:=(CLOSE-VAR75)/VAR75*100;
VAR79:=CON2STR(CONST(VAR77),2);
VAR80:=CON2STR(CONST(VAR78),2);
VAR81:=STRCAT(693,VAR79);
VAR82:=STRCAT(VAR81,128);
VAR83:=STRCAT(VAR82,694);
VAR84:=STRCAT(VAR83,VAR80);
VAR85:=STRCAT(VAR84,128);
DRAWTEXT_FIX(ISLASTBAR,0,1,0,695),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,1,0,VAR85),COLORYELLOW;
VAR86:=CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2);
VAR87:=REF(VAR86,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR88:=REF(VAR87,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR89:=REF(VAR88,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR90:=REF(VAR89,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR91:=REF(VAR90,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR92:=REF(VAR91,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR93:=REF(VAR92,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR94:=REF(VAR93,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR95:=REF(VAR94,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR96:=REF(VAR95,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR97:=REF(VAR96,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR98:=CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2);
VAR99:=REF(VAR98,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR100:=REF(VAR99,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR101:=REF(VAR100,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR102:=REF(VAR101,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR103:=REF(VAR102,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR104:=REF(VAR103,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR105:=REF(VAR104,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR106:=REF(VAR105,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR107:=REF(VAR106,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR108:=REF(VAR107,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR109:=REF(VAR108,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR110:=REF(VAR98 OR VAR99 OR VAR100 OR VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109,1) AND VAR86;
DRAWICON(FILTER(VAR110=1,5),LOW,9);
VAR111:=DATETODAY(DATE)-DATETODAY(REF(DATE,1));
DRAWTEXT(VAR111 10,OPEN,VARCAT(696,VAR2STR(VAR111,0))),COLORGREEN;
DRAWTEXT(VAR111 10,OPEN,697),COLORGREEN;
VAR112:=REF(CLOSE,1);
VAR113:=CLOSE 0.96*OPEN OR CLOSE =VAR112*0.96 OR CLOSE 1000 AND CLOSE =VAR112*0.98;
VAR114:=BARSLAST(FILTER(VAR113,3));
大阴实顶:REF(OPEN,VAR114),POINTDOT,COLORLIGREEN;
大阴二一:REF((LOW+HIGH)/2,VAR114),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
VAR115:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR116:=NAMELIKE(1) OR NAMELIKE(698) OR NAMELIKE(4) AND VAR115 =4.945;
VAR117:=NAMELIKE(1) OR NAMELIKE(698) OR NAMELIKE(4) AND VAR115 =(-4.945);
涨停价:IF(VAR116,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW;
跌停价:IF(VAR117,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW;
VAR118:=1.3;
VAR119:=1;
VAR120:=0;
VAR121:=MA(CLOSE,5);
VAR122:=MA(CLOSE,10);
VAR123:=MA(CLOSE,20);
VAR124:=VAR121 REF(VAR121,1) AND VAR122 REF(VAR122,1) AND VAR123 REF(VAR123,1);
VAR125:=REF(VOL,1);
VAR126:=REF(VOL,2);
VAR127:=REF(VOL,3);
VAR128:=REF(CLOSE,2);
VAR129:=REF(CLOSE,3);
VAR130:=REF(CLOSE,4);
VAR131:=REF(OPEN,1);
VAR132:=REF(OPEN,2);
VAR133:=REF(OPEN,3);
VAR134:=REF(OPEN,4);
VAR135:=CLOSE =VAR129 AND VAR112 =VAR129 AND VAR128 =VAR129;
VAR136:=LOW VAR133 AND REF(LOW,1) VAR133 AND REF(LOW,2) VAR133;
VAR137:=AMOUNT/VOL/100;
VAR138:=REF(VAR137,1);
VAR139:=REF(VAR137,2);
VAR140:=CLOSE =OPEN OR (CLOSE OPEN AND VAR137 VAR112);
VAR141:=COUNT(VAR140,3)
VAR142:=VAR129 VAR133;
VAR143:=VAR137 =VAR138 OR CLOSE VAR112 AND (VAR138 =VAR139 OR VAR112 =VAR128);
VAR144:=(CLOSE+VAR112+VAR128)/3 VAR129;
VAR145:=VOL VAR125 AND VAR125 VAR126;
VAR146:=VOL =VAR125 AND VAR125 =VAR126;
VAR147:=(VOL+VAR125+VAR126)/3 =VAR127 AND NOT(VAR145);
VAR148:=CLOSE/VOL;
VAR149:=VAR148 =REF(VAR148,1) AND REF(VAR148,1) =REF(VAR148,2);
VAR150:=(CLOSE+VAR112+VAR128)/3/VAR129;
VAR151:=(VOL+VAR125+VAR126)/3/VAR127;
VAR152:=VAR118*VAR150/VAR151
VAR153:=VAR133 VAR130 AND VAR130 VAR134;
VAR154:=VAR142 AND VAR143 AND VAR146 AND VAR135 AND VAR136 AND VAR153;
VAR155:=BACKSET(VAR154,5);
VAR156:=FILTER(VAR155,4);
VAR157:=VAR142 AND VAR143 AND VAR146 AND VAR135 AND VAR136;
VAR158:=BACKSET(VAR157,4);
VAR159:=FILTER(VAR158,3);
VAR160:=VAR157 AND REF(VAR157,1);
VAR161:=BACKSET(VAR160,4);
VAR162:=FILTER(VAR161,3);
VAR163:=VAR157 AND REF(VAR157,2);
VAR164:=BACKSET(VAR163,4);
VAR165:=FILTER(VAR164,3);
VAR166:=VAR157 AND REF(VAR157,3);
VAR167:=BACKSET(VAR166,4);
VAR168:=FILTER(VAR167,3);
VAR169:=VAR142 AND VAR143 AND VAR147 AND NOT(VAR145) AND VAR135 AND VAR136 AND VAR153 AND NOT(VAR157) AND NOT(VAR154);
VAR170:=BACKSET(VAR169,5);
VAR171:=FILTER(VAR170,4);
VAR172:=VAR142 AND VAR143 AND VAR147 AND NOT(VAR145) AND VAR135 AND VAR136 AND NOT(VAR157) AND NOT(VAR154);
VAR173:=BACKSET(VAR172,4);
VAR174:=FILTER(VAR173,3);
VAR175:=VAR172 AND REF(VAR172,1);
VAR176:=BACKSET(VAR175,4);
VAR177:=FILTER(VAR176,3);
VAR178:=VAR172 AND REF(VAR172,2);
VAR179:=BACKSET(VAR178,4);
VAR180:=FILTER(VAR179,3);
VAR181:=VAR172 AND REF(VAR172,3);
VAR182:=BACKSET(VAR181,4);
VAR183:=FILTER(VAR182,3);
VAR184:=VAR142 AND VAR144 AND VAR146 AND VAR135 AND VAR136 AND VAR153 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR154) AND NOT(VAR169);
VAR185:=BACKSET(VAR184,5);
VAR186:=FILTER(VAR185,4);
VAR187:=VAR142 AND VAR144 AND VAR146 AND VAR135 AND VAR136 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR154) AND NOT(VAR169);
VAR188:=BACKSET(VAR187,4);
VAR189:=FILTER(VAR188,3);
VAR190:=VAR187 AND REF(VAR187,1);
VAR191:=BACKSET(VAR190,4);
VAR192:=FILTER(VAR191,3);
VAR193:=VAR187 AND REF(VAR187,2);
VAR194:=BACKSET(VAR193,4);
VAR195:=FILTER(VAR194,3);
VAR196:=VAR187 AND REF(VAR187,3);
VAR197:=BACKSET(VAR196,4);
VAR198:=FILTER(VAR197,3);
VAR199:=VAR142 AND VAR144 AND VAR147 AND VAR135 AND VAR136 AND VAR153 AND NOT(VAR157) AND NOT(VAR154) AND NOT(VAR172) AND NOT(VAR169) AND NOT(VAR187) AND NOT(VAR184);
VAR200:=BACKSET(VAR199,5);
VAR201:=FILTER(VAR200,4);
VAR202:=VAR142 AND VAR144 AND VAR147 AND VAR135 AND VAR136 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR187) AND NOT(VAR154) AND NOT(VAR169) AND NOT(VAR184);
VAR203:=BACKSET(VAR202,4);
VAR204:=FILTER(VAR203,3);
VAR205:=VAR202 AND REF(VAR202,1);
VAR206:=BACKSET(VAR205,4);
VAR207:=FILTER(VAR206,3);
VAR208:=VAR202 AND REF(VAR202,2);
VAR209:=BACKSET(VAR208,4);
VAR210:=FILTER(VAR209,3);
VAR211:=VAR202 AND REF(VAR202,3);
VAR212:=BACKSET(VAR211,4);
VAR213:=FILTER(VAR212,3);
VAR214:=VAR142 AND VAR144 AND VAR152 AND VAR135 AND VAR136 AND VAR153 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR187) AND NOT(VAR202) AND NOT(VAR154) AND NOT(VAR169) AND NOT(VAR184) AND NOT(VAR199);
VAR215:=BACKSET(VAR214,5);
VAR216:=FILTER(VAR215,4);
VAR217:=VAR142 AND VAR144 AND VAR152 AND VAR135 AND VAR136 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR187) AND NOT(VAR202) AND NOT(VAR154) AND NOT(VAR169) AND NOT(VAR184) AND NOT(VAR199);
VAR218:=BACKSET(VAR217,4);
VAR219:=FILTER(VAR218,3);
VAR220:=VAR217 AND REF(VAR217,1);
VAR221:=BACKSET(VAR220,4);
VAR222:=FILTER(VAR221,3);
VAR223:=VAR217 AND REF(VAR217,2);
VAR224:=BACKSET(VAR223,4);
VAR225:=FILTER(VAR224,3);
VAR226:=VAR217 AND REF(VAR217,3);
VAR227:=BACKSET(VAR226,4);
VAR228:=FILTER(VAR227,3);
VAR229:=VAR142 AND VAR144 AND VAR149 AND VAR135 AND VAR136 AND VAR153 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR187) AND NOT(VAR202) AND NOT(VAR217) AND NOT(VAR154) AND NOT(VAR169) AND NOT(VAR184) AND NOT(VAR199) AND NOT(VAR214);
VAR230:=BACKSET(VAR229,5);
VAR231:=FILTER(VAR230,4);
VAR232:=VAR142 AND VAR144 AND VAR149 AND VAR135 AND VAR136 AND NOT(VAR157) AND NOT(VAR172) AND NOT(VAR187) AND NOT(VAR202) AND NOT(VAR217) AND NOT(VAR154) AND NOT(VAR169) AND NOT(VAR184) AND NOT(VAR199) AND NOT(VAR214);
VAR233:=BACKSET(VAR232,4);
VAR234:=FILTER(VAR233,3);
VAR235:=VAR232 AND REF(VAR232,1);
VAR236:=BACKSET(VAR235,4);
VAR237:=FILTER(VAR236,3);
VAR238:=VAR232 AND REF(VAR232,2);
VAR239:=BACKSET(VAR238,4);
VAR240:=FILTER(VAR239,3);
VAR241:=VAR232 AND REF(VAR232,3);
VAR242:=BACKSET(VAR241,4);
VAR243:=FILTER(VAR242,3);
VAR244:=VAR159 AND NOT(REF(VAR159,4)) OR (VAR162 AND NOT(REF(VAR162,4))) OR (VAR165 AND NOT(REF(VAR165,4))) OR (VAR168 AND NOT(REF(VAR168,4)));
VAR245:=VAR174 AND NOT(REF(VAR174,4)) OR (VAR177 AND NOT(REF(VAR177,4))) OR (VAR180 AND NOT(REF(VAR180,4))) OR (VAR183 AND NOT(REF(VAR183,4)));
VAR246:=VAR189 AND NOT(REF(VAR189,4)) OR (VAR192 AND NOT(REF(VAR192,4))) OR (VAR195 AND NOT(REF(VAR195,4))) OR (VAR198 AND NOT(REF(VAR198,4)));
VAR247:=VAR204 AND NOT(REF(VAR204,4)) OR (VAR207 AND NOT(REF(VAR207,4))) OR (VAR210 AND NOT(REF(VAR210,4))) OR (VAR213 AND NOT(REF(VAR213,4)));
VAR248:=VAR219 AND NOT(REF(VAR219,4)) OR (VAR222 AND NOT(REF(VAR222,4))) OR (VAR225 AND NOT(REF(VAR225,4))) OR (VAR228 AND NOT(REF(VAR228,4)));
VAR249:=VAR234 AND NOT(REF(VAR234,4)) OR (VAR237 AND NOT(REF(VAR237,4))) OR (VAR240 AND NOT(REF(VAR240,4))) OR (VAR243 AND NOT(REF(VAR243,4)));
VAR250:=VAR244 OR VAR245 OR VAR246 OR VAR247 OR VAR248 OR VAR249;
STICKLINE(VAR250 AND NOT(REF(VAR250,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(VAR250 AND NOT(REF(VAR250,4)),LOW*0.986,699),COLOR0099FF;
VAR251:=SUMBARS(VAR250,1);
STICKLINE(VAR251 AND VAR119=1,REF(CLOSE,VAR251-1),REF(CLOSE,VAR251-1),10,0),COLOR8822FF;
VAR252:=VAR156 AND NOT(REF(VAR156,5));
VAR253:=VAR171 AND NOT(REF(VAR171,5));
VAR254:=VAR186 AND NOT(REF(VAR186,5));
VAR255:=VAR201 AND NOT(REF(VAR201,5));
VAR256:=VAR216 AND NOT(REF(VAR216,5));
VAR257:=VAR231 AND NOT(REF(VAR231,5));
VAR258:=VAR252 OR VAR253 OR VAR254 OR VAR255 OR VAR256 OR VAR257;
STICKLINE(VAR258 AND NOT(REF(VAR258,5)),OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(VAR258 AND NOT(REF(VAR258,5)),LOW*0.978,700),COLORRED;
VAR259:=SUMBARS(VAR258,1);
STICKLINE(VAR259 AND VAR119=1,REF(CLOSE,VAR259-1),REF(CLOSE,VAR259-1),10,0),COLOR8822FF;
VAR260:=VAR157 OR VAR172 OR VAR187 OR VAR202 OR VAR217 OR VAR232 AND VAR124 AND VAR120;
VAR261:=BACKSET(VAR260,4);
VAR262:=FILTER(VAR261,3);
STICKLINE(VAR262 AND NOT(REF(VAR262,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(VAR262 AND NOT(REF(VAR262,4)),LOW*0.958,701),COLOR0099FF;
VAR263:=VAR154 OR VAR169 OR VAR184 OR VAR199 OR VAR214 OR VAR229 AND VAR124 AND VAR120;
VAR264:=BACKSET(VAR263,5);
VAR265:=FILTER(VAR264,5);
STICKLINE(VAR265 AND NOT(REF(VAR265,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(VAR265 AND NOT(REF(VAR265,4)),LOW*0.958,701),COLOR0099FF;
VAR266:=REF(CLOSE,1);
VAR267:=IF((CLOSE-VAR266)*100/VAR266 =10-0.01*100/VAR266,1,0);
STICKLINE(VAR267,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(VAR267,HIGH,LOW,0,0),COLORMAGENTA;
VAR268:=IF((VAR266-CLOSE)*100/VAR266 =10-0.01*100/VAR266,1,0);
STICKLINE(VAR268,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(VAR268,HIGH,LOW,0,1),COLORGREEN;
VAR269:=10;
VAR270:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR271:=CROSS(VAR270,0.9);
VAR272:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR273:=CROSS(VAR272,0.9);
STICKLINE(VAR271,HIGH,HIGH*1.01,5,0),COLORGREEN;
STICKLINE(VAR273,LOW,LOW*0.99,5,0),COLORGREEN;
VAR274:=IF(VAR271,HIGH,IF(VAR273,LOW,0));
PLOYLINE(VAR274,VAR274),COLORMAGENTA;
VAR275:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW REF(LOW,1) AND HIGH REF(HIGH,1),3);
VAR276:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW REF(LOW,1) AND HIGH REF(HIGH,1),3);
VAR277:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH REF(HIGH,1) AND LOW REF(LOW,1) AND REF(LOW,1) REF(LOW,2) AND REF(HIGH,1) REF(HIGH,2),3);
VAR278:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW REF(LOW,1) AND HIGH REF(HIGH,1),3);
VAR279:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW REF(LOW,1) AND HIGH REF(HIGH,1),3);
VAR280:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH REF(HIGH,1) AND LOW REF(LOW,1) AND REF(LOW,1) REF(LOW,2) AND REF(HIGH,1) REF(HIGH,2),3);
压力:REF(HIGH,BARSLAST(VAR271)),POINTDOT,COLORRED;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR271)),REF(HIGH,BARSLAST(VAR271)),5,0),COLORRED;
支撑:REF(LOW,BARSLAST(VAR273)),POINTDOT,COLORMAGENTA;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR273)),REF(LOW,BARSLAST(VAR273)),5,0),COLORMAGENTA;
VAR281:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR282:=SMA(VAR281,3,1);
VAR283:=SMA(VAR282,3,1);
VAR284:=3*VAR282-2*VAR283;
VAR285:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
VAR286:=SMA(VAR285,3,1);
VAR287:=SMA(VAR286,3,1);
VAR288:=3*VAR286-2*VAR287;
VAR289:=IF(CROSS(VAR288,VAR284),HIGH,REF(HIGH,BARSLAST(CROSS(VAR288,VAR284))));
VAR290:=IF(ISLASTBAR,VAR289,DRAWNULL);
VAR291:=LLV(HIGH,30);
VAR292:=IF(ISLASTBAR,VAR291,DRAWNULL);
STICKLINE(ISLASTBAR,VAR290,VAR290,100,1),COLORWHITE;
STICKLINE(ISLASTBAR,VAR292,VAR292,80,1),COLORGREEN;
VAR293:=MA(KDJ.J#WEEK(9,3,3),5);
VAR294:=MA(KDJ.J#WEEK(9,3,3),5);
VAR295:=MA(KDJ.K#MONTH(9,3,3),20);
VAR296:=MA(KDJ.D#MONTH(9,3,3),20);
VAR297:=MA(KDJ.J#MONTH(9,3,3),20);
VAR298:=MA(KDJ.K#WEEK(9,3,3),5);
VAR299:=MA(KDJ.D#WEEK(9,3,3),5);
VAR300:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR301:=SMA(VAR300,3,1);
VAR302:=SMA(VAR301,3,1);
VAR303:=3*VAR301-2*VAR302;
VAR304:=CLOSE
RJC:DRAWICON(CROSS(VAR301,VAR302),LOW*0.98,1);
DRAWTEXT(RJC,LOW*0.98,702),COLORRED;
RSC:DRAWICON(CROSS(VAR302,VAR301),HIGH*1.03,2);
DRAWTEXT(RSC,HIGH*1.03,703),COLORWHITE;
ZJC:DRAWICON(CROSS(VAR298,VAR299),LOW*0.98,1);
DRAWTEXT(ZJC,LOW*0.98,704),COLORMAGENTA;
ZSC:DRAWICON(CROSS(VAR299,VAR298),HIGH*1.03,2);
DRAWTEXT(ZSC,HIGH*1.03,705),COLORYELLOW;
YJC:DRAWICON(CROSS(VAR295,VAR296),LOW*0.98,1);
DRAWTEXT(YJC,LOW*0.98,706),COLORBLUE;
YSC:DRAWICON(CROSS(VAR296,VAR295),HIGH*1.03,2);
DRAWTEXT(YSC,HIGH*1.03,707),COLORCYAN;
VAR305:=CONST(LLVBARS(LOW,10));
VAR306:=CONST(REF(HIGH,VAR305));
VAR307:=CONST(CURRBARSCOUNT);
VAR308:=CONST(BARSLAST(CURRBARSCOUNT VAR307+VAR305 AND HIGH VAR306));
VAR309:=CONST(REF(HIGH,VAR308));
VAR310:=CONST(BARSLAST(CURRBARSCOUNT VAR307+VAR308 AND HIGH VAR309));
VAR311:=CONST(REF(HIGH,VAR310));
洗:DRAWLINE(CURRBARSCOUNT=VAR310+1,VAR311,ISLASTBAR,VAR311,1),DOTLINE,COLORWHITE;
压:DRAWLINE(HIGH =HHV(HIGH,10),HIGH,LOW =LLV(LOW,3),HHV(HIGH,3),1),DOTLINE,COLORCYAN;
VAR312:=REF(LOW,5)=LLV(LOW,2*5+1);
VAR313:=FILTER(VAR312,5);
VAR314:=BACKSET(VAR313,5+1);
VAR315:=FILTER(VAR314,5);
VAR316:=BACKSET(ISLASTBAR,BARSLAST(VAR315)+1);
VAR317:=VAR316 REF(VAR316,1);
支:DRAWLINE(VAR315,LOW,VAR317,LOW,1),DOTLINE,COLORLIRED;
VAR318:=REF(HHV(HIGH,150),3);
VAR319:=REF(LLV(LOW,150),3);
VAR320:=VAR318-(VAR318-VAR319)*0.191;
冲:REFDATE(VAR320,DATE),COLORLIGREEN;
VAR321:=MA(CLOSE,5);
VAR322:=MA(CLOSE,10);
VAR323:=MA(CLOSE,20);
VAR324:=MA(CLOSE,30);
VAR325:=MA(CLOSE,60);
现价线:STICKLINE(ISLASTBAR,CLOSE,CLOSE,2900,(-1)),COLORWHITE;
VAR326:=IF(CURRBARSCOUNT =60,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL);
VAR327:=BARSLAST(CLOSE REF(CLOSE,1)*1.095 AND CLOSE=HIGH);
VAR328:=BARSLAST(CLOSE REF(CLOSE,1)*1.095 AND CLOSE REF(CLOSE,1)*1.08);
VAR329:=BARSLAST(CLOSE REF(CLOSE,1)*1.08 AND CLOSE REF(CLOSE,1)*1.07);
VAR330:=BARSLAST(CLOSE REF(CLOSE,1)*1.07 AND CLOSE REF(CLOSE,1)*1.06);
VAR331:=BARSLAST(CLOSE REF(CLOSE,1)*1.06 AND CLOSE REF(CLOSE,1)*1.05);
VAR332:=COUNT(VAR327=0,100)=0;
VAR333:=COUNT(VAR328=0,100)=0;
VAR334:=COUNT(VAR329=0,100)=0;
VAR335:=COUNT(VAR330=0,100)=0;
VAR336:=COUNT(VAR331=0,100)=0;
VAR337:=CLOSE REF(CLOSE,1)*1.05;
VAR338:=REF(VAR327,1) 100 AND REF(VAR328,1) 100 AND REF(VAR329,1) 100 AND REF(VAR330,1) 100 AND REF(VAR331,1) 80 AND VAR337;
VAR339:=HHV(MACD.MACD*100,200);
VAR340:=LLV(MACD.MACD*100,200);
VAR341:=MIN(MIN(VAR321,VAR322),VAR323) VAR325;
VAR342:=BARSLAST(VAR338 AND VAR339 60 AND VAR340 (-55));
VAR343:=BARSSINCEN(MIN(MIN(VAR321,VAR322),VAR323) VAR325,VAR342+1);
VAR344:=CROSS(VAR342=0 AND VAR341 OR VAR343=0,0.5);
VAR345:=LLVBARS(LOW,60);
VAR346:=BARSLAST(CURRBARSCOUNT=CONST(VAR345)+1);
VAR347:=FINDHIGHBARS(HIGH,VAR345+1,60,1);
A:DRAWLINE(CURRBARSCOUNT=CONST(VAR347)+1,HIGH,ISLASTBAR,REF(HIGH,VAR347),0),COLORYELLOW,LINETHICK2;
VAR348:=BARSLAST(CURRBARSCOUNT=CONST(VAR347)+1);
VAR349:=CROSS(CLOSE,CONST(A));
VAR350:=COUNT(VAR349,VAR348+1)=1 AND VAR338;
VAR351:=COUNT(VOL MA(VOL,277),VAR348+1);
VAR352:=VAR351/(VAR348+1)*100;
VAR353:=VAR350 AND VAR348 40 AND VAR352
VAR354:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(VAR353))+1);
VAR355:=REF(LOW,VAR346);
VAR356:=REF(CLOSE,VAR354);
VAR357:=(VAR356-VAR355)/VAR355*100;
VAR358:=VAR357/REF(VAR346,VAR354);
VAR359:=VAR344 AND VAR358 2.95;
DRAWLINE(VAR348=0,HIGH,VAR346=0,LOW,0),COLORRED;
DRAWLINE(VAR346=0,LOW,VAR342=0,LOW,0),COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);