极品人气副图具有一定的观赏性显示五星
VAR0:=21;
VAR1:=IF((LOW = LLV(LOW,VAR0)),LOW,DRAWNULL);
VAR2:=CONST(BARSLAST((VAR1 != DRAWNULL)));
VAR3:=CONST(IF((VAR2 = 0),HIGH,REF(HIGH,VAR2)));
VAR4:=CONST(((REF(BARSLAST((HIGH > VAR3)),(VAR2 + 1)) + VAR2) + 1));
VAR5:=CONST(IF((VAR4 = 0),HIGH,REF(HIGH,VAR4)));
VAR6:=CONST(((REF(BARSLAST((HIGH > VAR5)),(VAR4 + 1)) + VAR4) + 1));
VAR7:=IF((CURRBARSCOUNT <= (VAR2 + 21)),CONST(IF((VAR6 = 0),HIGH,REF(HIGH,VAR6))),DRAWNULL);
VAR8:=IF((CURRBARSCOUNT <= (VAR2 + 1)),IF((LOW = LLV(LOW,VAR0)),LOW,DRAWNULL),DRAWNULL);
VAR9:=IF((CURRBARSCOUNT <= (VAR2 + 21)),CONST(IF((VAR4 = 0),HIGH,REF(HIGH,VAR4))),DRAWNULL);
VAR10:=IF((HIGH = HHV(HIGH,VAR0)),HIGH,DRAWNULL);
VAR11:=CONST(BARSLAST((VAR10 != DRAWNULL)));
VAR12:=CONST(IF((VAR11 = 0),LOW,REF(LOW,VAR11)));
VAR13:=CONST(((REF(BARSLAST((LOW < VAR12)),(VAR11 + 1)) + VAR11) + 1));
VAR14:=CONST(IF((VAR13 = 0),LOW,REF(LOW,VAR13)));
VAR15:=CONST(((REF(BARSLAST((LOW < VAR14)),(VAR13 + 1)) + VAR13) + 1));
VAR16:=IF((CURRBARSCOUNT <= (VAR11 + 21)),CONST(IF((VAR15 = 0),LOW,REF(LOW,VAR15))),DRAWNULL);
VAR17:=IF((CURRBARSCOUNT <= (VAR11 + 1)),IF((HIGH = HHV(HIGH,VAR0)),HIGH,DRAWNULL),DRAWNULL);
VAR18:=IF((CURRBARSCOUNT <= (VAR11 + 21)),CONST(IF((VAR13 = 0),LOW,REF(LOW,VAR13))),DRAWNULL);
DRAWICON((VAR8 > 0),(LOW - 0.5),37);
DRAWICON((VAR17 > 0),(HIGH + 0.5),38);
VAR21:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),6,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),6,1)) * 100);
VAR22:=REF(CLOSE,1);
VAR23:=((SMA(MAX((CLOSE - VAR22),0),6,1) / SMA(ABS((CLOSE - VAR22)),6,1)) * 100);
VAR24:=((((CLOSE / REF(CLOSE,1)) >= 1.062) AND ((HIGH / CLOSE) < 1.005)) AND ((MA(CLOSE,90) / CLOSE) >= 1.15));
VAR25:=(VAR24 AND (COUNT(VAR24,20) = 1));
VAR26:=((INDEXC - REF(INDEXC,1)) / REF(INDEXC,1));
VAR27:=((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1));
VAR28:=(IF((VAR26 > 0.01),0.9,1) AND IF((VAR26 > -0.025),1,1.2));
VAR29:=((VAR28 * (VAR27 - VAR26)) * 100);
VAR30:=SUM(VAR29,10);
VAR31:=SMA(VAR30,40,1);
VAR32:=(VAR30 > 20);
VAR33:=(((CROSS(CLOSE,MA((CLOSE * 1.055),3)) AND (CLOSE > (OPEN * 1.06))) AND (VOL >= (REF(VOL,1) * 1.5))) AND (CLOSE >= MA(CLOSE,10)));
VAR34:=(VAR32 AND VAR33);
VAR35:=((-100 * (HHV(HIGH,3) - CLOSE)) / (HHV(HIGH,3) - LLV(LOW,3)));
VAR36:=(((CROSS(VAR35,-87) AND (OPEN = (1.09 * REF(CLOSE,1)))) AND (INDEXC > (0.98 * REF(INDEXC,1)))) AND (CLOSE <= (1.47 * LLV(CLOSE,58))));
VAR37:=(EMA(CLOSE,12) - EMA(CLOSE,26));
VAR38:=EMA(VAR37,9);
VAR39:=(2 * (VAR37 - VAR38));
VAR40:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
VAR41:=SMA(VAR40,3,1);
VAR42:=SMA(VAR41,3,1);
VAR43:=(EMA(IF((VAR38 > REF(VAR38,1)),1,-1),14) * 14);
VAR44:=((EMA(IF((VAR42 > REF(VAR42,1)),1,-1),14) * 14) * 2);
VAR45:=(((MA(CLOSE,5) / MA(CLOSE,70)) - 1) * 100);
VAR46:=(((VAR45 + VAR44) + VAR43) / 3);
VAR47:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
VAR48:=IF((((CLOSE AND (MA(VOL,5) / 240)) AND (CLOSE > (REF(CLOSE,1) * 1))) AND CLOSE),88,0);
VAR49:=IF(((((((CLOSE / REF(CLOSE,1)) > 1.05) AND (((VOL / CAPITAL) * 100) < 10)) AND (CLOSE < 17)) AND ((HIGH / CLOSE) < 1.01)) AND (VAR48 > 0)),91,0);
VAR50:=IF((((((VAR46 > REF(VAR46,1)) AND (REF(VAR46,1) < REF(VAR46,2))) AND ((VAR25 OR VAR34) OR VAR36)) OR (VAR48 > 0)) OR (VAR49 > 0)),85,0);
VAR51:=IF((VAR49 > 0),95,0);
VAR52:=IF(((VAR48 > 0) OR (VAR49 > 0)),91,0);
VAR53:=IF((((VAR50 > 0) OR (VAR49 > 0)) OR (VAR48 > 0)),88,0);
VAR54:=((100 * (CLOSE - LLV(LOW,42))) / (HHV(HIGH,42) - LLV(LOW,42)));
VAR55:=(COUNT((MA(CLOSE,3) > REF(MA(CLOSE,3),1)),1) = 1);
VAR56:=((((VAR54 < 93) AND VAR55) AND MAX(MAX(VAR51,VAR52),VAR53)) * 100);
DJ:REF(LOW,BARSLAST((VAR8 = LOW)));
VAR58:=(DJ * 2);
VAR59:=BARSLAST((VAR8 = LOW));
ZJ:IF((CLOSE > (DJ * 2)),((DJ * 2) * 2),DRAWNULL);
VAR61:=IF(((VAR59 >= 0) AND ((DJ * (1 + (VAR59 / 100))) < VAR58)),(DJ * (1 + (VAR59 / 100))),DRAWNULL);
VAR62:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 0.819) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 0.819) / 100))),DRAWNULL);
VAR63:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 0.5) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 0.5) / 100))),DRAWNULL);
VAR64:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 2) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 2) / 100))),DRAWNULL);
DJH:REF(HIGH,BARSLAST((VAR17 = HIGH))),COLORWHITE;
VAR66:=(DJH * 0.5);
VAR67:=BARSLAST((VAR17 = HIGH));
VAR68:=IF(((VAR67 >= 0) AND ((DJH * (1 - (VAR67 / 100))) > VAR66)),(DJH * (1 - (VAR67 / 100))),DRAWNULL);
VAR69:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 0.819) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 0.819) / 100))),DRAWNULL);
VAR70:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 0.5) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 0.5) / 100))),DRAWNULL);
VAR71:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 2) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 2) / 100))),DRAWNULL);
目标1:IF((CLOSE > (DJ * 1.5)),(DJ * 2),DRAWNULL);
Z1:IF(((VAR61 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR61,DRAWNULL),COLORMAGENTA;
Z2:IF(((VAR62 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR62,DRAWNULL),COLORC0C000;
Z3:IF(((VAR63 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR63,DRAWNULL),COLOR40C040;
Z4:IF(((VAR64 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR64,DRAWNULL),COLORRED;
Y1:IF(((VAR68 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR68,DRAWNULL),COLORMAGENTA;
Y2:IF(((VAR69 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR69,DRAWNULL),COLORC0C000;
Y3:IF(((VAR70 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR70,DRAWNULL),COLOR40C040;
Y4:IF(((VAR71 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR71,DRAWNULL),COLORRED;
VAR81:=CONST(MAX(BARSLAST((VAR17 = HIGH)),BARSLAST((VAR8 = LOW))));
VAR82:=CONST(DYNAINFO(7));
VAR83:=CONST(DJH);
VAR84:=(VAR70 + (2 * STD(VAR70,20)));
VAR85:=(VAR70 - (2 * STD(VAR70,20)));
STICKLINE(((CURRBARSCOUNT < (VAR81 + 2)) AND (CLOSE >= OPEN)),HIGH,LOW,0.001,0),COLORRED;
STICKLINE(((CURRBARSCOUNT < (VAR81 + 2)) AND (CLOSE >= OPEN)),CLOSE,OPEN,3,1),COLORRED;
STICKLINE(((CURRBARSCOUNT < (VAR81 + 2)) AND (CLOSE < OPEN)),HIGH,LOW,0.001,0),COLORC0C000;
STICKLINE(((CURRBARSCOUNT < (VAR81 + 2)) AND (CLOSE < OPEN)),CLOSE,OPEN,3,0),COLORC0C000;
VAR90:=(DJ * (1 + ((1 * 3) / 100)));
VAR91:=(CLOSE > CONST(VAR90));
VAR92:=((REF(VAR91,1) = 0) OR (REF(DJ,1) = DRAWNULL));
DRAWNUMBER(((VAR91 = 1) AND VAR92),(DJ * 1.03),(DJ * 1.03)),COLORRED;
VAR94:=IF(((DJ * 1.191) <= DJH),(DJ * 1.191),DRAWNULL);
VAR95:=IF(((DJ * 1.382) <= DJH),(DJ * 1.382),DRAWNULL);
VAR96:=IF(((DJ * 1.5) <= DJH),(DJ * 1.5),DRAWNULL);
VAR97:=IF(((DJ * 1.809) <= DJH),(DJ * 1.809),DRAWNULL);
STICKLINE((((OPEN > REF(((CLOSE + OPEN) / 2),1)) OR (CLOSE > REF(((CLOSE + OPEN) / 2),1))) AND (DJ > 0)),REF(((CLOSE + OPEN) / 2),1),REF(((CLOSE + OPEN) / 2),1),7,0),COLORYELLOW;
VAR99:=COST(90);
VAR100:=COST(70);
VAR101:=COST(50);
VAR102:=COST(20);
VAR103:=COST(1);
VAR104:=CONST((20 / (VAR99 - VAR100)));
VAR105:=CONST((20 / (VAR100 - VAR101)));
VAR106:=CONST((30 / (VAR101 - VAR102)));
VAR107:=((VAR104 + VAR105) + VAR106);
VAR108:=(VAR104 / VAR107);
VAR109:=(VAR105 / VAR107);
VAR110:=(VAR106 / VAR107);
VAR111:=CONST(DJ);
STICKLINE((CURRBARSCOUNT = (VAR81 + 21)),VAR83,VAR111,17,1),COLORWHITE;
VAR113:=ABS((VAR83 - VAR111));
VAR114:=(VAR108 * VAR113);
VAR115:=(VAR109 * VAR113);
VAR116:=(VAR110 * VAR113);
VAR117:=MIN(VAR83,VAR111);
VAR118:=(VAR117 + VAR114);
VAR119:=((VAR117 + VAR114) + VAR115);
VAR120:=(((VAR117 + VAR114) + VAR115) + VAR116);
STICKLINE((CURRBARSCOUNT = (VAR81 + 21)),VAR117,VAR118,7,0),COLORC0C000;
STICKLINE((CURRBARSCOUNT = (VAR81 + 21)),VAR119,VAR118,7,0),COLORYELLOW;
STICKLINE((CURRBARSCOUNT = (VAR81 + 21)),VAR119,VAR120,7,0),COLORRED;
VAR124:=(VAR104 + VAR106);
VAR125:=(VAR104 / VAR124);
VAR126:=(VAR106 / VAR124);
VAR127:=(VAR125 * VAR113);
VAR128:=(VAR126 * VAR113);
VAR129:=(VAR117 + VAR127);
VAR130:=(VAR117 + VAR128);
STICKLINE((CURRBARSCOUNT = (VAR81 + 25)),VAR117,VAR129,7,0),COLORGREEN;
STICKLINE((CURRBARSCOUNT = (VAR81 + 29)),VAR117,VAR130,7,0),COLOR8000FF;
VAR133:=(1 * VAR113);
VAR134:=(0.618 * VAR113);
VAR135:=(VAR117 + VAR133);
VAR136:=(VAR117 + VAR134);
VAR137:=VAR117;
STICKLINE(((CURRBARSCOUNT <= (VAR81 + 89)) AND (CURRBARSCOUNT >= (VAR81 + 47))),VAR136,VAR136,7,0),COLOR8000FF;
VAR139:=((CURRBARSCOUNT <= (VAR81 + 89)) AND (CURRBARSCOUNT > (VAR81 + 55)));
VAR140:=BARSLAST(NOT(VAR139));
STICKLINE(((CURRBARSCOUNT <= (VAR81 + 89)) AND (CURRBARSCOUNT > (VAR81 + 55))),(VAR136 - ((VAR140 * (VAR136 - VAR137)) / 34)),(VAR136 - ((VAR140 * (VAR136 - VAR137)) / 34)),7,0),COLOR8000FF;
VAR142:=((CURRBARSCOUNT <= (VAR81 + 81)) AND (CURRBARSCOUNT > (VAR81 + 68)));
VAR143:=BARSLAST(NOT(VAR142));
STICKLINE(((CURRBARSCOUNT <= (VAR81 + 81)) AND (CURRBARSCOUNT > (VAR81 + 68))),(VAR137 + ((VAR143 * (VAR135 - VAR137)) / 13)),(VAR137 + ((VAR143 * (VAR135 - VAR137)) / 13)),7,0),COLOR8000FF;
VAR145:=((CURRBARSCOUNT <= (VAR81 + 81)) AND (CURRBARSCOUNT > (VAR81 + 47)));
VAR146:=BARSLAST(NOT(VAR145));
STICKLINE(((CURRBARSCOUNT <= (VAR81 + 81)) AND (CURRBARSCOUNT > (VAR81 + 47))),(VAR137 + ((VAR146 * (VAR136 - VAR137)) / 34)),(VAR137 + ((VAR146 * (VAR136 - VAR137)) / 34)),7,0),COLOR8000FF;
VAR148:=((CURRBARSCOUNT <= (VAR81 + 68)) AND (CURRBARSCOUNT > (VAR81 + 55)));
VAR149:=BARSLAST(NOT(VAR148));
STICKLINE(((CURRBARSCOUNT <= (VAR81 + 68)) AND (CURRBARSCOUNT > (VAR81 + 55))),(VAR135 - ((VAR149 * (VAR135 - VAR137)) / 13)),(VAR135 - ((VAR149 * (VAR135 - VAR137)) / 13)),7,0),COLOR8000FF;
VAR151:=IF(((CURRBARSCOUNT = 1) AND (PERIOD = 5)),((VOL * 240) / FROMOPEN),VOL);
VAR152:=((VAR151 * 100) / CAPITAL);
VAR153:=MA(VAR152,4);
VAR154:=MA(VAR152,9);
VAR155:=MA(VAR152,17);
VAR156:=MA(VAR152,34);
VAR157:=((((VAR153 + VAR154) + VAR155) + VAR156) / 4);
VAR158:=(VAR153 - VAR157);
VAR159:=(VAR154 - VAR157);
VAR160:=(VAR155 - VAR157);
VAR161:=(VAR156 - VAR157);
DRAWTEXT((CURRBARSCOUNT = (VAR81 + 55)),VAR137,IF(CONST((VAR158 > 0)),56,'人气')),COLORRED;
VAR163:=IF(CONST((VAR158 > 0)),(VAR137 * 1.05),VAR137);
DRAWTEXT((CURRBARSCOUNT = (VAR81 + 47)),VAR136,IF(CONST((VAR159 > 0)),58,'人气')),COLORYELLOW;
VAR165:=IF(CONST((VAR159 > 0)),(VAR136 * 1.05),VAR136);
DRAWTEXT((CURRBARSCOUNT = (VAR81 + 70)),VAR135,IF(CONST((VAR160 > 0)),59,'人气')),COLORC0C000;
VAR167:=IF(CONST((VAR160 > 0)),(VAR135 * 0.97),VAR135);
DRAWTEXT((CURRBARSCOUNT = (VAR81 + 92)),VAR136,IF(CONST((VAR161 > 0)),60,'人气')),COLORC0C0C0;
VAR169:=IF(CONST((VAR161 > 0)),(VAR136 * 0.97),VAR136);
DRAWTEXT((CURRBARSCOUNT = (VAR81 + 83)),VAR137,IF(CONST((VAR158 <= 0)),61,'人气')),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR0赋值:21
VAR1赋值:IF((最低价 = VAR0日内最低价最低值),最低价,DRAWNULL)
VAR2赋值:CONST(上次(VAR1 != DRAWNULL距今天数))
VAR3赋值:CONST(IF((VAR2 = 0),最高价,VAR2日前的最高价))
VAR4赋值:CONST(((REF(上次(最高价 > VAR3距今天数),(VAR2 + 1)) + VAR2) + 1))
VAR5赋值:CONST(IF((VAR4 = 0),最高价,VAR4日前的最高价))
VAR6赋值:CONST(((REF(上次(最高价 > VAR5距今天数),(VAR4 + 1)) + VAR4) + 1))
VAR7赋值:IF(( 到最后交易的周期 <= (VAR2 + 21)),CONST(IF((VAR6 = 0),最高价,VAR6日前的最高价)),DRAWNULL)
VAR8赋值:IF(( 到最后交易的周期 <= (VAR2 + 1)),IF((最低价 = VAR0日内最低价最低值),最低价,DRAWNULL),DRAWNULL)
VAR9赋值:IF(( 到最后交易的周期 <= (VAR2 + 21)),CONST(IF((VAR4 = 0),最高价,VAR4日前的最高价)),DRAWNULL)
VAR10:=IF((最高价 = VAR0日内最高价最高值),最高价,DRAWNULL)
VAR11:=CONST(上次(VAR10 != DRAWNULL距今天数))
VAR12:=CONST(IF((VAR11 = 0),最低价,VAR11日前的最低价))
VAR13:=CONST(((REF(上次(最低价 < VAR12距今天数),(VAR11 + 1)) + VAR11) + 1))
VAR14:=CONST(IF((VAR13 = 0),最低价,VAR13日前的最低价))
VAR15:=CONST(((REF(上次(最低价 < VAR14距今天数),(VAR13 + 1)) + VAR13) + 1))
VAR16:=IF(( 到最后交易的周期 <= (VAR11 + 21)),CONST(IF((VAR15 = 0),最低价,VAR15日前的最低价)),DRAWNULL)
VAR17:=IF(( 到最后交易的周期 <= (VAR11 + 1)),IF((最高价 = VAR0日内最高价最高值),最高价,DRAWNULL),DRAWNULL)
VAR18:=IF(( 到最后交易的周期 <= (VAR11 + 21)),CONST(IF((VAR13 = 0),最低价,VAR13日前的最低价)),DRAWNULL)
DRAWICON((VAR8 > 0),(最低价 - 0.5),37)
DRAWICON((VAR17 > 0),(最高价 + 0.5),38)
VAR21:=((SMA(MAX((收盘价 - 1日前的收盘价),0),6,1) / SMA((收盘价 - 1日前的收盘价的绝对值),6,1)) * 100)
VAR22:=1日前的收盘价
VAR23:=((SMA(MAX((收盘价 - VAR22),0),6,1) / SMA((收盘价 - VAR22的绝对值),6,1)) * 100)
VAR24:=((((收盘价 / 1日前的收盘价) >= 1.062) AND ((最高价 / 收盘价) < 1.005)) AND ((收盘价的90日简单移动平均 / 收盘价) >= 1.15))
VAR25:=(VAR24 AND (统计20日满足VAR24的天数 = 1))
VAR26:=((INDEXC - 1日前的INDEXC) / 1日前的INDEXC)
VAR27:=((收盘价 - 1日前的收盘价) / 1日前的收盘价)
VAR28:=(IF((VAR26 > 0.01),0.9,1) AND IF((VAR26 > -0.025),1,1.2))
VAR29:=((VAR28 * (VAR27 - VAR26)) * 100)
VAR30:=10的VAR29日累和
VAR30的40日[1日权重]移动平均
VAR32:=(VAR30 > 20)
VAR33:=(((CROSS(收盘价,MA((收盘价 * 1.055),3)) AND (收盘价 > (开盘价 * 1.06))) AND (成交量 >= (1日前的成交量 * 1.5))) AND (收盘价 >= MA(收盘价,10)))
VAR34:=(VAR32 AND VAR33)
VAR35:=((-100 * (3日内最高价最高值 - 收盘价)) / (3日内最高价最高值 - 3日内最低价最低值))
VAR36:=(((VAR35上穿-87 AND (开盘价 = (1.09 * 1日前的收盘价))) AND (INDEXC > (0.98 * 1日前的INDEXC))) AND (收盘价 <= (1.47 * 58日内收盘价最低值)))
VAR37:=(收盘价的12日指数移动平均 - 收盘价的26日指数移动平均)
VAR38:=VAR37的9日指数移动平均
VAR39:=(2 * (VAR37 - VAR38))
VAR40:=(((收盘价 - 9日内最低价最低值) / (9日内最高价最高值 - 9日内最低价最低值)) * 100)
VAR40的3日[1日权重]移动平均
VAR41的3日[1日权重]移动平均
VAR43:=(EMA(IF((VAR38 > 1日前的VAR38),1,-1),14) * 14)
VAR44:=((EMA(IF((VAR42 > 1日前的VAR42),1,-1),14) * 14) * 2)
VAR45:=(((收盘价的5日简单移动平均 / 收盘价的70日简单移动平均) - 1) * 100)
VAR46:=(((VAR45 + VAR44) + VAR43) / 3)
VAR47:=(收盘价的80日简单移动平均 - (收盘价的10日简单移动平均 / 3))
VAR48:=IF((((收盘价 AND (成交量的5日简单移动平均 / 240)) AND (收盘价 > (1日前的收盘价 * 1))) AND 收盘价),88,0)
VAR49:=IF(((((((收盘价 / 1日前的收盘价) > 1.05) AND (((成交量 / 当前流通股本) * 100) < 10)) AND (收盘价 < 17)) AND ((最高价 / 收盘价) < 1.01)) AND (VAR48 > 0)),91,0)
VAR50:=IF((((((VAR46 > 1日前的VAR46) AND (1日前的VAR46 < 2日前的VAR46)) AND ((VAR25 OR VAR34) OR VAR36)) OR (VAR48 > 0)) OR (VAR49 > 0)),85,0)
VAR51:=IF((VAR49 > 0),95,0)
VAR52:=IF(((VAR48 > 0) OR (VAR49 > 0)),91,0)
VAR53:=IF((((VAR50 > 0) OR (VAR49 > 0)) OR (VAR48 > 0)),88,0)
VAR54:=((100 * (收盘价 - 42日内最低价最低值)) / (42日内最高价最高值 - 42日内最低价最低值))
VAR55:=(COUNT((收盘价的3日简单移动平均 > REF(收盘价的3日简单移动平均,1)),1) = 1)
VAR56:=((((VAR54 < 93) AND VAR55) AND VAR51和VAR52较大值,VAR53)) * 100)
输出DJ:REF(最低价,上次(VAR8 = 最低价距今天数))
VAR58:=(DJ * 2)
VAR59:=上次(VAR8 = 最低价距今天数)
输出ZJ:IF((收盘价 > (DJ * 2)),((DJ * 2) * 2),DRAWNULL)
VAR61:=IF(((VAR59 >= 0) AND ((DJ * (1 + (VAR59 / 100))) < VAR58)),(DJ * (1 + (VAR59 / 100))),DRAWNULL)
VAR62:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 0.819) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 0.819) / 100))),DRAWNULL)
VAR63:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 0.5) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 0.5) / 100))),DRAWNULL)
VAR64:=IF(((VAR59 >= 0) AND ((DJ * (1 + ((VAR59 * 2) / 100))) < VAR58)),(DJ * (1 + ((VAR59 * 2) / 100))),DRAWNULL)
DJH:REF(最高价,上次(VAR17 = 最高价距今天数)),画白色
VAR66:=(DJH * 0.5)
VAR67:=上次(VAR17 = 最高价距今天数)
VAR68:=IF(((VAR67 >= 0) AND ((DJH * (1 - (VAR67 / 100))) > VAR66)),(DJH * (1 - (VAR67 / 100))),DRAWNULL)
VAR69:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 0.819) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 0.819) / 100))),DRAWNULL)
VAR70:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 0.5) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 0.5) / 100))),DRAWNULL)
VAR71:=IF(((VAR67 >= 0) AND ((DJH * (1 - ((VAR67 * 2) / 100))) > VAR66)),(DJH * (1 - ((VAR67 * 2) / 100))),DRAWNULL)
输出目标1:IF((收盘价 > (DJ * 1.5)),(DJ * 2),DRAWNULL)
输出Z1:IF(((VAR61 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR61,DRAWNULL),画洋红色
输出Z2:IF(((VAR62 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR62,DRAWNULL),COLORC0C000
输出Z3:IF(((VAR63 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR63,DRAWNULL),COLOR40C040
输出Z4:IF(((VAR64 < (DJH * 1.01)) OR (DJH = DRAWNULL)),VAR64,DRAWNULL),画红色
输出Y1:IF(((VAR68 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR68,DRAWNULL),画洋红色
输出Y2:IF(((VAR69 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR69,DRAWNULL),COLORC0C000
输出Y3:IF(((VAR70 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR70,DRAWNULL),COLOR40C040
输出Y4:IF(((VAR71 > (DJ * 0.99)) OR (DJ = DRAWNULL)),VAR71,DRAWNULL),画红色
VAR81:=CONST(MAX(上次(VAR17 = 最高价距今天数),BARSLAST((VAR8 = 最低价))))
VAR82:=CONST(现价)
VAR83:=CONST(DJH)
VAR84:=(VAR70 + (2 * VAR70的20估算标准差))
VAR85:=(VAR70 - (2 * VAR70的20估算标准差))
STICKLINE((( 到最后交易的周期 < (VAR81 + 2)) AND (收盘价 >= 开盘价)),最高价,最低价,0.001,0),画红色
STICKLINE((( 到最后交易的周期 < (VAR81 + 2)) AND (收盘价 >= 开盘价)),收盘价,开盘价,3,1),画红色
STICKLINE((( 到最后交易的周期 < (VAR81 + 2)) AND (收盘价 < 开盘价)),最高价,最低价,0.001,0),COLORC0C000
STICKLINE((( 到最后交易的周期 < (VAR81 + 2)) AND (收盘价 < 开盘价)),收盘价,开盘价,3,0),COLORC0C000
VAR90:=(DJ * (1 + ((1 * 3) / 100)))
VAR91:=(收盘价 > CONST(VAR90))
VAR92:=((1日前的VAR91 = 0) OR (1日前的DJ = DRAWNULL))
DRAWNUMBER(((VAR91 = 1) AND VAR92),(DJ * 1.03),(DJ * 1.03)),画红色
VAR94:=IF(((DJ * 1.191) <= DJH),(DJ * 1.191),DRAWNULL)
VAR95:=IF(((DJ * 1.382) <= DJH),(DJ * 1.382),DRAWNULL)
VAR96:=IF(((DJ * 1.5) <= DJH),(DJ * 1.5),DRAWNULL)
VAR97:=IF(((DJ * 1.809) <= DJH),(DJ * 1.809),DRAWNULL)
STICKLINE((((开盘价 > REF(((收盘价 + 开盘价) / 2),1)) OR (收盘价 > REF(((收盘价 + 开盘价) / 2),1))) AND (DJ > 0)),REF(((收盘价 + 开盘价) / 2),1),REF(((收盘价 + 开盘价) / 2),1),7,0),画黄色
VAR99:=获利盘为90%的成本分布
VAR100:=获利盘为70%的成本分布
VAR101:=获利盘为50%的成本分布
VAR102:=获利盘为20%的成本分布
VAR103:=获利盘为1%的成本分布
VAR104:=CONST((20 / (VAR99 - VAR100)))
VAR105:=CONST((20 / (VAR100 - VAR101)))
VAR106:=CONST((30 / (VAR101 - VAR102)))
VAR107:=((VAR104 + VAR105) + VAR106)
VAR108:=(VAR104 / VAR107)
VAR109:=(VAR105 / VAR107)
VAR110:=(VAR106 / VAR107)
VAR111:=CONST(DJ)
STICKLINE(( 到最后交易的周期 = (VAR81 + 21)),VAR83,VAR111,17,1),画白色
VAR113:=(VAR83 - VAR111的绝对值)
VAR114:=(VAR108 * VAR113)
VAR115:=(VAR109 * VAR113)
VAR116:=(VAR110 * VAR113)
VAR117:=VAR83和VAR111的较小值
VAR118:=(VAR117 + VAR114)
VAR119:=((VAR117 + VAR114) + VAR115)
VAR120:=(((VAR117 + VAR114) + VAR115) + VAR116)
STICKLINE(( 到最后交易的周期 = (VAR81 + 21)),VAR117,VAR118,7,0),COLORC0C000
STICKLINE(( 到最后交易的周期 = (VAR81 + 21)),VAR119,VAR118,7,0),画黄色
STICKLINE(( 到最后交易的周期 = (VAR81 + 21)),VAR119,VAR120,7,0),画红色
VAR124:=(VAR104 + VAR106)
VAR125:=(VAR104 / VAR124)
VAR126:=(VAR106 / VAR124)
VAR127:=(VAR125 * VAR113)
VAR128:=(VAR126 * VAR113)
VAR129:=(VAR117 + VAR127)
VAR130:=(VAR117 + VAR128)
STICKLINE(( 到最后交易的周期 = (VAR81 + 25)),VAR117,VAR129,7,0),画绿色
STICKLINE(( 到最后交易的周期 = (VAR81 + 29)),VAR117,VAR130,7,0),COLOR8000FF
VAR133:=(1 * VAR113)
VAR134:=(0.618 * VAR113)
VAR135:=(VAR117 + VAR133)
VAR136:=(VAR117 + VAR134)
VAR137:=VAR117
STICKLINE((( 到最后交易的周期 <= (VAR81 + 89)) AND ( 到最后交易的周期 >= (VAR81 + 47))),VAR136,VAR136,7,0),COLOR8000FF
VAR139:=(( 到最后交易的周期 <= (VAR81 + 89)) AND ( 到最后交易的周期 > (VAR81 + 55)))
VAR140:=上次NOT(VAR139距今天数)
STICKLINE((( 到最后交易的周期 <= (VAR81 + 89)) AND ( 到最后交易的周期 > (VAR81 + 55))),(VAR136 - ((VAR140 * (VAR136 - VAR137)) / 34)),(VAR136 - ((VAR140 * (VAR136 - VAR137)) / 34)),7,0),COLOR8000FF
VAR142:=(( 到最后交易的周期 <= (VAR81 + 81)) AND ( 到最后交易的周期 > (VAR81 + 68)))
VAR143:=上次NOT(VAR142距今天数)
STICKLINE((( 到最后交易的周期 <= (VAR81 + 81)) AND ( 到最后交易的周期 > (VAR81 + 68))),(VAR137 + ((VAR143 * (VAR135 - VAR137)) / 13)),(VAR137 + ((VAR143 * (VAR135 - VAR137)) / 13)),7,0),COLOR8000FF
VAR145:=(( 到最后交易的周期 <= (VAR81 + 81)) AND ( 到最后交易的周期 > (VAR81 + 47)))
VAR146:=上次NOT(VAR145距今天数)
STICKLINE((( 到最后交易的周期 <= (VAR81 + 81)) AND ( 到最后交易的周期 > (VAR81 + 47))),(VAR137 + ((VAR146 * (VAR136 - VAR137)) / 34)),(VAR137 + ((VAR146 * (VAR136 - VAR137)) / 34)),7,0),COLOR8000FF
VAR148:=(( 到最后交易的周期 <= (VAR81 + 68)) AND ( 到最后交易的周期 > (VAR81 + 55)))
VAR149:=上次NOT(VAR148距今天数)
STICKLINE((( 到最后交易的周期 <= (VAR81 + 68)) AND ( 到最后交易的周期 > (VAR81 + 55))),(VAR135 - ((VAR149 * (VAR135 - VAR137)) / 13)),(VAR135 - ((VAR149 * (VAR135 - VAR137)) / 13)),7,0),COLOR8000FF
VAR151:=IF((( 到最后交易的周期 = 1) AND (PERIOD = 5)),((成交量 * 240) / FROM开盘价),成交量)
VAR152:=((VAR151 * 100) / 当前流通股本)
VAR153:=VAR152的4日简单移动平均
VAR154:=VAR152的9日简单移动平均
VAR155:=VAR152的17日简单移动平均
VAR156:=VAR152的34日简单移动平均
VAR157:=((((VAR153 + VAR154) + VAR155) + VAR156) / 4)
VAR158:=(VAR153 - VAR157)
VAR159:=(VAR154 - VAR157)
VAR160:=(VAR155 - VAR157)
VAR161:=(VAR156 - VAR157)
DRAWTEXT(( 到最后交易的周期 = (VAR81 + 55)),VAR137,IF(CONST((VAR158 > 0)),56,'人气')),画红色
VAR163:=IF(CONST((VAR158 > 0)),(VAR137 * 1.05),VAR137)
DRAWTEXT(( 到最后交易的周期 = (VAR81 + 47)),VAR136,IF(CONST((VAR159 > 0)),58,'人气')),画黄色
VAR165:=IF(CONST((VAR159 > 0)),(VAR136 * 1.05),VAR136)
DRAWTEXT(( 到最后交易的周期 = (VAR81 + 70)),VAR135,IF(CONST((VAR160 > 0)),59,'人气')),COLORC0C000
VAR167:=IF(CONST((VAR160 > 0)),(VAR135 * 0.97),VAR135)
DRAWTEXT(( 到最后交易的周期 = (VAR81 + 92)),VAR136,IF(CONST((VAR161 > 0)),60,'人气')),COLORC0C0C0
VAR169:=IF(CONST((VAR161 > 0)),(VAR136 * 0.97),VAR136)
DRAWTEXT(( 到最后交易的周期 = (VAR81 + 83)),VAR137,IF(CONST((VAR158 <= 0)),61,'人气')),画绿色