「翔博精选指标」辅助追涨(通达信公式 副图 源码 测试图)
2022-02-14原创 编 辑:翔博软件
{辅助追涨}
VAR0 := SUM(MAX(MAX(HIGH - LOW,ABS(HIGH - REF(C,1))),ABS(LOW - REF(C,1))),12);
VAR1 := HIGH - REF(HIGH,1);
VAR2 := REF(LOW,1) - LOW;
VAR3 := SUM(IF((VAR1 > 0) AND (VAR1 > VAR2),VAR1,0),12);
VAR4 := SUM(IF((VAR2 > 0) AND (VAR2 > VAR1),VAR2,0),12);
VAR5 := (VAR3 * 55) / VAR0;
VAR6 := ((100 * (1 - (WINNER(0.9 * C)))) / 4) * 0.819;
VAR7 := ((C - MA(C,12)) / MA(C,12)) * 100;
VAR8 := REF(C,1);
VAR9 := ((((SMA(MAX(C - VAR8,0),6,1)) / (SMA(ABS(C - VAR8),6,1))) * 100) - 50) / 2;
VAR10 := (30 * (C - LLV(LOW,3))) / (HHV(C,3) - LLV(LOW,3));
VAR11 := (30 * (C - LLV(LOW,5))) / (HHV(C,5) - LLV(LOW,5));
VAR12 := (30 * (C - LLV(LOW,8))) / (HHV(C,8) - LLV(LOW,8));
VAR13 := (30 * (C - LLV(LOW,13))) / (HHV(C,13) - LLV(LOW,13));
VAR14 := (30 * (C - LLV(LOW,21))) / (HHV(C,21) - LLV(LOW,21));
VAR15 := (30 * (C - LLV(LOW,34))) / (HHV(C,34) - LLV(LOW,34));
VAR16 := (((VAR10 > 29.95) AND (VAR11 > 29.95)) AND (VAR12 >= VAR6)) * 1;
VAR17 := (((SMA(MAX(C - REF(C,1),0),13,1)) / (SMA(ABS(C - REF(C,1)),13,1))) * 100) / 5;
VAR18 := ((((VAR10 > 29.5) AND (VAR11 > 29.5)) AND (VAR12 >= 29.5)) AND (VAR12 >= VAR6)) * 2;
VAR19 := (VAR18 AND (VAR17 >= VAR6)) * 3;
VAR20 := (VAR18 AND (VAR17 >= VAR6)) * 4;
VAR21 := ((((((((VAR10 > VAR6) AND (VAR11 > VAR6)) AND (VAR12 >= VAR6)) AND (VAR12 >= VAR6)) AND (VAR13 >= VAR6)) AND (VAR14 >= VAR6)) AND (VAR15 >= VAR6)) AND (VAR17 >= VAR6)) * 5;
VAR22 := MAX(MAX(MAX(VAR16,VAR18),MAX(VAR19,VAR20)),VAR21);
VAR23 := 100 * ((C / REF(C,10)) - 1);
VAR24 := (((-1 * (100 * (HHV(HIGH,85) - C))) / (HHV(HIGH,85) - LLV(LOW,85))) + 100) / 5;
VAR25 := IF(VAR24 > 21,21,IF(VAR24 < 0,0,VAR24));
VAR26 := (((-1 * (100 * (HHV(HIGH,6) - C))) / (HHV(HIGH,6) - LLV(LOW,6))) + 100) / 5;
VAR27 := IF(VAR26 > 21,21,IF(VAR26 < 0,0,VAR26));
辅助追涨 : (((((((VAR5 > VAR6) AND (VAR7 > VAR6)) AND (VAR9 > VAR6)) AND (VAR17 > VAR6)) AND (VAR23 > VAR6)) AND (VAR25 > VAR6)) AND (VAR27 > VAR6)) AND VAR22,NODRAW;
STICKLINE(辅助追涨 = 1,HIGH * 1,C * 1,0.1,0),COLORMAGENTA;
STICKLINE(辅助追涨 = 1,OPEN * 1,LOW * 1,0.1,0),COLORMAGENTA;
STICKLINE(辅助追涨 = 1,OPEN * 1,C * 1,3,0),COLORMAGENTA;
STICKLINE(辅助追涨 = 0,HIGH * 1,C * 1,0.1,0),COLORGREEN;
STICKLINE(辅助追涨 = 0,OPEN * 1,LOW * 1,0.1,0),COLORGREEN;
STICKLINE(辅助追涨 = 0,OPEN * 1,C * 1,3,0),COLORGREEN;