软件名称:[B]均线30分[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2017-01-29 03:16:16
软件简介:
IF (k<=0)
RETURN 0;
MA$1:MA(CLOSE, N1);
IF (k<=1)
RETURN 0;
MA$2:MA(CLOSE, N2);
IF (k<=2)
RETURN 0;
MA$3:MA(CLOSE, N3);
IF (k<=3)
RETURN 0;
MA$4:MA(CLOSE, N4);
IF (k<=4)
RETURN 0;
MA$5:MA(CLOSE, N5);
MA5:=MA(CLOSE, 5);
MA10:=MA(CLOSE, 10);
MA20:=MA(CLOSE, 20);
MA30:=MA(CLOSE, 30);
MA60:=MA(CLOSE, 60);
MA120:=MA(CLOSE, 120);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
Zero:=0;
//空翻多
KFD5_20:=NOT(REF(MA5,1)>REF(MA10,1) AND REF(MA10,1)> REF(MA20,1) )
AND MA5>MA10 AND MA10>MA20 ;
DRAWTEXT(KFD5_20 AND LLV(DIFF,5)>0, MA20*0.999,'20'),colorgray;//上涨的空翻多灰色
DRAWTEXT(KFD5_20 AND LLV(DIFF,5)<=0, MA20*0.999,'20'),coloryellow;//下跌转上涨的空翻多黄s
//
KFD5_30:=NOT(REF(MA5,1)>REF(MA10,1) AND REF(MA10,1)> REF(MA20,1) AND REF(MA20,1)> REF(MA30,1) )
AND MA5>MA10 AND MA10>MA20 AND MA20>MA30;
DRAWTEXT(KFD5_30 AND LLV(DIFF,5)>0, MA30*0.999,'30'),colorgray;//上涨的空翻多灰色
DRAWTEXT(KFD5_30 AND LLV(DIFF,5)<=0, MA30*0.999,'30'),colorwhite;//下跌转上涨的空翻多黄s
//
KFD5_60:=NOT(REF(MA5,1)>REF(MA10,1) AND REF(MA10,1)> REF(MA20,1) AND REF(MA20,1)> REF(MA30,1)
AND REF(MA30,1)> REF(MA60,1) AND REF(MA60,1)>REF(MA60,2))
AND MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60 AND MA60>REF(MA60,1);
DRAWTEXT(KFD5_60 AND LLV(DIFF,12)>0, MA60*0.999,'60'),colorgray;
DRAWTEXT(KFD5_60 AND LLV(DIFF,12)<=0, MA60*0.999,'60'),colorlired;
//多翻空
DFK5_20:=NOT(REF(MA5,1)<REF(MA10,1) AND REF(MA10,1)< REF(MA20,1) )
AND MA5<MA10 AND MA10<MA20 ;
DRAWTEXT(DFK5_20 AND HHV(DIFF,6)>0, MA20*1.001,'20'),colorgreen;//上涨到顶的多翻空
DRAWTEXT(DFK5_20 AND HHV(DIFF,6)<=0, MA20*1.001,'20'),colorblue;
//
DFK5_30:=NOT(REF(MA5,1)<REF(MA10,1) AND REF(MA10,1)< REF(MA20,1) AND REF(MA20,1)< REF(MA30,1) )
AND MA5<MA10 AND MA10<MA20 AND MA20<MA30;
DRAWTEXT(DFK5_30 AND HHV(DIFF,6)>0, MA30*1.001,'30'),colorcyan;//上涨到顶的多翻空
//DRAWTEXT(DFK5_30 AND HHV(DIFF,6)<=0, MA30*1.001,'30'),colorcyan;//下跌中继的多翻空
DFK5_60:=NOT(REF(MA5,1)<REF(MA10,1) AND REF(MA10,1)< REF(MA20,1) AND REF(MA20,1)< REF(MA30,1)
AND REF(MA30,1)< REF(MA60,1) )
AND MA5<MA10 AND MA10<MA20 AND MA20<MA30 AND MA30<MA60 AND MA60<REF(MA60,1) ;
DRAWTEXT(DFK5_60 AND HHV(DIFF,10)>0, MA60*1.001,'60'),colorgreen;//上涨到顶的多翻空AND REF(MA60,1)<REF(MA60,2)
//DRAWTEXT(DFK5_60 AND HHV(DIFF,6)<=0, MA60*1.001,'60'),colorcyan;//下跌中继的多翻空
//以下均线20>30>60>120,指示可能出现牛市,属长期指标
KFD20_120:=MA20>MA30 AND MA30>MA60 AND MA60>MA120
AND NOT(REF(MA20,1)>REF(MA30,1) AND REF(MA30,1)>REF(MA60,1) AND REF(MA60,1)>REF(MA120,1));
DRAWTEXT(KFD20_120 AND DIFF>0, MA(CLOSE, 60)*0.998,'120'),colorwhite;
IF (k<=5)
RETURN 0;
MA$6:MA(CLOSE, N6);
IF (k<=6)
RETURN 0;
MA$7:MA(CLOSE, N7);
IF (k<=7)
RETURN 0;
MA$8:MA(CLOSE, N8);
[url=http://www.70822.com/soft/sort013/sort036/down-107261.html]均线30分[/url]