LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
D1:=(C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100;
D2:=(O-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100;
D3:=(H-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100;
D4:=(L-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100;
STICKLINE(D1>=D2,D1,D2,8,0),COLOR0055AA;
STICKLINE(D1<=D2,D1,D2,8,0),COLOR006600;
STICKLINE(D1>=D2,D1,D2,5,0),COLOR0077CC;
STICKLINE(D1>=D2,D1,D2,3,0),COLOR0099DD;
STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF;
STICKLINE(D1<=D2,D1,D2,5,0),COLOR009900;
STICKLINE(D1<=D2,D1,D2,3,0),COLOR00BB00;
STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00;
本文来自: 股海明灯论坛 详细文章参考:http://www.178448.com/forum.php?mod=viewthread&tid=194914
|