老师指标问题 [文华财经]
-
咨询内容:
VAR3:=LLV(HI G H,240);
VAR4:=100*(CLO S E-VAR3)/VAR3;
VAR5:=(CLO S E-LLV(LOW,528))/(HHV(HIG H,528)-LLV(LOW,528))*100;VAR6:=(CLO S E-LLV(C LO S E,530))/(HHV(C LO S E,530)-LLV(CLO S E,530))*100;VA R7:=0;
VAR8:=SMA(MAX(C LO SE-REF(CLO S E,1),0),34,1)/SMA(ABS(CLO SE-REF(C LO S E,1)),7,1)*100;
VAR9:=S MA(MAX(C LO S E-REF(CLO S E,1),0),13,1)/S MA(ABS(CL O S E-REF(C LO S E,1)),13,1)
*100;
VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);
VAR 11 :=ZI GZ AG(C,6,1)>REF(ZI GZ AG(C,6,1),1) ANDREF(ZI GZAG(C,6,1),1)<=REF(ZI GZAG(C,6,1),2) ANDREF(ZI GZAG(C,6,1),2)<=REF(ZI GZAG(C,6,1),3);
VAR 12:=ZI GZAG(C,6,1)<REF(ZI GZAG(C,6,1),1) ANDREF(ZI GZAG(C,6,1),1)>=REF(ZI GZAG(C,6,1),2) ANDREF(ZI GZAG(C,6,1),2)>=REF(ZI GZAG(C,6,1),3);
VAR 13:=ZI GZAG(C,22,1)>REF(ZI GZAG(C,22,1),1) ANDREF(ZI GZAG(C,22,1),1)<=REF(ZI GZAG(C,22,1),2) ANDREF(ZI GZAG(C,22,1),2)<=REF(ZI GZAG(C,22,1),3);
VAR 14:=ZI GZAG(C,22,1)<REF(ZI GZAG(C,22,1),1) ANDREF(ZI GZAG(C,22,1),1)>=REF(ZI GZAG(C,22,1),2) ANDREF(ZI GZAG(C,22,1),2)>=REF(ZI GZAG(C,22,1),3);
VAR 15:=ZI GZAG(C,51,1)>REF(ZI GZAG(C,51,1),1) ANDREF(ZI GZAG(C,51,1),1)<=REF(ZI GZAG(C,51,1),2) ANDREF(ZI GZAG(C,51,1),2)<=REF(ZI GZAG(C,51,1),3);
VAR 16:=ZI GZAG(C,51,1)<REF(ZI GZAG(C,51,1),1) ANDREF(ZI GZAG(C,51,1),1)>=REF(ZI GZAG(C,51,1),2) ANDREF(ZI GZAG(C,51,1),2)>=REF(ZI GZAG(C,51,1),3);
VAR 17:=ZI GZAG(C,72,1)>REF(ZI GZAG(C,72,1),1) ANDREF(ZI GZAG(C,72,1),1)<=REF(ZI GZAG(C,72,1),2) ANDREF(ZI GZ AG(C,72,1),2)<=REF(ZI GZAG(C,72,1),3);
VAR 18:=ZI GZAG(C,72,1)<REF(ZI GZAG(C,72,1),1) ANDREF(ZI GZAG(C,72,1),1)>=REF(ZI GZAG(C,72,1),2) ANDREF(ZI GZ AG(C,72,1),2)>=REF(ZI GZAG(C,72,1),3);
VAR 19:=EMA(CLO S E,2)-EMA(CLO S E,150);
买 :=VAR 10;
买:=(VAR 11+VAR 13+VAR 15+VAR 17);
卖 :=(VAR 12+VAR 14+VAR 16+VAR 18);
B:IF(买>0 OR买>0,LOW*0.99,NULL),CROS SDOT,LINETHICK3,CO LO RYELLO W;DRAWTEXT(买>0 OR买>0,LOW*0.99,'',COLORRED;
S:IF(卖>0,HIGH*1.01,NULL),CRO S SDOT,LINETHICK3,CO LORGREEN;
DRAWTEXT(卖>0,HIGH*1.02,'',COLORGREEN;
DRAWI CON((ZI GZAG(C,5,1)>REF(ZI GZAG(C,5,1),1)) AND(REF(ZI GZ AG(C,5,1),1)<=REF(ZI GZAG(C,5,1),2)) AND(REF(ZI GZ AG(C,5,1),2)<=REF(ZI GZAG(C,5,1),3)),LOW*0.98,1) ;
DRAWI CON((ZI GZAG(C,5,1)<REF(ZI GZAG(C,5,1),1)) AND(REF(ZI GZ AG(C,5,1),1)>=REF(ZI GZAG(C,5,1),2)) AND(REF(ZI GZ AG(C,5,1),2)>=REF(ZI GZAG(C,5,1),3)),HI GH*1.01,2);
ZB:=EMA(EMA(VAR3,5),5)*3,COLORSTICK;
VARA:=IF(VAR9 AND CROS S(MA(CLOS E,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2,COLORFF00FF;
D:=EMA(K,5), COLORWHITE;
J:=K*3-D*2,COLO RYEL LOW;
VARB:=BETWEEN(CLO S',MA(CL' SE,3),MA(C LO SE,5))AND J>10;
CAP I TAL:=GET PRI C E 1(流通股本);
HS:=VOL/CAPITAL*100,COLORGREEN;
VARE:=MA(100*(CLO SE-LLV(C LO SE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((C LOSE-LLV(LOW,75))/(HHV(HIG H,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIG H,75)-LLV(LOW,75))*1༼20,1),15,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95, 机 构 进 场',LINETHICK1,CO LORFF00FF;
VAR1 A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR 13<=-150,-15,VAR 16))+60;
VAR1C:=VAR1 A>48 AND VAR1 B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1 C,30)=1,LOW*0.95,'顶底 ',COLORWHITE;
老师你好,有个指标wh6加载不上去,麻烦修改,另外不知道上面设置为指标副图还是K线副属指标,先谢谢老师来源:程序化99
-
文华技术人员:
请参考
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLO S E-LLV(LOW,528))/(HHV(HIG H,528)-LLV(LOW,528))*100; VAR6:=(CLO S E-LLV(C LO S E,530))/(HHV(C LO S E,530)-LLV(CLO S E,530))*100; VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=S MA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/S MA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);
VAR 11 :=ZIGZAG(C,6,1)>REF(ZI GZ AG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);
VAR 12:=ZIGZAG(C,6,1)<REF(ZI GZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)>=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3);
VAR 13:=ZIGZAG(C,22,1)>REF(ZI GZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);
VAR 14:=ZIGZAG(C,22,1)<REF(ZI GZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)>=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);
VAR 15:=ZIGZAG(C,51,1)>REF(ZI GZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);
VAR 16:=ZIGZAG(C,51,1)<REF(ZI GZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)>=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);
VAR 17:=ZIGZAG(C,72,1)>REF(ZI GZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);
VAR 18:=ZIGZAG(C,72,1)<REF(ZI GZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)>=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);
VAR 19:=EMA(CLO S E,2)-EMA(CLO S E,150);
买:=(VAR11+VAR13+VAR15+VAR17);
卖:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买>0 OR 买>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买>0 OR 买>0,LOW*0.99,'',COLORRED;
S:IF(卖>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;
DRAWTEXT(卖>0,HIGH*1.02,'',COLORGREEN;
DRAWICON((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3)),LOW*0.98,1) ;
DRAWICON((ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3)),HIGH*1.01,2);
ZB:=EMA(EMA(VAR3,5),5)*3,COLORSTICK;
VARA:=IF(VAR9 AND CROSS(MA(CLOS E,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2,COLORFF00FF;
D:=EMA(K,5), COLORWHITE;
J:=K*3-D*2,COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
CAPITAL:=GETPRICE1('通股本';
HS:=VOL/CAPITAL*100,COLORGREEN;
VARE:=MA(100*(CLO SE-LLV(C LO SE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((C LOSE-LLV(LOW,75))/(HHV(HIG H,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIG H,75)-LLV(LOW,75))*1,20,1),15,1); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95, ' 构 进 场',LINETHICK1,COLORFF00FF;
VAR1 A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR 13<=-150,-15,VAR 16))+60;
VAR1C:=VAR1 A>48 AND VAR1 B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1 C,30)=1,LOW*0.95,'顶底 ',COLORWHITE;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容