TAG:公式 Rsi

 网友求助:

BDGD:=HHV(C,10);
BDDD:=LLV(C,10);
趋势:(C/BDDD-1)*100,COLORFFFFFF;
箱高:(BDGD-BDDD)/BDDD*100,COLOR0088FF;


LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLORWHITE;
用RSI编写类似一品茶缘的箱体公式
 

 

解答如下:

LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,COLORWHITE;
BDGD:=HHV(RSI,10);
BDDD:=LLV(RSI,10);
趋势:(RSI/BDDD-1)*100,COLORFFFFFF;
箱高:(BDGD-BDDD)/BDDD*100,COLOR0088FF;