同花顺军令如山副图指标 源码介绍
同花顺军令如山副图指标 源码
STICKLINE(C,90,90,5,0),COLOR3C3CFF;
STICKLINE(C,10,10,5,0),colorcyan;
K:=(C+H+L)/3;
D:=MA(K,4);
现价:C,NODRAW,coloryellow;
股:=D;
币:=LLV(D,5);
K2:=IF(股>币+币*0.01,0,币+币*0.01);
K3:=IF((股-(股*0.01))<币,0,股-(股*0.01));
出击≯:K2,NODRAW,colorred;
止盈≮:K3,NODRAW,colorcyan;
止损≮:币,NODRAW,colorgreen;
VAR1:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
STICKLINE(C>=止盈≮ AND 股>币 AND C>=币+币*0.01 ,VAR1,REF(VAR1,1),3,0),colorred;
STICKLINE(C<止盈≮ OR 股=币 OR C<币+币*0.01,VAR1,REF(VAR1,1),3,0),colorgreen;
VARA:=LLV(LOW,36);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
趋势:VARC,coloryellow,LINETHICK1;
多空:IF(趋势>MA(趋势,5),趋势,DRAWNULL),colorred,LINETHICK1;
TYP:= (HIGH + LOW + CLOSE)/3;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14);
资金:100-(100/(1+V1)),colormagenta;
gd48575