本指标原理是利用KDJ刻度即百分比,0-100,0表示空仓,100表示满仓,50表示半仓,
源码
短线仓位:100-((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
中线仓位:3*K-2*D,COLORRED;
实时仓位:INTPART((中线仓位*(中线仓位/150)+短线仓位*(短线仓位/150))/10)*10,COLORGRAY;