黑月卫士同花顺副图指标 有源码 测试图 //黑月卫士 CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;YJD:(EMA(CS,3)-50)*2,colorgreen; 极弱:-80; 强势:60; 风险:80; 弱势:-60; VAR4:=(1.1)*CLOSE; VAR5:=(0.9)*CLOSE; VAR6:=100*(WINNER(VAR4)-WINNER(VAR5)); S1:=2*EMA(100-VAR6,1); S2:=EMA(S1,9); S3:=MA(S2,9); 条件:=CROSS(YJD,极弱) AND S1>S2; 条件0:=CROSS(强势,YJD) AND S1<S2; DRAWICON(条件,极弱,1); DRAWICON(条件0,强势,2); 高幅:=(H-REF(C,1))/REF(C,1)*100,LINETHICK; 高跌:=(C-H)/H*100,LINETHICK; 低幅:=(L-REF(C,1))/REF(C,1)*100,LINETHICK; 低涨:=(C-L)/L*100,LINETHICK,coloryellow; 均价A:=(O+2*H+2*L+3*C)/8; 上影线:=H-MAX(O,C); 下影线:=MIN(O,C)-L; 价能:=(下影线-上影线)+(H-REF(C,1)+C-H+L-REF(C,1)+C-L)/4; 均价B:=(O+H+L+C)/4+价能; 均价:=(均价A+均价B)/2; 支撑A:=(REF((高幅+高跌+低幅+低涨)/4,1)+(高幅+高跌+低幅+低涨)/4)/2*REF(均价,1),LINETHICK1,colormagenta; 支撑:MA(支撑A,3),COLORSTICK; 强弱线A:=MA(支撑A,21);//分析家公式网 www.gspt.com STICKLINE(支撑>=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),colorred; STICKLINE(支撑>=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),colorgreen; STICKLINE(支撑<=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),COLORFF00FF; STICKLINE(支撑<=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),colorcyan; 强弱线:MA(支撑A,21); |