老师,把指标给我修改成同等条件下相反的方向也有提示,绿色的提示柱,谢谢老师。 [博易POBO]
咨询内容:
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
ZH: EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=IF(VAR6<=-20,10,0);
STICKLINE(VAR8=10,20,10,4,0),COLORRED;
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0),COLORCYAN,LINETHICK2;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑'); VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
ZH:EMA(EMA(VAR3,5),5)*3,COLORSTICK;
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=IF(VAR6<=-20,10,0);
STICKLINE(VAR8=10,20,10,4,0),COLORRED;
VAR11:=VARF<REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;
VAR12:=VARF>REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE<REF(CLOSE,1);
STICKLINE(VAR12ANDCOUNT(VAR12,30)=1,1,10,8,0),COLORGREEN; 来源 程序化久久网
老师,把指标给我修改成同等条件下相反的方向也有提示,绿色的提示柱,谢谢老师。
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
ZH: EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=IF(VAR6<=-20,10,0);
STICKLINE(VAR8=10,20,10,4,0),COLORRED;
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 谢谢老师,正是我想要的,下面的指标能不能修改成只显示最后的支撑和压力呢?以前的不要显示,另外买卖点修改成红绿色,并且向上向下一些,不要显示在K图里。HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0),COLORCYAN,LINETHICK2;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑'); VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
ZH:EMA(EMA(VAR3,5),5)*3,COLORSTICK;
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=IF(VAR6<=-20,10,0);
STICKLINE(VAR8=10,20,10,4,0),COLORRED;
VAR11:=VARF<REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;
VAR12:=VARF>REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE<REF(CLOSE,1);
STICKLINE(VAR12ANDCOUNT(VAR12,30)=1,1,10,8,0),COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容