以下是同花顺地阔星御风副图指标
同花顺地阔星御风副图指标
源码
N:=9;M:=10;M1:=3;M2:=3;
RSV:=((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)))*(100);
TJ:=IF((RSV<5),0,RSV);
投机:IF((TJ>95),100,TJ),Culor008000,Linethick1;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
中期:=EMA(D,M);
STICKLINE((K>=D),D,REF(D,1),4,0),Culor0000FF;
RS1:=((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)))*(100);
RS2:=((CLOSE-LLV(LOW,(5)*(N)))/(HHV(HIGH,(5)*(N))-LLV(LOW,(5)*(N))))*(100);
RS3:=((CLOSE-LLV(LOW,(20)*(N)))/(HHV(HIGH,(20)*(N))-LLV(LOW,(20)*(N))))*(100);
K1:=SMA(RS1,M1,1);
K2:=SMA(RS2,M1+1,1);
K3:=SMA(RS3,M1+2,1);
D1:=SMA(K1,M2,1);
D2:=SMA(K2,M2+1,1);
D3:=SMA(K3,M2+2,1);
DRAWTEXT(CROSS(K1,D1),REF(D,1),\’1●\’);
DRAWTEXT(CROSS(K2,D2),REF(D,1),\’2●\’),CulorFF00FF;
DRAWTEXT(CROSS(K3,D3),REF(D,1),\’3●\’),Culor00FFFF;
●短叉:=IF(CROSS(K1,D1),1,0);
◆中叉:IF(CROSS(K2,D2),1,0),CulorFFAAFF;
◆长叉:IF(CROSS(K3,D3),1,0),Culor00FFFF;