飞狐稳操胜券底部出击副图指标
源码
VAR1:=(1 / WINNER(CLOSE));
A0:=MA(CLOSE,13);
VAR3:=(100 - ABS((((CLOSE - A0) / A0) * 100)));
A1:=LLV(LOW,75);
A2:=HHV(HIGH,75);
A3:=((A2 - A1) / 100);
A4:=SMA(((CLOSE - A1) / A3),20,1);
A5:=SMA(((OPEN - A1) / A3),20,1);
VAR4:=((3 * A4) - (2 * SMA(A4,15,1)));
VAR5:=((3 * A5) - (2 * SMA(A5,15,1)));
VAR6:=(100 - VAR5);
VAR7:=(100 - VAR4);
VAR8:=MA((WINNER((CLOSE * 0.95)) * 100),3);
VAR9:=(100 - IF((VAR1 > 5),IF((VAR1 < 100),VAR1,(VAR3 - 10)),0));
多方:VAR8,colorEE00EE;
空方:VAR9,colorDD00;
VAR2:=(VAR8 > VAR3);
VARA:=(REF(LOW,1) * 0.9);
VARB:=(LOW * 0.9);
VARC:=(((VARB * VOL) + (VARA * (CAPITAL - VOL))) / CAPITAL);
VARD:=EMA(VARC,30);
A6:=(CLOSE - REF(CLOSE,1));
A7:=MAX(A6,0);
A8:=ABS(A6);
VARF:=((SMA(A7,7,1) / SMA(A8,7,1)) * 100);
VAR10:=((SMA(A7,13,1) / SMA(A8,13,1)) * 100);
VAR11:=BARSCOUNT(CLOSE);
VAR12:=((SMA(MAX(A6,0),6,1) / SMA(ABS(A6),6,1)) * 100);
VAR13:=((0 - ((200 * (HHV(HIGH,60) - CLOSE)) / (HHV(HIGH,60) - LLV(LOW,60)))) + 100);
VAR14:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100);
VAR16:=SMA(((SMA(VAR14,4,1) - 50) * 2),3,1);
VAR17:=(((INDEXC - LLV(INDEXL,14)) / (HHV(INDEXH,14) - LLV(INDEXL,14))) * 100);
VAR18:=SMA(VAR17,4,1);
VAR19:=SMA(VAR18,3,1);
VAR1A:=(((HHV(HIGH,30) - CLOSE) / CLOSE) * 100);
VAR1B:=(((((((((VAR12 <= 25) AND (VAR13 < (0 - 95))) AND (VAR1A > 20)) AND (VAR16 < (0 - 30))) AND (VAR19 < 30)) AND ((VARD - CLOSE) >= (0 - 0.25))) AND (VARF < 22)) AND (VAR10 < 28)) AND (VAR11 > 50));
VAR1C:=(((HIGH + LOW) + CLOSE) / 3);
VAR1D:=((VAR1C - MA(VAR1C,14)) / (0.015 * AVEDEV(VAR1C,14)));
VAR1E:=((VAR1C - MA(VAR1C,70)) / (0.015 * AVEDEV(VAR1C,70)));
VAR1F:=IF(((((VAR1D >= 150) AND (VAR1D < 200)) AND (VAR1E >= 150)) AND (VAR1E < 200)),10,0);
VAR20:=IF(((((VAR1D <= (0 - 150)) AND (VAR1D > (0 - 200))) AND (VAR1E <= (0 - 150))) AND (VAR1E > (0 - 200))),(0 - 10),VAR1F);
VAR21:=(IF(((VAR1E >= 200) AND (VAR1D >= 150)),15,IF(((VAR1E <= (0 - 200)) AND (VAR1D <= (0 - 150))),(0 - 15),VAR20)) + 50);
预警:VAR21,LINETHICK2,colorFFFF;
STICKLINE(VAR2,VAR3,VAR8,5,0),colorFF;
STICKLINE(1,VAR8,0,1,0),colorEE00EE;
STICKLINE(1,VAR9,100,1,0),colorDD00;
STICKLINE(VAR1B,0,80,5,0),LINETHICK3,colorFF;
DRAWTEXT((CROSS(VAR1B,0.5) AND (COUNT((VAR1B = 1),10) = 1)),20,'底部出击'),colorFFFFFF;
DRAWTEXT((CROSS(VAR2,0.5) AND (COUNT((VAR2 = 1),10) = 1)),80,'血战'),colorFFFFFF;