软件名称:[B]均线30分[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:8.00 KB
官方主页:Home Page
更新时间:2017-07-25 00:08:55
软件简介:
170528
更新:增加15、89线走平、均价线,颜色12。去掉5天线(40周期线)
1.5,15,20,30,60,89周期均线。
2.标记5-20,5-30、5-60多空头排列,标记20-120多头排列。
3.更改20为15周期线,对应5分89周期线。
4.前移89、15周期线顺序,方便看数值。
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);
MA15:=MA(CLOSE, 15);
MA20:=MA(CLOSE, 20);
MA30:=MA(CLOSE, 30);
MA60:=MA(CLOSE, 60);
MA89:=MA(CLOSE, 89);
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;
//以下显示均价线
A1:=DAY!=REF(DAY,1);
A2:=BARSLAST(A1)+1;
JJX:SUM(V*C,A2)/SUM(V,A2);
//以下标记30分15线走平上拐
DRAWTEXT(MA15>REF(MA15,1) AND REF(MA15,1)>=REF(MA15,2)
AND REF(MA15,2)<=REF(MA15,3), MA15*0.999,'平'),coloryellow;
//以下标记30分89线走平上拐
DRAWTEXT(MA89>REF(MA89,1) AND REF(MA89,1)>=REF(MA89,2)
AND REF(MA89,2)<=REF(MA89,3), MA89*0.999,'平'),colorwhite;
//以下显示二次金叉价咯
//二次金叉
SHORT=12;
LONG=26;
M=9;
DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA := EMA(DIFF,M);
MACD := 2*(DIFF-DEA);
Zero : =0;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
//BARSLAST,上一次条件成立到当前的周期数
//COUNT(X,N),统计N周期中满足X条件的周期数
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
买点U:= CROSS(H,MA15*1.0005) AND COUNT(CROSS(H,MA15*1.0005),6)=1 AND DIFF<0 AND JCCOUNT=2;//错
DRAWTEXT(买点U,L*0.993,'U'),coloryellow;//-0.15
STICKLINE(买点U,MA15*1.0005,MA15*1.0005,150,1),colorcyan;
//以下显示三次金叉价咯
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,21)=1;
买点U三:= CROSS(H,MA15*1.0005) AND COUNT(CROSS(H,MA15*1.0005),6)=1 AND DIFF<0 AND JCCOUNT=3;
DRAWTEXT(买点U三,L*0.993,'三'),coloryellow;//-0.15
STICKLINE(买点U三,MA15*1.0005,MA15*1.0005,150,1),colorcyan;
//以下显示低位空中加油价咯,MACD<0.3待改
TJ:=MACD<=0.3 AND DIFF<=REF(DIFF,1)AND
REF(DIFF,1)<REF(DIFF,2) AND DIFF> DEA AND
DEA<0 AND DEA>REF(DEA,1) AND MACD<REF(MACD,1)
AND REF(MACD,1)<REF(MACD,2);//条件
空中加油:=REF(TJ,1)AND DIFF>=REF(DIFF,1) AND MACD>REF(MACD,1) AND DIFF<0;
//DRAWTEXT(空中加油,HHV(MACD,6)*1.1+0.2,' 油'),colorwhite;
买点U油:= CROSS(H,MA15*1.0005) AND COUNT(CROSS(H,MA15*1.0005),6)=1 AND DIFF<0 AND COUNT(空中加油,6)=1 ;
DRAWTEXT(买点U油,L*0.993,'油'),coloryellow;//-0.15
STICKLINE(买点U油,MA15*1.0005,MA15*1.0005,150,1),colorliblue;
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-112468.html]均线30分[/url]