input:N(-7,-20,20);
VARA:=EMA(((AMOUNT / VOL) / 100),3);
HHV(HIGH,30);
MA5:MA(CLOSE,5);
成本:=EMA(VARA,88);
极限位:=(成本 * 0.74);
MA10:=MA(CLOSE,10),colorFFFF;
平衡位:=(EMA(VARA,88) * 0.85);
短期乖离率:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * 100);
X7:=EMA(EMA(EMA(HIGH,5),5),5);
上通道:=(X7 * 1.05);
LOWERL:=(MA(LOW,30) * 0.85);
MA55:=MA(CLOSE,55);
XX:=(COUNT((OPEN > CLOSE),6) = 6);
VAR15:=WINNER(CLOSE);
VAR16:=(VOL / CAPITAL);
VAR17:=(VAR16 / VAR15);
财神线:=IF((VAR15 < (8 / 100)),VAR17,0);
财神到:=财神线;
LLV(LOW,30);
DRAWICON(((((((财神线 < REF((财神线 > 1),1)) AND (CLOSE <= OPEN)) AND (XX < REF((XX > 0),1))) AND (短期乖离率 < (0 - 6))) AND (财神线 > 0.5)) AND (财神线 < 1)),LOW,1),ALIGN1;
趋势:=(((5 * SMA((((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 80),5,1)) - (3 * SMA(SMA((((CLOSE - LLV(LOW,7)) / (HHV(HIGH,7) - LLV(LOW,7))) * 80),5,1),3,1))) - SMA(SMA(SMA((((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 80),5,1),3,1),2,1));
平衡线:=EMA(EMA(EMA(HIGH,3),3),1);
回挡线:=(平衡线 * 0.92);
DRAWICON((((CROSS(趋势,0) AND (OPEN <= REF(CLOSE,1))) AND (短期乖离率 > 3)) AND ((回挡线 - REF(回挡线,1)) > 0)),LOW,0);
VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);
VAR12:=VOL;
M8:=(SUM((VAR11 * VAR12),3) / SUM(VAR12,3));
B4:=REF(CLOSE,1);
B5:=((SMA(MAX((CLOSE - B4),0),7,1) / SMA(ABS((CLOSE - B4)),7,1)) * 100);
B6:=CROSS(79,B5);
B7:=FILTER(B6,4);
主力:=M8;
散户:=LLV(主力,120);
主线:WMA(CLOSE,8),LINETHICK2,colorFF;
VARF:=POW((CLOSE - 主线),1);
VARM:=MA(VARF,3);
VARH:=SQRT(VARM);
阻力线:=(主线 + (1.96 * VARH));
PARTLINE((主线 < REF(主线,1)),主线),LINETHICK2,colorFF00;
了结线:=(平衡线 * 1.06);
MA20:MA(CLOSE,20);
WX:=MA(CLOSE,0);
MB5:=(MA(CLOSE,15) * IF((20 < 5),WX,1));
MB7:=(MA(CLOSE,20) * IF((20 < 7),WX,1));
DRAWTEXT(FILTER((((((((((((((((REF(CLOSE,1) < MB7) AND ((主线 - REF(主线,1)) > 0)) AND ((了结线 - REF(了结线,1)) > 0.01)) AND ((阻力线 - REF(阻力线,1)) > 0)) AND (LOW < MB7)) AND (CLOSE > MB7)) AND (((VOL / CAPITAL) * 100) < 1)) AND ((MB5 - REF(MB5,1)) > 0)) AND (WINNER(CLOSE) < 0.59)) AND (HIGH < 上通道)) AND ((REF(HIGH,1) / REF(CLOSE,1)) < 1.04)) AND ((VOL / REF(VOL,1)) < 3.3)) AND ((REF(CLOSE,1) / REF(OPEN,1)) < 1.03)) AND (OPEN <= REF(CLOSE,1))) AND ((CLOSE / OPEN) > 1.03)),4),LOW,'★黄金买点'),colorFFFF;
MA13:MA(CLOSE,13);
MA34:=MA(CLOSE,25);
压力1:=HHV(LOW,20);
中期大底:=LLV(LOW,30);
DRAWTEXT(FILTER(((((((LOW <= 中期大底) AND (XX < REF((XX > 0),2))) AND (WINNER(CLOSE) < 0.15)) AND (HIGH < 压力1)) AND ((CLOSE / LOW) > 1.06)) AND (CLOSE > OPEN)),6),(LOW - (LOW * 0.01)),'★底成'),colorFFFFFF;
趋势线:=MA(HIGH,1);
地:=(MA(CLOSE,26) - (2 * STD(CLOSE,26)));
DRAWTEXT((((HIGH >= HHV(HIGH,20)) AND ((HIGH / OPEN) > 1.02)) AND (CLOSE < REF(CLOSE,1))),HIGH,'卖'),colorFFFF;
DRAWTEXT((((((((((LOW <= LLV(LOW,30)) AND (REF(CLOSE,1) > REF(OPEN,1))) AND (LOW < LOWERL)) AND ((REF(OPEN,2) / REF(CLOSE,2)) > 1.04)) AND (REF(OPEN,2) > LOWERL)) AND (REF(OPEN,1) < REF(CLOSE,2))) AND ((CLOSE / LOW) > 1.02)) AND (REF(CLOSE,1) < LOWERL)) AND (REF(HIGH,1) > REF(LOW,2))),LOW,'黑马出现'),colorFFFFFF;
DRAWTEXT((((((((((CROSS(主线,MA10) AND ((OPEN - LLV(LOW,30)) < 0.5)) AND ((HIGH / CLOSE) < 1.04)) AND (VOL > REF(VOL,1))) AND (REF(OPEN,3) < MA10)) AND (REF(CLOSE,1) <= REF(OPEN,1))) AND ((CLOSE / OPEN) > 1.01)) AND (WINNER(CLOSE) < 0.55)) AND (LOW <= MA10)) AND (CLOSE > OPEN)),LOW,'★强势追'),colorFFFFFF;
HH:=FORCAST(FORCAST(((CLOSE + FORCAST(CLOSE,2)) / 2),31),10);
MA10:MA(CLOSE,10),colorFFFF;
DRAWTEXT(FILTER(((((((LOW < LOWERL) AND (WINNER(CLOSE) < 0.07)) AND (主线 > REF(主线,1))) AND (趋势线 > REF(趋势线,1))) AND (CLOSE >= 地)) AND ((CLOSE / OPEN) > 1.03)),5),LOW,'★买'),colorFFFFFF;
VAR13:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);
平均值:=((MA10 / -10) + MA10);
UPPERL:=(MA(HIGH,30) * 1.15);
PARTLINE((UPPERL >= REF(UPPERL,1)),UPPERL),colorFF;
PARTLINE((UPPERL <= REF(UPPERL,1)),UPPERL),colorFF00;
DRAWTEXT(FILTER(((((HIGH > UPPERL) AND (HIGH > UPPERL)) AND (CLOSE < OPEN)) AND (CLOSE < UPPERL)),5),(HIGH + 0.13),'出局'),colorFFFFFF;
DRAWTEXT((B7 AND (HIGH >= UPPERL)),(HIGH * 1.02),'卖'),colorFFFF;
UPPERS:=(MA(HIGH,3) * 1.03);
LOWERS:=(MA(LOW,3) * 0.97);
LOWERL:=(MA(LOW,30) * 0.83);
PARTLINE((LOWERL <= REF(LOWERL,1)),LOWERL),colorFF00;
PARTLINE((LOWERL >= REF(LOWERL,1)),LOWERL),colorFF;
HZ3:=(SMA(AMOUNT,15,6) - REF(SMA(AMOUNT,15,6),61));
TZ:=LLV(LOW,2);
发射:=SMA(DMA(TZ,HZ3),8,4);
导弹:=SMA(DMA(TZ,HZ3),5,4);
DRAWTEXT(FILTER(((((((((((导弹 / REF(导弹,1)) < 0.97) AND (OPEN > LOW)) AND (REF(导弹,2) = REF(导弹,13))) AND (((VOL / CAPITAL) * 100) > 2)) AND (REF(CLOSE,1) > REF(OPEN,1))) AND ((HIGH / CLOSE) < 1.02)) AND (HIGH < 上通道)) AND (((VOL / CAPITAL) * 100) < 1)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.03)),3),LOW,'★黄金2'),colorFFFF;
DRAWTEXT(((((((LOW < 平均值) AND (WINNER(CLOSE) < 0.07)) AND (CLOSE > REF(OPEN,1))) AND (LOW <= LOWERL)) AND (LOW <= LLV(LOW,30))) AND ((CLOSE / OPEN) > 1.04)),LOW,'★见底');
DRAWTEXT(FILTER((((OPEN > UPPERL) AND ((UPPERL - REF(UPPERL,1)) < 0)) AND (CLOSE < OPEN)),4),HIGH,'逃命'),colorFFFF;
LXP:=FILTER(((((((((LOW <= 中期大底) AND ((REF(OPEN,1) / REF(CLOSE,1)) > 1.06)) AND ((REF(OPEN,2) / REF(CLOSE,2)) < 1.02)) AND ((CLOSE / OPEN) > 1.03)) AND (OPEN < LOWERL)) AND (OPEN > 中期大底)) AND (WINNER(CLOSE) < 0.04)) AND (短期乖离率 < (0 - 8))),5);
DRAWTEXT(((LXP < REF((LXP > 0),3)) AND (OPEN < REF(OPEN,1))),LOW,'★全仓'),colorFF00;
D:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
DRAWTEXT(IF((((((CLOSE < D) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (LOW <= REF(HIGH,1))) AND (CLOSE < (MA(CLOSE,13) * 1.3))),1,0),(LOW - (LOW * 0.04)),'抄底'),colorFF00;
VAR1Z:=(((CLOSE - OPEN) / OPEN) * 100);
VAR2Z:=REF(CLOSE,1);
VAR3Z:=((SMA(MAX((CLOSE - VAR2Z),0),6,1) / SMA(ABS((CLOSE - VAR2Z)),6,1)) * 100);
VAR4Z:=(COUNT((VAR3Z < 20),20) >= 1);
DRAWTEXT(FILTER((((VAR1Z > 9.5) AND (REF(CLOSE,1) > REF(CLOSE,2))) AND VAR4Z),3),LOW,'★屠龙'),colorFF00;
FF:=(COUNT((OPEN > CLOSE),4) = 4);
DRAWTEXT((((((FF < REF((FF > 0),1)) AND ((REF(OPEN,1) / REF(CLOSE,1)) > 1.04)) AND (WINNER(CLOSE) < 0.3)) AND (LOW >= REF(LOW,1))) AND (CLOSE > REF(OPEN,1))),LOW,'历史大底'),colorFF00;
VAR1:=SUM(IF((CLOSE > REF(CLOSE,1)),VOL,IF((CLOSE < REF(CLOSE,1)),(0 - VOL),0)),0);
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=(IF((CLOSE > LLV(CLOSE,VAR2)),1,(0 - 1)) * IF((VAR1 > LLV(VAR1,VAR2)),1,(0 - 1)));
VAR4:=IF((VAR3 = (0 - 1)),1,0);
VAR5:=(COUNT((VAR4 = 1),8) > 3);
VAR6:=((SUM(AMOUNT,13) / ((AMOUNT / VOL) / 100)) / 100);
VAR7:=DMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),(VOL / VAR6));
VAR8:=((((CLOSE - VAR7) / VAR7) * 100) < (0 - 17));
VAR9:=(((CLOSE - MIN((REF(CLOSE,5) * 0.83),(REF(CLOSE,21) * 0.72))) / CLOSE) < 0.05);
RSW:=(((VAR8 AND VAR9) AND VAR5) * 5);
DRAWTEXT(FILTER((((RSW < REF((RSW > 0),1)) AND (CLOSE > REF(CLOSE,1))) AND (HIGH > CLOSE)),8),LOW,'★大底'),colorFF;
A1:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));
A2:=((REF(HIGH,10) / CLOSE) > 1.8);
A3:=(((CO |