指标源码
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW, 30))*100; K:=SMA(RSV,5,1); D:=SMA(K,3,1); J:=3*K-2*D; VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,30); VAR6:=HHV(VAR4,30); VAR7:=IF(MA(CLOSE,58),1,0); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; VAR9:=IF(VAR8>100,100,VAR8); AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; AA5:=SMA(AA4,13,8);跟风统计:CEILING(SMA(AA5,13,8)),LINETHICK2;
JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);买2:=QJ0*(JJ-MIN(CLOSE,OPEN));卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE)); DT:=((买1+买2)-(卖1+卖2))/10000;主力持仓:SUM(DT,66),COLORWHITE,LINETHICK1; STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLOR0000FF; STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLOR00FF00;