软件名称:[B]均线5股[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2017-02-22 01:08:40
软件简介:
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_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'),coloryellow;//下跌转上涨的空翻多黄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;
//
//以下均线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;
//多翻空****************************
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'),colorgreen;//上涨到顶的多翻空
//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,指示可能出现5分熊市,属长期指标
DFK20_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(DFK20_120 AND DIFF<=0, MA(CLOSE, 60)*0.998,'120'),colorcyan;
//以下标记13:00、15:00
DRAWTEXT(TIME>=130001 AND TIME<=130500,H*1.004+0.03,'1'),colorligray;
DRAWTEXT(TIME>=145501 AND TIME<=150000,H*1.004+0.03,'3'),colorwhite;
//用两种竖线都是全角,正好偏后一根K线,不能用
IF (k<=5)
RETURN 0;
MA$6:MA(CLOSE, N6);
//以下显示均价线
A1:=DAY!=REF(DAY,1);
A2:=BARSLAST(A1)+1;
JJX:SUM(V*C,A2)/SUM(V,A2);
//
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-108683.html]均线5股[/url]