公式网-网站导航


网站搜索:  

公式在线网 发表于2014/12/12 0:29:22

飞狐【1250均线】操作简单源码附图

【1250均线】


 使用说明:12日均线上穿50日均线买入;反之则卖出;严格纪律,操作简单!适用于不同周期。
 同时结合殷保华的均线系统指标,加入了他的“独门暗器”指标:老庄线、生命线和牛熊分界线,便于对股市的判断。
 指标非常简单,各位均很熟悉和常见,关键是操盘纪律和规则的执行度!

参数设置:p1=12,1,100;p2=50,1,100,n=2,1,5

 【源码】:
{参数设置:p1=12,1,100;p2=50,1,100,n=2,1,5}
DRAWGBK(c=c,COLORRGB(130,130,130),COLORRGB(30,30,30),1);
 wx:=EMA(c,0);
 M12:EMA(CLOSE,P1);
 M50:EMA(CLOSE,P2)*if(n<2,wx,1);
成本:COST(5),color99FF,LINEDOT;{获利盘}
老庄线:MA(C,140);{捕捉中级黑马的一根“魔杖”}
MA25:=EMA(C,25);{25天平滑移动平均线-2号密码线}
生命线:(MA(C,453)),linethick1;{453天平滑移动平均线(即生命线)}
牛熊分水岭:(MA(C,905)),linethick2,ColorEEBBEE;{181周平滑移动平均线(牛熊分界线)}
STICKLINE((MA25 > 牛熊分水岭),MA25,牛熊分水岭,1,0),colorFF;
 STICKLINE((MA25 < 牛熊分水岭),MA25,牛熊分水岭,1,0),colorFF00;
 DRAWICON(CROSS(MA25,牛熊分水岭),(牛熊分水岭 * 0.98),6);
【乖离率】:(C-MA(C,60))/MA(C,60)*100,COLORRED,LINETHICK0;{乖离率>=30,进入风险区间随时准备清仓;乖离率<-25,进入弱势区间只能小仓位炒反弹。}
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff<dea,h,l,0,1),colorffcc00;
 stickline(diff<dea,o,c,8,1),colorffcc00;
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,'▲短线'),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;
 

 



网站搜索:  



Copyright © 2009-2010 gszb.com ™,All Rights Reserved. 
公式网-www.gszx.com.cn-股票指标公式网