决策波段指标 (源码)
2012-06-14 08:20:00来源:本站整理浏览:339
通达信决策波段指标公式股票软件源码如下:
X1: 0;
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)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
VAR9:=TROUGHBARS(3,15,1)<10;
VAR10:=PEAKBARS(3,15,1)<10;
VAR11:=IF(VAR9=1,50,0);
VAR12:=IF(VAR10=1,50,0);
底部1:= IF(VAR11=50,50,0);
头部:= IF(VAR12=50,100,0);
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
AB:IF( 底部1>REF(底部1,1),50,0),COLORRED;
AA:IF(头部>REF(头部,1),50,0),COLORGREEN;
DRAWTEXT(AB=50,40,'买' ),COLORRED,LINETHICK2;
DRAWTEXT(AA=50,40,'卖'),COLORFFFFFF,LINETHICK2;
- 上一篇公式:强势新信号指标 (源码)
- 下一篇公式:强弱MACD指标 (源码)