公式网-网站导航


网站搜索:  

公式指标网 发表于2016/5/31 5:58:46

飞狐超级牛熊神奇副图指标

飞狐超级牛熊神奇副图指标

源码

p1:=5;
p2:=13;
p3:=21;
p4:=34;
P5:=62;
P6:=120;
P7:=256;
MA5日: MA(CLOSE,P1);
MA13日: MA(CLOSE,P2);
MA21日: MA(CLOSE,P3);
MA34日: MA(CLOSE,P4);
MA62日: MA(CLOSE,P5);
MA120日: MA(CLOSE,P6);
MA256日: MA(CLOSE,P7);
v1:=ma(c,5),color00ffff;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
r1:=cross(diff,dea);
r2:=macd>ref(macd,1);
r3:=ma(c,5)>=ma(c,10);
r4:=ma(v,5)>=ma(v,34);
r5:=v<ma(v,34)*3;
r6:=BARSLAST(r1)<3;
r7:=ma(c,10)>ma(c,30);
r8:=ma(c,30)>ref(ma(c,30),1);
买入:STICKLINE(r1 and r2 and r3 and r4 and r5 and
r6,v1,v1+0.5,8,0),colorf0f000;
drawtext(r1 and r2 and r3 and r4 and r5 and
r6,v1+1.2,'★'),colorf00ff0;
RSV:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
LWR1:=SMA(RSV,5,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(cross(lwr1,lwr2),v1,1);
Var1:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100);
Var2:=EMA(Var1,3);
Var3:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,24)-EMA(CLOSE,36))*(-100);
Var4:=EMA(Var3,9);
Var5:=CROSS(Var1,Var2);
Var6:=CROSS(Var2,Var1);
熊: STICKLINE(Var6,OPEN,CLOSE,10,0);
牛: STICKLINE(Var5,OPEN,CLOSE,10,0);
严格纪律: STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.33,10,0);
赚了就跑: STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,10,0);

飞狐超级牛熊神奇副图指标



网站搜索:  



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