激流淘金指标 (源码)
通达信激流淘金指标公式股票软件源码如下:
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK0;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)
*100,LINETHICK2,COLORGREEN;
IF(RSI1>RSI2,RSI2,DRAWNULL),LINETHICK2,COLORRED;
IF(RSI1<RSI2,RSI2,DRAWNULL),LINETHICK2,COLORGREEN;
OSC:=100*(CLOSE-MA(CLOSE,20));
MAOSC:=EXPMEMA(OSC,6);
BIAS:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
BIASMA:=MA(BIAS,6);
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
{股票软件下载网-股票公式网站 www.gpxiazai.com}
LIN:=IF(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,1,0);
STICKLINE(LIN,0,5,1.5,0),COLORFFFF00;
YY:0,COLORFFFF00;
SS1:=CROSS(OSC,MAOSC) AND LIN;
DRAWTEXT(SS1,68,'<=抢反弹'),COLORFFFF22;
STICKLINE(SS1,0,60,1,1),COLOR00FFFF;
SS:=CROSS(OSC,MAOSC) AND CROSS(BIAS,BIASMA) AND LIN;
DRAWTEXT(SS,80,'<=激流淘金'),COLORFF00FF;
STICKLINE(SS,0,100,0.3,0),COLORRED;
单日换手:100*V/CAPITAL,LINETHICK0;
十日换手:SUM(单日换手,10),LINETHICK0;
- 上一篇公式:万捷买卖指标 (源码)
- 下一篇公式:双彩带买卖指标 (源码)