老师指标问题麻烦你 [文华财经]
-
咨询内容:
老师你好,我初学,wh6.这个指标加载不上,麻烦帮修改,谢谢!
VAR2:=LLV(LOW,10);VAR3:=HHV(HI G H,25);阶段卖:3.2,COLORC6 C600;3.5,C O LO R0088 F F;清仓:3.5,COLORFF75FF;动力线:=EM A((C LO S E-VAR2)/(VAR3-VAR2)*4,4);S TICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3,1),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3,1),COLOR00FF00;底部:0.2,COLOR70 D B93;关注:0.5,COLORYELLOW;DRAWTEXT(FILTER(CRO S S(清仓,动力线),20)| | FILTER(CRO S S(阶段卖,动力线),20),动力线+0.02,'空'),COLORGR EEN;DRAWTEXT(FILTER(CRO S S(动力线,关注),20)| |FILTER(CRO S S(动力线,底部),20),动力线+0.02,'多'),C O LO RR ED;界线:1.75,POINTDOT,LINETHICK2,CO LOR70D B93;数值:=动力线,COLORA8 A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1 :=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1 :=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIG H,34);VARO 7:=E M A((CLO S E-VARO 5)/(VARO 6-VARO 5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);VAR1 :=4*SMA((CLOS E-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((C LOSE-LLV(LOW,5))/(HHV(HIG H,5)-LLV(LOW,5))*100,5,1),3.2,1);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5))AND上升;{出手买点}出手:FILTER((CRO S S((EMA(C LO SE,2)-EMA(C LO SE,10)),EMA((EMA(CLOS E,2)-EMA(CLOS E,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);RSV:=(C LOSE-LLV(LOW,9))/(HHV(HIG H,9)-LLV(LOW,9))*100;//收盘价与N周期最低值做差 N周期最高值与N周期最低值做差两差之间做比值。K:=SMA(RS V,3,1);//RSV的移动平均值D:=SMA(K,3,1);//K的移动平均值J:=3*K-2*D;DIFF :=EMA(CLOS E,12) -EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA :=EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均TYP:=(C LO SE+HIG H+LOW)/3;//求最新价最高价和最低价三者的简单平均CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));//TYP与TYP的N周期平均值做差该差值与TYP在N个周期内的0.015倍的平均绝对偏差值做比值WR:=-100*(HHV(HIG H,14)-CLO SE)/(HHV(HIG H,14)-LLV(LOW,14));LC:=REF(CLO S E,1);//前一周期收盘价RS I 1:=S MA(MAX(C LO S E-LC,0),7,1)/S MA(ABS(CL O S E-LC),7,1)*100;//当根K线收盘价与前一周期收盘价做差在该差值与0之间取最大值做N1周期移动平均。收盘价与前一周期收盘价做差值取该差值的N1周期移动平均值两平均值之间做比值。RS I2:=S MA(MAX(C LO S E-LC,0),14,1)/S MA(ABS(CL O S E-LC),14,1)*100;//当根K线收盘价与前一周期收盘价做差在该差值与0之间取最大值做N2周期移动平均。收盘价与前一周期收盘价做差值取该差值的N2周期移动平均值两平均值之间做比值。{强势买点}D 1:=WR<5;D2:=CROSS(K,D)AND K<50;D3:=CROSS(DIFF,DEA);D4:=CCI>-100 AND CCI<-90;D5:=CROSS(RSI1,RSI2)AND RSI1<50;S1:=20;M2:=40;L1:=60;AAA:=C LO S E>OPEN;BBB:=AAA&&C LO S E>MA(CLO S E,S 1)&&CLO S E>MA(C LO S E,M2)&&C LO S E>MA(CLO SE,L1);CCC:=BBB&&OPEN<MA(CLOS E,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOS E;AA1 :=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLO S E+HI G H+LOW)/4-MA(C LO S E,20))/MA(C LO S E,20);MM:=DM A(C LO S E,WW);通道4:=(1-7/100)*MM;VAR4:=EMA(CLO S E,9);LDN:=E M A(VAR4*0.86,5);T TRR:=EMA(MAX(MAX(HI G H-LOW,ABS(HIG H-REF(C LO S E,1))),ABS(REF(CLO S E,1)-LOW)),14);HD:=HIGH-REF(HIGH,1);LD:=R EF(LOW,1)-LOW;DMP:=EM A(I F(HD>0&&HD>LD,HD,0),14);DMM:=EMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=D MM*100/T TRR;ADX:=E M A(ABS(MDI-P DI)/(MDI+PDI)*100,6);买底:C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI>=PDI AND CLOSE>OPEN;来源:程序化99
-
文华技术人员:
参考;
VAR2:=LLV(LOW,10); VAR3:=HHV(HI G H,25); 阶段卖:3.2,COLORC6 C600; 3.5,C O LO R0088 F F; 清仓:3.5,COLORFF75FF; 动力线:=EM A((C LO S E-VAR2)/(VAR3-VAR2)*4,4); S TICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3,1),COLOR00FF00; 底部:0.2,COLOR70DB93; 关注:0.5,COLORYELLOW; DRAWTEXT(FILTER(CROSS(清仓,动力线),20)|| FILTER(CRO S S(阶段卖,动力线),20),动力线+0.02,'',COLORGR EEN; DRAWTEXT(FILTER(CROSS(动力线,关注),20)||FILTER(CRO S S(动力线,底部),20),动力线+0.02,'',C O LO RR ED; 界线:1.75,POINTDOT,LINETHICK2,COLOR70D B93; 数值:=动力线,COLORA8A8A8; A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012; A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008; B1 :=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2)); B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1)); B3:=IF(C>O,O,C); B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5); A1 :=ABS(C-O)/O<0.012; 星K:A3 AND A2 AND A1 AND B4; VARO5:=LLV(LOW,27); VARO6:=HHV(HIG H,34); VARO 7:=E M A((CLO S E-VARO 5)/(VARO 6-VARO 5)*4,4)*25; 建仓区:=VARO7<10; TJ:=COUNT(建仓区,3); VAR1 :=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIG H,5)-LLV(LOW,5))*100,5,1),3.2,1); 上升:=CROSS(VAR1,8); 准备上:(建仓区 OR REF(建仓区,0.5)) AND 上升; 出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)) AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIG H,9)-LLV(LOW,9))*100;//收盘价与N周期最低值做差 N周期最高值与N周期最低值做差两差之间做比值。K:=SMA(RS V,3,1);//RSV的移动平均值D:=SMA(K,3,1);//K的移动平均值J:=3*K-2*D;DIFF :=EMA(CLOS E,12) -EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA :=EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均TYP:=(C LO SE+HIG H+LOW)/3;//求最新价最高价和最低价三者的简单平均CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));//TYP与TYP的N周期平均值做差该差值与TYP在N个周期内的0.015倍的平均绝对偏差值做比值WR:=-100*(HHV(HIG H,14)-CLO SE)/(HHV(HIG H,14)-LLV(LOW,14));LC:=REF(CLO S E,1);//前一周期收盘价RS I 1:=S MA(MAX(C LO S E-LC,0),7,1)/S MA(ABS(CL O S E-LC),7,1)*100;//当根K线收盘价与前一周期收盘价做差在该差值与0之间取最大值做N1周期移动平均。收盘价与前一周期收盘价做差值取该差值的N1周期移动平均值两平均值之间做比值。RS I2:=S MA(MAX(C LO S E-LC,0),14,1)/S MA(ABS(CL O S E-LC),14,1)*100;//当根K线收盘价与前一周期收盘价做差在该差值与0之间取最大值做N2周期移动平均。收盘价与前一周期收盘价做差值取该差值的N2周期移动平均值两平均值之间做比值。{强势买点}D 1:=WR<5;D2:=CROSS(K,D)AND K<50;D3:=CROSS(DIFF,DEA);D4:=CCI>-100 AND CCI<-90;D5:=CROSS(RSI1,RSI2)AND RSI1<50;S1:=20;M2:=40;L1:=60;AAA:=C LO S E>OPEN;BBB:=AAA&&C LO S E>MA(CLO S E,S 1)&&CLO S E>MA(C LO S E,M2)&&C LO S E>MA(CLO SE,L1);CCC:=BBB&&OPEN<MA(CLOS E,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOS E;AA1 :=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLO S E+HI G H+LOW)/4-MA(C LO S E,20))/MA(C LO S E,20);MM:=DM A(C LO S E,WW);通道4:=(1-7/100)*MM;VAR4:=EMA(CLO S E,9);LDN:=E M A(VAR4*0.86,5);T TRR:=EMA(MAX(MAX(HI G H-LOW,ABS(HIG H-REF(C LO S E,1))),ABS(REF(CLO S E,1)-LOW)),14);HD:=HIGH-REF(HIGH,1);LD:=R EF(LOW,1)-LOW;DMP:=EM A(I F(HD>0&&HD>LD,HD,0),14);DMM:=EMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=D MM*100/T TRR;ADX:=E M A(ABS(MDI-P DI)/(MDI+PDI)*100,6);买底:C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI>=PDI AND CLOSE>OPEN;
来源: WWW.CXH99.COM
-
文华客服:
老师你好,加载上去以后,副图是对的,主图什么都没有呀?应该有笑脸和哭脸的?是不是我哪里设置错了!
-
网友回复:
您应该是复制不全
1楼中没有表情标记的相关语句 -
网友回复:
老师,加载上去是这样,好像没有完全加载?我已经完全复制了
文件名:16278247448986633804178024148242.jpg
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容