DLTX11度量天下第一版
{公式名称: DLTX11
公式描述: 度量天下第一版
参数数量: 1
参数1: 波段周期, 最小: 30, 最大: 1000, 缺省: 89
画线方法: 主图叠加
用法注释:
公式源码:}
DRAWGBK(CLOSE>OPEN,RGB(8,0,0),RGB(0,0,8),1,2,1);
VAR1:=DATE=MAX(DATE,116071899);
VAR2:=IF(OPEN=CLOSE,CLOSE,COSTEX(OPEN,CLOSE));
VAR3:=STRCMP(STKNAME,393) OR STRCMP(STKNAME,394) OR STRCMP(STKNAME,395) OR STRCMP(STKNAME,396) OR STRCMP(STKNAME,397) OR STRCMP(STKNAME,398) OR STRCMP(STKNAME,399) OR STRCMP(STKNAME,400) OR STRCMP(STKNAME,401) OR STRCMP(STKNAME,402) OR STRCMP(STKNAME,403) OR CODELIKE(404);
VAR4:=STRCMP(STKNAME,405) OR STRCMP(STKNAME,406) OR STRCMP(STKNAME,407) OR STRCMP(STKNAME,408) OR STRCMP(STKNAME,409) OR STRCMP(STKNAME,410) OR CODELIKE(411) OR CODELIKE(412);
VAR5:=CODELIKE(413) OR CODELIKE(414) OR CODELIKE(415);
VAR6:=NOT(VAR5);
VAR7:=VAR3 OR VAR4 OR VAR6;
VAR8:=IF(VAR7,CLOSE,IF(VAR5,VAR2,DRAWNULL));
VAR9:=MA(VAR8,5);
VAR10:=MA(VAR8,10);
VAR11:=MA(VAR8,20);
VAR12:=MA(VAR8,40);
VAR13:=MA(VAR8,60);
VAR14:=MA(VAR8,120);
DRAWBAND(VAR9,RGB(48,128,20),VAR10,RGB(48,128,20));
DRAWBAND(VAR10,RGB(48,128,20),VAR11,RGB(48,128,20));
DRAWBAND(VAR11,RGB(48,128,20),VAR13,RGB(48,128,20));
VAR15:=MAX(LOW,VAR11)=LOW;
VAR16:=MIN(LOW,VAR11)=LOW AND MAX(LOW,VAR13)=LOW;
VAR17:=MIN(LOW,VAR13)=LOW AND VAR11>=VAR13;
VAR18:=IF(VAR15,VAR11,IF(VAR16,LOW,IF(VAR17,VAR13,VAR11)));
VAR19:=MAX(LOW,VAR10)=LOW;
VAR20:=MIN(LOW,VAR10)=LOW AND MAX(LOW,VAR11)=LOW;
VAR21:=MIN(LOW,VAR11)=LOW AND VAR10>=VAR11;
VAR22:=IF(VAR19,VAR10,IF(VAR20,LOW,IF(VAR21,VAR11,VAR10)));
VAR23:=MAX(LOW,VAR9)=LOW;
VAR24:=MIN(LOW,VAR9)=LOW AND MAX(LOW,VAR10)=LOW;
VAR25:=MIN(LOW,VAR10)=LOW AND VAR9>=VAR10;
VAR26:=IF(VAR23,VAR9,IF(VAR24,LOW,IF(VAR25,VAR10,VAR9)));
DRAWBAND(VAR18,RGB(28,28,28),VAR13,RGB(48,128,20));
DRAWBAND(VAR22,RGB(18,18,18),VAR11,RGB(48,128,20));
DRAWBAND(VAR26,RGB(58,58,58),VAR10,RGB(48,128,20));
M5:VAR9,DOTLINE,COLORWHITE;
M10:VAR10,DOTLINE,COLORGREEN;
M20:VAR11,COLORMAGENTA,LINETHICK2;
VAR27:=VAR12;
M60:VAR13,COLORBLUE,LINETHICK2;
VAR28:=VAR14;
VAR29:=CROSS(M5,M10);
VAR30:=CROSS(M5,M20);
VAR31:=CROSS(M5,VAR27);
VAR32:=CROSS(M5,M60);
VAR33:=CROSS(M10,M20);
VAR34:=CROSS(M10,VAR27);
VAR35:=CROSS(M10,M60);
VAR36:=CROSS(M20,VAR27);
VAR37:=CROSS(M20,M60);
VAR38:=CROSS(VAR27,M60);
VAR39:=CROSS(M60,M5);
VAR40:=CROSS(M60,M10);
VAR41:=CROSS(M60,M20);
VAR42:=CROSS(M60,VAR27);
VAR43:=CROSS(VAR27,M5);
VAR44:=CROSS(VAR27,M10);
VAR45:=CROSS(VAR27,M20);
VAR46:=CROSS(M20,M5);
VAR47:=CROSS(M20,M10);
VAR48:=CROSS(M10,M5);
VAR49:=VAR48 OR VAR46 OR VAR47;
VAR50:=COUNT(VAR49,ABS(MAX(BARSLAST(VAR29),BARSLAST(VAR30))-BARSLAST(VAR33)))=0;
VAR51:=MAX(M5,M20)=M5 AND MAX(M10,M20)=M10;
VAR52:=BARSLAST(VAR29)>=0 AND BARSLAST(VAR30)>=0 AND VAR33 AND VAR50 AND VAR51;
VAR53:=COUNT(VAR49,ABS(MAX(BARSLAST(VAR29),BARSLAST(VAR33))-BARSLAST(VAR30)))=0;
VAR54:=BARSLAST(VAR29)>=0 AND BARSLAST(VAR33)>=0 AND VAR30 AND VAR51 AND VAR53;
VAR55:=COUNT(VAR49,ABS(MAX(BARSLAST(VAR30),BARSLAST(VAR33))-BARSLAST(VAR29)))=0;
VAR56:=BARSLAST(VAR30)>=0 AND BARSLAST(VAR33)>=0 AND VAR29 AND VAR51 AND VAR55;
VAR57:=VAR52 OR VAR54 OR VAR56;
VAR58:=VAR29 OR VAR30 OR VAR33;
VAR59:=COUNT(VAR58,ABS(MAX(BARSLAST(VAR48),BARSLAST(VAR46))-BARSLAST(VAR47)))=0;
VAR60:=MIN(M5,M20)=M5 AND MIN(M10,M20)=M10;
VAR61:=BARSLAST(VAR48)>=0 AND BARSLAST(VAR46)>=0 AND VAR47 AND VAR59 AND VAR60;
VAR62:=COUNT(VAR58,ABS(MAX(BARSLAST(VAR48),BARSLAST(VAR47))-BARSLAST(VAR46)))=0;
VAR63:=BARSLAST(VAR48)>=0 AND BARSLAST(VAR47)>=0 AND VAR46 AND VAR60 AND VAR62;
VAR64:=COUNT(VAR58,ABS(MAX(BARSLAST(VAR46),BARSLAST(VAR47))-BARSLAST(VAR48)))=0;
VAR65:=BARSLAST(VAR46)>=0 AND BARSLAST(VAR47)>=0 AND VAR48 AND VAR60 AND VAR64;
VAR66:=VAR61 OR VAR63 OR VAR65;
VAR67:=VAR45 OR VAR41 OR VAR42;
VAR68:=COUNT(VAR67,ABS(MAX(BARSLAST(VAR36),BARSLAST(VAR37))-BARSLAST(VAR38)))=0;
VAR69:=MAX(M20,VAR27)=M20 AND MAX(VAR27,M60)=VAR27;
VAR70:=BARSLAST(VAR36)>=0 AND BARSLAST(VAR37)>=0 AND VAR38 AND VAR68 AND VAR69;
VAR71:=COUNT(VAR67,ABS(MAX(BARSLAST(VAR36),BARSLAST(VAR38))-BARSLAST(VAR37)))=0;
VAR72:=BARSLAST(VAR36)>=0 AND BARSLAST(VAR38)>=0 AND VAR37 AND VAR69 AND VAR71;
VAR73:=COUNT(VAR67,ABS(MAX(BARSLAST(VAR37),BARSLAST(VAR38))-BARSLAST(VAR36)))=0;
VAR74:=BARSLAST(VAR37)>=0 AND BARSLAST(VAR38)>=0 AND VAR36 AND VAR69 AND VAR73;
VAR75:=VAR70 OR VAR72 OR VAR74;
VAR76:=VAR36 OR VAR37 OR VAR38;
VAR77:=COUNT(VAR76,ABS(MAX(BARSLAST(VAR45),BARSLAST(VAR41))-BARSLAST(VAR42)))=0;
VAR78:=MIN(M20,VAR27)=M20 AND MIN(VAR27,M60)=VAR27;
VAR79:=BARSLAST(VAR45)>=0 AND BARSLAST(VAR41)>=0 AND VAR42 AND VAR77 AND VAR78;
VAR80:=COUNT(VAR76,ABS(MAX(BARSLAST(VAR45),BARSLAST(VAR42))-BARSLAST(VAR41)))=0;
VAR81:=BARSLAST(VAR45)>=0 AND BARSLAST(VAR42)>=0 AND VAR41 AND VAR78 AND VAR80;
VAR82:=COUNT(VAR76,ABS(MAX(BARSLAST(VAR41),BARSLAST(VAR42))-BARSLAST(VAR45)))=0;
VAR83:=BARSLAST(VAR41)>=0 AND BARSLAST(VAR42)>=0 AND VAR45 AND VAR78 AND VAR82;
VAR84:=VAR79 OR VAR81 OR VAR83;
VAR85:=VAR48 OR VAR39 OR VAR40;
VAR86:=COUNT(VAR85,ABS(MAX(BARSLAST(VAR29),BARSLAST(VAR32))-BARSLAST(VAR35)))=0;
VAR87:=MAX(M5,M60)=M5 AND MAX(M10,M60)=M10;
VAR88:=BARSLAST(VAR29)>=0 AND BARSLAST(VAR32)>=0 AND VAR35 AND VAR86 AND VAR87;
VAR89:=COUNT(VAR85,ABS(MAX(BARSLAST(VAR29),BARSLAST(VAR35))-BARSLAST(VAR32)))=0;
VAR90:=BARSLAST(VAR29)>=0 AND BARSLAST(VAR35)>=0 AND VAR32 AND VAR87 AND VAR89;
VAR91:=COUNT(VAR85,ABS(MAX(BARSLAST(VAR32),BARSLAST(VAR35))-BARSLAST(VAR29)))=0;
VAR92:=BARSLAST(VAR32)>=0 AND BARSLAST(VAR35)>=0 AND VAR29 AND VAR87 AND VAR91;
VAR93:=VAR88 OR VAR90 OR VAR92;
VAR94:=VAR29 OR VAR32 OR VAR35;
VAR95:=COUNT(VAR94,ABS(MAX(BARSLAST(VAR48),BARSLAST(VAR39))-BARSLAST(VAR40)))=0;
VAR96:=MIN(M5,M60)=M5 AND MIN(M10,M60)=M10;
VAR97:=BARSLAST(VAR48)>=0 AND BARSLAST(VAR39)>=0 AND VAR40 AND VAR95 AND VAR96;
VAR98:=COUNT(VAR94,ABS(MAX(BARSLAST(VAR48),BARSLAST(VAR40))-BARSLAST(VAR39)))=0;
VAR99:=BARSLAST(VAR48)>=0 AND BARSLAST(VAR40)>=0 AND VAR39 AND VAR96 AND VAR98;
VAR100:=COUNT(VAR94,ABS(MAX(BARSLAST(VAR39),BARSLAST(VAR40))-BARSLAST(VAR48)))=0;
VAR101:=BARSLAST(VAR39)>=0 AND BARSLAST(VAR40)>=0 AND VAR48 AND VAR96 AND VAR100;
VAR102:=VAR97 OR VAR99 OR VAR101;
VAR103:=VAR57 OR VAR75 OR VAR93;
VAR104:=VAR66 OR VAR84 OR VAR102;
VAR105:=MA(AMOUNT,5);
VAR106:=MA(AMOUNT,10);
VAR107:=MA(AMOUNT,20);
VAR108:=MA(AMOUNT,40);
VAR109:=MA(AMOUNT,60);
VAR110:=CROSS(VAR105,VAR106);
VAR111:=CROSS(VAR105,VAR107);
VAR112:=CROSS(VAR105,VAR108);
VAR113:=CROSS(VAR105,VAR109);
VAR114:=CROSS(VAR106,VAR107);
VAR115:=CROSS(VAR106,VAR108);
VAR116:=CROSS(VAR106,VAR109);
VAR117:=CROSS(VAR107,VAR108);
VAR118:=CROSS(VAR107,VAR109);
VAR119:=CROSS(VAR108,VAR109);
VAR120:=CROSS(VAR109,VAR105);
VAR121:=CROSS(VAR109,VAR106);
VAR122:=CROSS(VAR109,VAR107);
VAR123:=CROSS(VAR109,VAR108);
VAR124:=CROSS(VAR108,VAR105);
VAR125:=CROSS(VAR108,VAR106);
VAR126:=CROSS(VAR108,VAR107);
VAR127:=CROSS(VAR107,VAR105);
VAR128:=CROSS(VAR107,VAR106);
VAR129:=CROSS(VAR106,VAR105);
VAR130:=VAR129 OR VAR127 OR VAR128;
VAR131:=COUNT(VAR130,ABS(MAX(BARSLAST(VAR110),BARSLAST(VAR111))-BARSLAST(VAR114)))=0;
VAR132:=MAX(VAR105,VAR107)=VAR105 AND MAX(VAR106,VAR107)=VAR106;
VAR133:=BARSLAST(VAR110)>=0 AND BARSLAST(VAR111)>=0 AND VAR114 AND VAR131 AND VAR132;
VAR134:=COUNT(VAR130,ABS(MAX(BARSLAST(VAR110),BARSLAST(VAR114))-BARSLAST(VAR111)))=0;
VAR135:=BARSLAST(VAR110)>=0 AND BARSLAST(VAR114)>=0 AND VAR111 AND VAR132 AND VAR134;
VAR136:=COUNT(VAR130,ABS(MAX(BARSLAST(VAR111),BARSLAST(VAR114))-BARSLAST(VAR110)))=0;
VAR137:=BARSLAST(VAR111)>=0 AND BARSLAST(VAR114)>=0 AND VAR110 AND VAR132 AND VAR136;
VAR138:=VAR133 OR VAR135 OR VAR137;
VAR139:=VAR110 OR VAR111 OR VAR114;
VAR140:=COUNT(VAR139,ABS(MAX(BARSLAST(VAR129),BARSLAST(VAR127))-BARSLAST(VAR128)))=0;
VAR141:=MIN(VAR105,VAR107)=VAR105 AND MIN(VAR106,VAR107)=VAR106;
VAR142:=BARSLAST(VAR129)>=0 AND BARSLAST(VAR127)>=0 AND VAR128 AND VAR140 AND VAR141;
VAR143:=COUNT(VAR139,ABS(MAX(BARSLAST(VAR129),BARSLAST(VAR128))-BARSLAST(VAR127)))=0;
VAR144:=BARSLAST(VAR129)>=0 AND BARSLAST(VAR128)>=0 AND VAR127 AND VAR141 AND VAR143;
VAR145:=COUNT(VAR139,ABS(MAX(BARSLAST(VAR127),BARSLAST(VAR128))-BARSLAST(VAR129)))=0;
VAR146:=BARSLAST(VAR127)>=0 AND BARSLAST(VAR128)>=0 AND VAR129 AND VAR141 AND VAR145;
VAR147:=VAR142 OR VAR144 OR VAR146;
VAR148:=VAR126 OR VAR122 OR VAR123;
VAR149:=COUNT(VAR148,ABS(MAX(BARSLAST(VAR117),BARSLAST(VAR118))-BARSLAST(VAR119)))=0;
VAR150:=MAX(VAR107,VAR108)=VAR107 AND MAX(VAR108,VAR109)=VAR108;
VAR151:=BARSLAST(VAR117)>=0 AND BARSLAST(VAR118)>=0 AND VAR119 AND VAR149 AND VAR150;
VAR152:=COUNT(VAR148,ABS(MAX(BARSLAST(VAR117),BARSLAST(VAR119))-BARSLAST(VAR118)))=0;
VAR153:=BARSLAST(VAR117)>=0 AND BARSLAST(VAR119)>=0 AND VAR118 AND VAR150 AND VAR152;
VAR154:=COUNT(VAR148,ABS(MAX(BARSLAST(VAR118),BARSLAST(VAR119))-BARSLAST(VAR117)))=0;
VAR155:=BARSLAST(VAR118)>=0 AND BARSLAST(VAR119)>=0 AND VAR117 AND VAR150 AND VAR154;
VAR156:=VAR151 OR VAR153 OR VAR155;
VAR157:=VAR117 OR VAR118 OR VAR119;
VAR158:=COUNT(VAR157,ABS(MAX(BARSLAST(VAR126),BARSLAST(VAR122))-BARSLAST(VAR123)))=0;
VAR159:=MIN(VAR107,VAR108)=VAR107 AND MIN(VAR108,VAR109)=VAR108;
VAR160:=BARSLAST(VAR126)>=0 AND BARSLAST(VAR122)>=0 AND VAR123 AND VAR158 AND VAR159;
VAR161:=COUNT(VAR157,ABS(MAX(BARSLAST(VAR126),BARSLAST(VAR123))-BARSLAST(VAR122)))=0;
VAR162:=BARSLAST(VAR126)>=0 AND BARSLAST(VAR123)>=0 AND VAR122 AND VAR159 AND VAR161;
VAR163:=COUNT(VAR157,ABS(MAX(BARSLAST(VAR122),BARSLAST(VAR123))-BARSLAST(VAR126)))=0;
VAR164:=BARSLAST(VAR122)>=0 AND BARSLAST(VAR123)>=0 AND VAR126 AND VAR159 AND VAR163;
VAR165:=VAR160 OR VAR162 OR VAR164;
VAR166:=VAR129 OR VAR120 OR VAR121;
VAR167:=COUNT(VAR166,ABS(MAX(BARSLAST(VAR110),BARSLAST(VAR113))-BARSLAST(VAR116)))=0;
VAR168:=MAX(VAR105,VAR109)=VAR105 AND MAX(VAR106,VAR109)=VAR106;
VAR169:=BARSLAST(VAR110)>=0 AND BARSLAST(VAR113)>=0 AND VAR116 AND VAR167 AND VAR168;
VAR170:=COUNT(VAR166,ABS(MAX(BARSLAST(VAR110),BARSLAST(VAR116))-BARSLAST(VAR113)))=0;
VAR171:=BARSLAST(VAR110)>=0 AND BARSLAST(VAR116)>=0 AND VAR113 AND VAR168 AND VAR170;
VAR172:=COUNT(VAR166,ABS(MAX(BARSLAST(VAR113),BARSLAST(VAR116))-BARSLAST(VAR110)))=0;
VAR173:=BARSLAST(VAR113)>=0 AND BARSLAST(VAR116)>=0 AND VAR110 AND VAR168 AND VAR172;
VAR174:=VAR169 OR VAR171 OR VAR173;
VAR175:=VAR110 OR VAR113 OR VAR116;
VAR176:=COUNT(VAR175,ABS(MAX(BARSLAST(VAR129),BARSLAST(VAR120))-BARSLAST(VAR121)))=0;
VAR177:=MIN(VAR105,VAR109)=VAR105 AND MIN(VAR106,VAR109)=VAR106;
VAR178:=BARSLAST(VAR129)>=0 AND BARSLAST(VAR120)>=0 AND VAR121 AND VAR176 AND VAR177;
VAR179:=COUNT(VAR175,ABS(MAX(BARSLAST(VAR129),BARSLAST(VAR121))-BARSLAST(VAR120)))=0;
VAR180:=BARSLAST(VAR129)>=0 AND BARSLAST(VAR121)>=0 AND VAR120 AND VAR177 AND VAR179;
VAR181:=COUNT(VAR175,ABS(MAX(BARSLAST(VAR120),BARSLAST(VAR121))-BARSLAST(VAR129)))=0;
VAR182:=BARSLAST(VAR120)>=0 AND BARSLAST(VAR121)>=0 AND VAR129 AND VAR177 AND VAR181;
VAR183:=VAR178 OR VAR180 OR VAR182;
VAR184:=波段周期*IF(PERIOD<=2,1.618,IF(PERIOD<=4,1.382,IF(PERIOD=6,0.809,IF(PERIOD=7,0.618,1))));
VAR185:=CLOSE>=HHV(CLOSE,VAR184);
VAR186:=CLOSE<=LLV(CLOSE,VAR184);
VAR187:=FILTERX(VAR185,BARSLAST(VAR186));
VAR188:=FILTERX(VAR186,BARSLAST(VAR185));
VAR189:=FILTERX(VAR187,BARSCOUNT(CLOSE));
VAR190:=FILTERX(VAR188,BARSCOUNT(CLOSE));
VAR191:=LOWRANGE(AMOUNT)>5;
VAR192:=AMOUNT<=MIN(MIN(VAR105,VAR106),VAR107);
VAR193:=MIN(MIN(MIN(MIN(AMOUNT,REF(AMOUNT,1)),REF(AMOUNT,2)),REF(AMOUNT,3)),REF(AMOUNT,4))=AMOUNT;
VAR194:=REF(AMOUNT,1)/AMOUNT>=1.191;
VAR195:=VAR191 AND VAR192 AND VAR193 AND VAR194;
VAR196:=VAR57 OR VAR75 OR VAR93;
VAR197:=BARSLAST(FILTERX(BARSLAST(FINDHIGHBARS(VAR196,BARSLAST(VAR190),3,1)),BARSCOUNT(CLOSE)))-BARSLAST(VAR190)<=5;
VAR198:=VAR196 OR VAR197;
VAR199:=VAR138 OR VAR156 OR VAR174;
VAR200:=BARSLAST(FILTERX(BARSLAST(FINDHIGHBARS(VAR199,BARSLAST(VAR190),3,1)),BARSCOUNT(CLOSE)))-BARSLAST(VAR190)<=5;
VAR201:=VAR199 OR VAR200;
VAR202:=BARSSINCE(BARSLAST(VAR190)>=0 AND VAR198)=0;
VAR203:=BARSSINCE(BARSLAST(VAR190)>=0 AND VAR201)=0;
VAR204:=BARSSINCE(BARSLAST(VAR190)>=0 AND BARSLAST(VAR202)>=0 AND BARSLAST(VAR203)>=0)=0;
VAR205:=REF(CLOSE,BARSLAST(VAR204));
VAR206:=CROSS(CLOSE,VAR205);
VAR207:=COUNT(CLOSE<VAR205,BARSLAST(VAR204));
VAR208:=MAX(CLOSE,VAR205)=CLOSE;
VAR209:=BARSSINCE(NOT(VAR207) AND VAR208 AND BARSLAST(VAR204)>0)=0;
VAR210:=BARSLAST(VAR190)-BARSLAST(VAR209);
VAR211:=IF(VAR210>=38,VAR210*0.191,IF(VAR210>0,VAR210,IF(VAR210=0,3,DRAWNULL)));
VAR212:=FINDHIGH(CLOSE,BARSLAST(VAR209)+1,VAR211,1);
VAR213:=BARSSINCE(MAX(CLOSE,VAR212)=CLOSE AND BARSLAST(VAR209)>=0 AND NOT(VAR207))=0;
VAR214:=FILTERX(CROSS(CLOSE,VAR205),BARSLAST(VAR204));
VAR215:=BARSLAST(VAR204)-BARSLAST(VAR214);
VAR216:=IF(VAR215>13,VAR215*0.191,IF(VAR215>2,VAR215,IF(VAR215>=0,VAR215+1,DRAWNULL)));
VAR217:=FINDHIGH(CLOSE,BARSLAST(VAR214)+1,VAR216,1);
VAR218:=BARSSINCE(MAX(CLOSE,VAR217)=CLOSE AND MAX(CLOSE,VAR205)=CLOSE AND BARSLAST(VAR214)>=0)=0;
VAR219:=VAR213 OR VAR218;
VAR220:=LOWRANGE(CLOSE)>=BARSLAST(VAR204)*0.618 AND BARSLAST(VAR204)>0;
VAR221:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR222:=(VAR205-CLOSE)/CLOSE*100>=2.382;
VAR223:=VAR220 AND VAR221 AND VAR222;
VAR224:=REF(CLOSE,BARSLAST(VAR223));
VAR225:=BARSLAST(VAR223)=3 AND COUNT(MAX(CLOSE,VAR224)=CLOSE,BARSLAST(VAR223))=3;
VAR226:=REF(VAR224,BARSLAST(VAR225));
VAR227:=BARSSINCE(BARSLAST(VAR225)=2 AND COUNT(MAX(CLOSE,VAR226)=CLOSE,BARSLAST(VAR225))=2)=0;
VAR228:=FINDLOWBARS(CLOSE,BARSLAST(VAR227),BARSLAST(VAR223)+1,1);
VAR229:=FILTERX(BARSLAST(VAR228),BARSCOUNT(CLOSE));
VAR230:=REF(CLOSE,BARSLAST(VAR229));
VAR231:=CROSS(CLOSE,VAR230);
VAR232:=FILTERX(CROSS(CLOSE,VAR205) OR BARSSINCE(MAX(CLOSE,VAR205)=CLOSE)=0,BARSLAST(VAR204));
VAR233:=TOPRANGE(CLOSE)>=BARSLAST(VAR232) AND BARSLAST(VAR232)>=0;
VAR234:=MAX(MAX(MAX(MAX(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR235:=(CLOSE-VAR205)/VAR205*100>=2.382;
VAR236:=VAR233 AND VAR234 AND VAR235;
VAR237:=REF(CLOSE,BARSLAST(VAR236));
VAR238:=BARSLAST(VAR236)=2 AND COUNT(MIN(CLOSE,VAR237)=CLOSE,BARSLAST(VAR236))=2;
VAR239:=REF(VAR237,BARSLAST(VAR238));
VAR240:=BARSLAST(VAR238)=2 AND COUNT(MIN(CLOSE,VAR239)=CLOSE,BARSLAST(VAR238))=2;
VAR241:=BARSSINCE(VAR240)=0;
VAR242:=FINDHIGHBARS(CLOSE,BARSLAST(VAR241),BARSLAST(VAR236)+1,1);
VAR243:=FILTERX(BARSLAST(VAR242),BARSCOUNT(CLOSE));
VAR244:=REF(CLOSE,BARSLAST(VAR243));
VAR245:=CROSS(CLOSE,VAR244);
VAR246:=FILTERX(CROSS(CLOSE,VAR244),BARSLAST(VAR243));
VAR247:=BARSLAST(VAR243)-BARSLAST(VAR246);
VAR248:=IF(VAR247>13,VAR247*0.191,IF(VAR247>2,VAR247,IF(VAR247>=0,VAR247+1,DRAWNULL)));
VAR249:=FINDHIGH(CLOSE,BARSLAST(VAR246)+1,VAR248,1);
VAR250:=BARSSINCE(MAX(CLOSE,VAR249)=CLOSE AND MAX(CLOSE,VAR244)=CLOSE AND BARSLAST(VAR246)>=0)=0;
VAR251:=LOWRANGE(CLOSE)>=BARSLAST(VAR243)*0.618 AND BARSLAST(VAR243)>0;
VAR252:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR253:=(VAR244-CLOSE)/CLOSE*100>=11.91*0.191 AND (VAR244-VAR205)/VAR205*100>=11.91;
VAR254:=VAR251 AND VAR252 AND VAR253;
VAR255:=REF(CLOSE,BARSLAST(VAR254));
VAR256:=BARSLAST(VAR254)=3 AND COUNT(MAX(CLOSE,VAR255)=CLOSE,BARSLAST(VAR254))=3;
VAR257:=REF(VAR255,BARSLAST(VAR256));
VAR258:=BARSSINCE(BARSLAST(VAR256)=2 AND COUNT(MAX(CLOSE,VAR257)=CLOSE,BARSLAST(VAR256))=2)=0;
VAR259:=FINDLOWBARS(CLOSE,BARSLAST(VAR258),BARSLAST(VAR254)+1,1);
VAR260:=FILTERX(BARSLAST(VAR259),BARSCOUNT(CLOSE));
VAR261:=REF(CLOSE,BARSLAST(VAR260));
VAR262:=CROSS(CLOSE,VAR261);
VAR263:=LOWRANGE(CLOSE)>=BARSLAST(VAR260)*0.618 AND BARSLAST(VAR260)>0;
VAR264:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR265:=(VAR261-CLOSE)/CLOSE*100>=11.91*0.382 AND (VAR244-VAR205)/VAR205*100>=11.91;
VAR266:=VAR263 AND VAR264 AND VAR265;
VAR267:=REF(CLOSE,BARSLAST(VAR266));
VAR268:=BARSLAST(VAR266)=3 AND COUNT(MAX(CLOSE,VAR267)=CLOSE,BARSLAST(VAR266))=3;
VAR269:=REF(VAR267,BARSLAST(VAR268));
VAR270:=BARSSINCE(BARSLAST(VAR268)=2 AND COUNT(MAX(CLOSE,VAR269)=CLOSE,BARSLAST(VAR268))=2)=0;
VAR271:=FINDLOWBARS(CLOSE,BARSLAST(VAR270),BARSLAST(VAR266)+1,1);
VAR272:=FILTERX(BARSLAST(VAR271),BARSCOUNT(CLOSE));
VAR273:=REF(CLOSE,BARSLAST(VAR272));
VAR274:=CROSS(CLOSE,VAR273);
VAR275:=FILTERX(CROSS(CLOSE,VAR244) OR BARSSINCE(MAX(CLOSE,VAR244)=CLOSE AND BARSLAST(VAR243)>0)=0,BARSLAST(VAR243));
VAR276:=BARSSINCE(BARSLAST(VAR275) AND VAR93)=0;
VAR277:=FILTERX(VAR275 OR VAR276,BARSLAST(VAR243));
VAR278:=TOPRANGE(CLOSE)>=BARSLAST(VAR277);
VAR279:=(CLOSE-M60)/M60*100>=11.91*0.191 AND (CLOSE-VAR244)/VAR244*100>=11.91*0.382;
VAR280:=MAX(MAX(MAX(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3))=CLOSE;
VAR281:=VAR278 AND VAR279 AND VAR280;
VAR282:=REF(CLOSE,BARSLAST(VAR281));
VAR283:=BARSLAST(VAR281)=2 AND COUNT(MIN(CLOSE,VAR282)=CLOSE,BARSLAST(VAR281))=2;
VAR284:=REF(VAR282,BARSLAST(VAR283));
VAR285:=BARSLAST(VAR283)=2 AND COUNT(MIN(CLOSE,VAR284)=CLOSE,BARSLAST(VAR283))=2;
VAR286:=IF(BARSLAST(VAR281)-BARSLAST(VAR285)>0,BARSLAST(VAR281)-BARSLAST(VAR285),DRAWNULL);
VAR287:=COUNT(VAR195,VAR286) AND VAR285;
VAR288:=BARSLAST(VAR285) AND VAR195 AND EVERY(MIN(CLOSE,REF(VAR284,BARSLAST(VAR285)))=CLOSE,BARSLAST(VAR285));
VAR289:=BARSLAST(VAR287 OR VAR288)=0 AND COUNT((LOW-M60)/M60*100>0,VAR286)=VAR286;
VAR290:=FINDHIGHBARS(CLOSE,BARSLAST(VAR289),BARSLAST(VAR281)+1,1);
VAR291:=FILTERX(BARSLAST(VAR290),BARSCOUNT(CLOSE));
VAR292:=REF(CLOSE,BARSLAST(VAR291));
VAR293:=CROSS(CLOSE,VAR292);
VAR294:=FILTERX(CROSS(CLOSE,VAR292),BARSLAST(VAR291));
VAR295:=BARSLAST(VAR291)-BARSLAST(VAR294);
VAR296:=IF(VAR295>13,VAR295*0.191,IF(VAR295>2,VAR295,IF(VAR295>=0,VAR295+1,DRAWNULL)));
VAR297:=FINDHIGH(CLOSE,BARSLAST(VAR294)+1,VAR296,1);
VAR298:=BARSSINCE(MAX(CLOSE,VAR297)=CLOSE AND MAX(CLOSE,VAR292)=CLOSE AND BARSLAST(VAR294)>=0)=0;
VAR299:=LOWRANGE(CLOSE)>=BARSLAST(VAR291)*0.618 AND BARSLAST(VAR291)>0;
VAR300:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR301:=(VAR292-CLOSE)/CLOSE*100>=11.91*0.191 AND (VAR292-VAR244)/VAR244*100>=11.91;
VAR302:=VAR299 AND VAR300 AND VAR301;
VAR303:=REF(CLOSE,BARSLAST(VAR302));
VAR304:=BARSLAST(VAR302)=3 AND COUNT(MAX(CLOSE,VAR303)=CLOSE,BARSLAST(VAR302))=3;
VAR305:=REF(VAR303,BARSLAST(VAR304));
VAR306:=BARSSINCE(BARSLAST(VAR304)=2 AND COUNT(MAX(CLOSE,VAR305)=CLOSE,BARSLAST(VAR304))=2)=0;
VAR307:=FINDLOWBARS(CLOSE,BARSLAST(VAR306),BARSLAST(VAR302)+1,1);
VAR308:=FILTERX(BARSLAST(VAR307),BARSCOUNT(CLOSE));
VAR309:=REF(CLOSE,BARSLAST(VAR308));
VAR310:=CROSS(CLOSE,VAR309);
VAR311:=LOWRANGE(CLOSE)>=BARSLAST(VAR308)*0.618 AND BARSLAST(VAR308)>0;
VAR312:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR313:=(VAR309-CLOSE)/CLOSE*100>=11.91*0.382 AND (VAR292-VAR244)/VAR244*100>=11.91;
VAR314:=VAR311 AND VAR312 AND VAR313;
VAR315:=REF(CLOSE,BARSLAST(VAR314));
VAR316:=BARSLAST(VAR314)=3 AND COUNT(MAX(CLOSE,VAR315)=CLOSE,BARSLAST(VAR314))=3;
VAR317:=REF(VAR315,BARSLAST(VAR316));
VAR318:=BARSSINCE(BARSLAST(VAR316)=2 AND COUNT(MAX(CLOSE,VAR317)=CLOSE,BARSLAST(VAR316))=2)=0;
VAR319:=FINDLOWBARS(CLOSE,BARSLAST(VAR318),BARSLAST(VAR314)+1,1);
VAR320:=FILTERX(BARSLAST(VAR319),BARSCOUNT(CLOSE));
VAR321:=REF(CLOSE,BARSLAST(VAR320));
VAR322:=CROSS(CLOSE,VAR321);
VAR323:=FILTERX(CROSS(CLOSE,VAR292) OR BARSSINCE(MAX(CLOSE,VAR292)=CLOSE AND BARSLAST(VAR291)>0)=0,BARSLAST(VAR291));
VAR324:=BARSSINCE(BARSLAST(VAR323) AND VAR93)=0;
VAR325:=FILTERX(VAR323 OR VAR324,BARSLAST(VAR291));
VAR326:=TOPRANGE(CLOSE)>=BARSLAST(VAR325);
VAR327:=(CLOSE-M60)/M60*100>=11.91*0.191 AND (CLOSE-VAR292)/VAR292*100>=11.91*0.382;
VAR328:=MAX(MAX(MAX(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3))=CLOSE;
VAR329:=VAR326 AND VAR327 AND VAR328;
VAR330:=REF(CLOSE,BARSLAST(VAR329));
VAR331:=BARSLAST(VAR329)=2 AND COUNT(MIN(CLOSE,VAR330)=CLOSE,BARSLAST(VAR329))=2;
VAR332:=REF(VAR330,BARSLAST(VAR331));
VAR333:=BARSLAST(VAR331)=2 AND COUNT(MIN(CLOSE,VAR332)=CLOSE,BARSLAST(VAR331))=2;
VAR334:=IF(BARSLAST(VAR329)-BARSLAST(VAR333)>0,BARSLAST(VAR329)-BARSLAST(VAR333),DRAWNULL);
VAR335:=COUNT(VAR195,VAR334) AND VAR333;
VAR336:=BARSLAST(VAR333) AND VAR195 AND EVERY(MIN(CLOSE,REF(VAR332,BARSLAST(VAR333)))=CLOSE,BARSLAST(VAR333));
VAR337:=BARSLAST(VAR335 OR VAR336)=0 AND COUNT((LOW-M60)/M60*100>0,VAR334)=VAR334;
VAR338:=FINDHIGHBARS(CLOSE,BARSLAST(VAR337),BARSLAST(VAR329)+1,1);
VAR339:=FILTERX(BARSLAST(VAR338),BARSCOUNT(CLOSE));
VAR340:=REF(CLOSE,BARSLAST(VAR339));
VAR341:=CROSS(CLOSE,VAR340);
VAR342:=FILTERX(CROSS(CLOSE,VAR340),BARSLAST(VAR339));
VAR343:=BARSLAST(VAR339)-BARSLAST(VAR342);
VAR344:=IF(VAR343>13,VAR343*0.191,IF(VAR343>2,VAR343,IF(VAR343>=0,VAR343+1,DRAWNULL)));
VAR345:=FINDHIGH(CLOSE,BARSLAST(VAR342)+1,VAR344,1);
VAR346:=BARSSINCE(MAX(CLOSE,VAR345)=CLOSE AND MAX(CLOSE,VAR340)=CLOSE AND BARSLAST(VAR342)>=0)=0;
VAR347:=LOWRANGE(CLOSE)>=BARSLAST(VAR339)*0.618 AND BARSLAST(VAR339)>0;
VAR348:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR349:=(VAR340-CLOSE)/CLOSE*100>=11.91*0.191 AND (VAR340-VAR292)/VAR292*100>=11.91;
VAR350:=VAR347 AND VAR348 AND VAR349;
VAR351:=REF(CLOSE,BARSLAST(VAR350));
VAR352:=BARSLAST(VAR350)=3 AND COUNT(MAX(CLOSE,VAR351)=CLOSE,BARSLAST(VAR350))=3;
VAR353:=REF(VAR351,BARSLAST(VAR352));
VAR354:=BARSSINCE(BARSLAST(VAR352)=2 AND COUNT(MAX(CLOSE,VAR353)=CLOSE,BARSLAST(VAR352))=2)=0;
VAR355:=FINDLOWBARS(CLOSE,BARSLAST(VAR354),BARSLAST(VAR350)+1,1);
VAR356:=FILTERX(BARSLAST(VAR355),BARSCOUNT(CLOSE));
VAR357:=REF(CLOSE,BARSLAST(VAR356));
VAR358:=CROSS(CLOSE,VAR357);
VAR359:=LOWRANGE(CLOSE)>=BARSLAST(VAR356)*0.618 AND BARSLAST(VAR356)>0;
VAR360:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR361:=(VAR357-CLOSE)/CLOSE*100>=11.91*0.382 AND (VAR340-VAR292)/VAR292*100>=11.91;
VAR362:=VAR359 AND VAR360 AND VAR361;
VAR363:=REF(CLOSE,BARSLAST(VAR362));
VAR364:=BARSLAST(VAR362)=3 AND COUNT(MAX(CLOSE,VAR363)=CLOSE,BARSLAST(VAR362))=3;
VAR365:=REF(VAR363,BARSLAST(VAR364));
VAR366:=BARSSINCE(BARSLAST(VAR364)=2 AND COUNT(MAX(CLOSE,VAR365)=CLOSE,BARSLAST(VAR364))=2)=0;
VAR367:=FINDLOWBARS(CLOSE,BARSLAST(VAR366),BARSLAST(VAR362)+1,1);
VAR368:=FILTERX(BARSLAST(VAR367),BARSCOUNT(CLOSE));
VAR369:=REF(CLOSE,BARSLAST(VAR368));
VAR370:=CROSS(CLOSE,VAR369);
VAR371:=FILTERX(CROSS(CLOSE,VAR340) OR BARSSINCE(MAX(CLOSE,VAR340)=CLOSE AND BARSLAST(VAR339)>0)=0,BARSLAST(VAR339));
VAR372:=BARSSINCE(BARSLAST(VAR371) AND VAR93)=0;
VAR373:=FILTERX(VAR371 OR VAR372,BARSLAST(VAR339));
VAR374:=TOPRANGE(CLOSE)>=BARSLAST(VAR373);
VAR375:=(CLOSE-M60)/M60*100>=11.91*0.191 AND (CLOSE-VAR340)/VAR340*100>=11.91*0.382;
VAR376:=MAX(MAX(MAX(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3))=CLOSE;
VAR377:=VAR374 AND VAR375 AND VAR376;
VAR378:=REF(CLOSE,BARSLAST(VAR377));
VAR379:=BARSLAST(VAR377)=2 AND COUNT(MIN(CLOSE,VAR378)=CLOSE,BARSLAST(VAR377))=2;
VAR380:=REF(VAR378,BARSLAST(VAR379));
VAR381:=BARSLAST(VAR379)=2 AND COUNT(MIN(CLOSE,VAR380)=CLOSE,BARSLAST(VAR379))=2;
VAR382:=IF(BARSLAST(VAR377)-BARSLAST(VAR381)>0,BARSLAST(VAR377)-BARSLAST(VAR381),DRAWNULL);
VAR383:=COUNT(VAR195,VAR382) AND VAR381;
VAR384:=BARSLAST(VAR381) AND VAR195 AND EVERY(MIN(CLOSE,REF(VAR380,BARSLAST(VAR381)))=CLOSE,BARSLAST(VAR381));
VAR385:=BARSLAST(VAR383 OR VAR384)=0 AND COUNT((LOW-M60)/M60*100>0,VAR382)=VAR382;
VAR386:=FINDHIGHBARS(CLOSE,BARSLAST(VAR385),BARSLAST(VAR377)+1,1);
VAR387:=FILTERX(BARSLAST(VAR386),BARSCOUNT(CLOSE));
VAR388:=REF(CLOSE,BARSLAST(VAR387));
VAR389:=CROSS(CLOSE,VAR388);
VAR390:=FILTERX(CROSS(CLOSE,VAR388),BARSLAST(VAR387));
VAR391:=BARSLAST(VAR387)-BARSLAST(VAR390);
VAR392:=IF(VAR391>13,VAR391*0.191,IF(VAR391>2,VAR391,IF(VAR391>=0,VAR391+1,DRAWNULL)));
VAR393:=FINDHIGH(CLOSE,BARSLAST(VAR390)+1,VAR392,1);
VAR394:=BARSSINCE(MAX(CLOSE,VAR393)=CLOSE AND MAX(CLOSE,VAR388)=CLOSE AND BARSLAST(VAR390)>=0)=0;
VAR395:=LOWRANGE(CLOSE)>=BARSLAST(VAR387)*0.618 AND BARSLAST(VAR387)>0;
VAR396:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR397:=(VAR388-CLOSE)/CLOSE*100>=11.91*0.191 AND (VAR388-VAR340)/VAR340*100>=11.91;
VAR398:=VAR395 AND VAR396 AND VAR397;
VAR399:=REF(CLOSE,BARSLAST(VAR398));
VAR400:=BARSLAST(VAR398)=3 AND COUNT(MAX(CLOSE,VAR399)=CLOSE,BARSLAST(VAR398))=3;
VAR401:=REF(VAR399,BARSLAST(VAR400));
VAR402:=BARSSINCE(BARSLAST(VAR400)=2 AND COUNT(MAX(CLOSE,VAR401)=CLOSE,BARSLAST(VAR400))=2)=0;
VAR403:=FINDLOWBARS(CLOSE,BARSLAST(VAR402),BARSLAST(VAR398)+1,1);
VAR404:=FILTERX(BARSLAST(VAR403),BARSCOUNT(CLOSE));
VAR405:=REF(CLOSE,BARSLAST(VAR404));
VAR406:=CROSS(CLOSE,VAR405);
VAR407:=LOWRANGE(CLOSE)>=BARSLAST(VAR404)*0.618 AND BARSLAST(VAR404)>0;
VAR408:=MIN(MIN(MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2)),REF(CLOSE,3)),REF(CLOSE,4))=CLOSE;
VAR409:=(VAR405-CLOSE)/CLOSE*100>=11.91*0.382 AND (VAR388-VAR340)/VAR340*100>=11.91;
VAR410:=VAR407 AND VAR408 AND VAR409;
VAR411:=REF(CLOSE,BARSLAST(VAR410));
VAR412:=BARSLAST(VAR410)=3 AND COUNT(MAX(CLOSE,VAR411)=CLOSE,BARSLAST(VAR410))=3;
VAR413:=REF(VAR411,BARSLAST(VAR412));
VAR414:=BARSSINCE(BARSLAST(VAR412)=2 AND COUNT(MAX(CLOSE,VAR413)=CLOSE,BARSLAST(VAR412))=2)=0;
VAR415:=FINDLOWBARS(CLOSE,BARSLAST(VAR414),BARSLAST(VAR410)+1,1);
VAR416:=FILTERX(BARSLAST(VAR415),BARSCOUNT(CLOSE));
VAR417:=REF(CLOSE,BARSLAST(VAR416));
VAR418:=CROSS(CLOSE,VAR417);
VAR419:=VAR219 OR VAR250 OR VAR298 OR VAR346 OR VAR394;
VAR420:=VAR206 OR VAR245 OR VAR293 OR VAR341 OR VAR389;
VAR421:=VAR231 OR VAR262 OR VAR274 OR VAR310 OR VAR322 OR VAR358 OR VAR406 OR VAR370 OR VAR418;
VAR422:=VAR241 OR BARSSINCE(VAR289)=0 OR BARSSINCE(VAR337)=0 OR BARSSINCE(VAR385)=0;
筑底:VAR205,COLORRED,LINETHICK3;
盘底:VAR230,COLORGREEN,LINETHICK2;
老鸭头:VAR292,COLORYELLOW,LINETHICK2;
STICKLINE(CLOSE,VAR261,VAR261,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR273,VAR273,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR244,VAR244,5,0),COLORWHITE;
STICKLINE(CLOSE,VAR309,VAR309,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR321,VAR321,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR357,VAR357,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR369,VAR369,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR340,VAR340,5,0),COLORWHITE;
STICKLINE(CLOSE,VAR405,VAR405,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR417,VAR417,(-1),0),COLORYELLOW;
STICKLINE(CLOSE,VAR388,VAR388,5,0),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR423:=CLOSE>REF(CLOSE,1) AND CLOSE<OPEN;
VAR424:=CLOSE<REF(CLOSE,1) AND CLOSE>OPEN;
STICKLINE(VAR423,CLOSE,OPEN,(-1),0),COLORRED;
STICKLINE(VAR424,OPEN,CLOSE,(-1),0),COLORMAGENTA;
STICKLINE(VAR422,OPEN,CLOSE,(-1),0),COLORWHITE;
STICKLINE(VAR419,OPEN,CLOSE,(-1),0),COLORYELLOW;
VAR425:=VAR205>=MAX(OPEN,CLOSE);
VAR426:=VAR205>=MIN(OPEN,CLOSE);
VAR427:=VAR205<=MAX(OPEN,CLOSE);
VAR428:=VAR230>=MAX(OPEN,CLOSE);
VAR429:=VAR230>=MIN(OPEN,CLOSE);
VAR430:=VAR230<=MAX(OPEN,CLOSE);
STICKLINE(BARSLAST(VAR227)>=0 AND VAR425,OPEN,CLOSE,(-1),0),COLORRED;
STICKLINE(BARSLAST(VAR227)>=0 AND VAR426 AND VAR427,MIN(OPEN,CLOSE),VAR205,(-1),0),COLORRED;
STICKLINE(VAR428,OPEN,CLOSE,(-1),0),COLORGREEN;
STICKLINE(VAR429 AND VAR430,MIN(OPEN,CLOSE),VAR230,(-1),0),COLORGREEN;
DRAWICON(VAR204,LOW*0.99,23);
DRAWICON(VAR419,HIGH*1.01,1);