买卖捕捉指标 (源码)
2012-12-13 09:10:00来源:本站整理浏览:311
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BOLL:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
MA1:=MA(CLOSE,5);
优化抄底:(CCI<-200 OR J<0 OR C<MA1/1.1)AND C<LOWER;
DRAWBAND(0>优化抄底,RGB(0,0,0),0<优化抄底,RGB(255,60,0));
DRAWTEXT(优化抄底,优化抄底,'抄'),COLOR00FFFF;
优化逃顶:(CCI>200 OR J>100 OR MA1*1.1<C )AND C>UPPER;
DRAWBAND(0>优化逃顶,RGB(0,0,0),0<优化逃顶,RGB(100,110,0));
DRAWTEXT(优化逃顶,优化逃顶,'逃'),COLORFFFF00;
- 上一篇公式:楚汉相争主图指标 (源码)
- 下一篇公式:交易多空主图指标 (源码)