操盘区指标 (源码)

2011-07-01 09:15:00来源:本站整理浏览:174

DIFF := (EMA(CLOSE,12) - EMA(CLOSE,26));
DEA := (EMA(DIFF,9));
MACD : 2*(DIFF-DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))/2;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
J:=MA(3*K-2*D,102);
y:2*(j-d);
z:=y>0 AND MACD<0 AND y+MACD>0;
z1:=y<0 AND MACD>0 AND y+MACD<0;
z2:=y>0 AND MACD>0;
z3:=y<0 AND MACD<0;
z4:=y>0 AND MACD<0 AND y-ABS(MACD)<0;
z5:=y<0 AND MACD>0 AND MACD-ABS(y)>0;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+6/100)*DD;
通道4:=(1-6/100)*DD;
zn:=z OR z2 OR z5 OR (CLOSE>通道2 AND 通道2>通道4);
zn1:=z1 OR z3 OR z4 OR (CLOSE<通道2 AND 通道2<通道4);
STICKLINE(zn,0,zn,8),colorred,linethick2;
STICKLINE(zn1,zn1,0,8),colorgreen,linethick2;
IF(MACD<0 AND y<0)
y1=MACD+y;
IF(MACD<0 AND y>0)
y1=y-ABS(MACD);
IF(y<0 AND MACD>0)
y1=MACD-ABS(y);
Zero : 0;
zero1:0.25

同花顺操盘区指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式