转换成文华代码

03-08 19:45发布

DIF:=EMA(C,2);

DEA:=EMA(SLOPE(C,30)*5+C,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,LINETHICK0;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)
+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)
+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)
+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)
+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
DRAWICON(CROSS(DIF,DEA),L-0.03,1);
DRAWICON(CROSS(DEA,DIF),H+0.03,4);
STICKLINE(DIF>=DEA AND CLOSE>OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(DIF>=DEA AND CLOSE
STICKLINE(DIF>=DEA AND CLOSE>OPEN,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(DIF>=DEA AND CLOSE
STICKLINE(DIF
STICKLINE(DIFOPEN,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(DIF
STICKLINE(DIFOPEN,CLOSE,OPEN,2,1),COLORCYAN;

DIF:=EMA(C,2);
DEA:=EMA(SLOPE(C,30)*5+C,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,LINETHICK0;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)
+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)
+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)
+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)
+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
DRAWICON(CROSS(DIF,DEA),L-0.03,1);
DRAWICON(CROSS(DEA,DIF),H+0.03,4);
STICKLINE(DIF>=DEA AND CLOSE>OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(DIF>=DEA AND CLOSE
STICKLINE(DIF>=DEA AND CLOSE>OPEN,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(DIF>=DEA AND CLOSE
STICKLINE(DIF
STICKLINE(DIFOPEN,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(DIF
STICKLINE(DIFOPEN,CLOSE,OPEN,2,1),COLORCYAN;
付费偷看设置
发送
9条回答
文华解答
2楼-- · 03-08 20:40
参考:

DIF:=EMA(C,2);
DEA:=EMA(SLOPE(C,30)*5+C,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,NODRAW;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)
+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)
+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)
+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)
+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
DRAWICON(CROSS(DIF,DEA),L-0.03,1);
DRAWICON(CROSS(DEA,DIF),H+0.03,4);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE>OPEN,COLORRED,1);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE
DRAWCOLORKLINE(DIFOPEN,COLORCYAN,1);
DRAWCOLORKLINE(DIF
不悔用文华
3楼-- · 03-08 21:01
VAR1:=(HIGH+LOW+CLOSE*2)/4;


VAR2:=EMA(VAR1,21);


VAR3:=STD(VAR1,21);


VAR4:=((VAR1-VAR2)/VAR3*100+200)/4;


VAR5:=(EMA(VAR4,89)-25)*1.56;


VAR6:=EMA(VAR5,5)*1.22;


VAR7:=EMA(VAR6,3);


VAR8:=3*VAR6-2*VAR7;


VAR1A:=IF(CROSS(VAR6,VAR8) AND CROSS(VAR7,VAR8) AND CROSS(VAR7,VAR6),1,0);


VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);


VAR1C:=EMA(VAR1B,21);


VAR1D:=(VAR1B-VAR1C)*10;


VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);


拉升资金:IF(VAR1D,VAR1F,0)/10,COLORMAGENTA;


VAR9:=EMA(CLOSE,2)-EMA(CLOSE,55);


VAR10:=EMA(VAR9,13);


VAR11:=2*(VAR9-VAR10);


主力资金:POW(VAR11,3)*10+POW(VAR11,1),COLORRED;


0,COLORYELLOW;
文华解答
4楼-- · 03-08 21:21
3楼指标可以在wh6直接使用,指标属性保存为副图指标加载。
不悔用文华
5楼-- · 03-08 21:41
N:=44;

主力筹码估算:=EMA(WINNER(CLOSE)*70,3);

散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);

主力控盘比率:主力筹码估算/(主力筹码估算+散户筹码估算)*100,COLORYELLOW;
中:50,POINTDOT,COLORGREEN;
不悔用文华
6楼-- · 03-08 22:00
DIF:=EMA(C,2);
DEA:=EMA(SLOPE(C,30)*5+C,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,NODRAW;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)
+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)
+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)
+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)
+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
DRAWICON(CROSS(DIF,DEA),L-0.03,3);
DRAWICON(CROSS(DEA,DIF),H+0.03,4);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE>OPEN,COLORRED,1);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE
DRAWCOLORKLINE(DIFOPEN,COLORCYAN,1);
DRAWCOLORKLINE(DIF

添加macd,diff>0,做多。diff
转换成自动化交易代码
文华解答
7楼-- · 03-08 22:20
DIF:=EMA(C,2);
DEA:=EMA(SLOPE(C,30)*5+C,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,NODRAW;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)
+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)
+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)
+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)
+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
DRAWICON(CROSS(DIF,DEA),L-0.03,3);
DRAWICON(CROSS(DEA,DIF),H+0.03,4);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE>OPEN,COLORRED,1);
DRAWCOLORKLINE(DIF>=DEA AND CLOSE
DRAWCOLORKLINE(DIFOPEN,COLORCYAN,1);
DRAWCOLORKLINE(DIF
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DRAWTEXT(CROSS(DIFF,0),H,'多');
DRAWTEXT(CROSSDOWN(DIFF,0),H,'空');

另外,为方便论坛管理和高效回复,新的问题请重新发帖提问,感谢您的配合。