胜者螺旋指标 (源码)
通达信胜者螺旋指标公式股票软件源码如下:
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*5;
VAR7:=EMA(VAR6,8);
注意: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR7,VAR6,0,3,0);
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
转强: STICKLINE(VAR7>REF(VAR7,1) AND VAR6<0 AND VAR6>VAR7,VAR7,0,3,0),COLORYELLOW;
买点: STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,VAR6,VAR7,3,0);
DRAWICON(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,30),{-140}-0.1,1);
DRAWTEXT(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,30),{-140}-0.1,'买点'),COLORRED;
持股: STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR6,0,3,0),COLORRED;
观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR7>REF(VAR7,1) AND VAR6>0,VAR6,VAR7,3,0);
持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR7,VAR6,VAR7,3,1),COLORCYAN;
0,COLORBLUE,LINETHICK2;
- 上一篇公式:增仓减仓主图指标 (源码)
- 下一篇公式:高效简洁主图指标 (源码)