风险参谋指标 (源码)

2012-06-19 09:05:00来源:本站整理浏览:208

通达信风险参谋指标公式股票软件源码如下:

X:=1;
XX:=1;
VAR1:=EMA(CLOSE, 5)/EMA(EMA(CLOSE, 9), 16);
VAR2:=1/WINNER(CLOSE)*X;
VAR3:=(CLOSE-MA(CLOSE, 13))/MA(CLOSE, 13)*100;
VAR4:=100-ABS(VAR3);
VAR5:=(CLOSE-LLV(LOW, 75))/(HHV(HIGH, 75)-LLV(LOW, 75))*100;
VAR6:=SMA(VAR5, 20, 1)*X;
VAR7:=SMA(VAR6, 15, 1);
VAR8:=100-3*VAR6+2*VAR7;
VAR9:=((EMA(IF(VAR8>REF(VAR8, 1), VAR8, VAR8-3), 3)-50)*(-1)*2/2+50)/10;
VAR10:=EMA(AMOUNT, 13)/EMA(VOL, 13);
VAR11:=(VAR10/REF(VAR10, 1)-1)*100;
VAR12:=VOL/CAPITAL*100;
VAR13:=(HIGH-LOW)/((HIGH+LOW)/2)*100;
VAR14:=(VAR9+VAR12)*VAR13*VAR11*X;
VAR15:=REF(CLOSE, 1);
VAR16:=SUM(IF(CLOSE>VAR15, VOL, 0), 26)/SUM(IF(CLOSE<=VAR15, VOL, 0), 26)*100;
VAR17:=IF(VAR16<70, 70, VAR16);
VAR18:=(CLOSE-LLV(LOW, 9))/(HHV(HIGH*XX, 9)-LLV(LOW, 9))*X*100;
VAR19:=SMA(VAR18, 3, 1);
VAR20:=SMA(VAR19, 3, 1);
VAR21:=3*VAR19-2*VAR20*X;
VAR22:=(CLOSE-LLV(LOW, 26))/(HHV(HIGH*XX, 26)-LLV(LOW, 26))*100;
VAR23:=SMA(VAR22, 6, 1);
VAR24:=SMA(VAR23, 3, 1)*X;
VAR25:=3*VAR23-2*VAR24;
VAR26:=IF(CROSS(VAR21, VAR25*XX) AND VAR25*XX<20, (-1), 0)+IF(CROSS(VAR25, VAR21) AND VAR25>80, 1, 0);
VAR27:=(HIGH+LOW+CLOSE)/3;
VAR28:=(VAR27-MA(VAR27, 14))/(0.015*AVEDEV(VAR27*XX, 14))/2;
VAR29:=SMA(MAX(CLOSE-VAR15, 0), 6, 1)/SMA(ABS(CLOSE*X-VAR15), 6, 1)*100;
VAR30:=LLV(LOW, 36);
VAR31:=HHV(HIGH, 36);
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
VAR32:=EMA((CLOSE-VAR30)/(VAR31-VAR30)*100, 9)*X;
VAR33:=IF(VAR28>100 AND VAR32>50 AND CLOSE>OPEN, 0.5, 0)+IF(VAR29>80 AND VAR32>50 AND CLOSE>OPEN, 0.5, 0);
VAR34:=(CLOSE-LLV(LOW, 100))/(HHV(HIGH*XX, 100)-LLV(LOW*XX, 100))*100;
VAR35:=SMA(VAR34, 21, 1)*X;
VAR36:=SMA(VAR19, 3, 1);
VAR37:=3*VAR35-2*VAR36;
VAR38:=IF(VAR37>80 AND VAR29>88, 0.5, 0);
减四分一:IF((VAR14>50 AND VAR14<100) OR (VAR26+VAR33+VAR38>0), 25, 0), STICK, COLORWHITE;
减三分一:IF(VAR14>100 AND VAR14<200, 33, 0), STICK, COLORYELLOW;
减二分一:IF(VAR14>200, 50, 0), STICK, COLORMAGENTA;
减三分二:IF(VAR1>1.100 AND VAR1<1.150 AND VAR1<REF(VAR1, 1) OR VAR1>1.150 AND VAR1<REF(VAR1, 1), 67, 0), STICK, COLORGREEN;
警示录:MAX(MAX(减四分一, 减三分一), MAX(减二分一, 减三分二)), POINTDOT,LINETHICK2, COLORRED;

通达信风险参谋指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式