找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 164|回复: 1

指标编写问答135学习的宝藏

[复制链接]
发表于 2022-1-12 23:14 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
633.问:
      牵牛的爱憎分明能改成DZH吗
DRAWGBK(C>O,COLORRGB(0,11,150),COLORRGB(55,50,100),1);
Var1:=MA(CLOSE,20);
高手多等待: 100*(CLOSE-Var1)/STD(CLOSE,20),LINETHICK0 ;
低手多无奈: EMA(高手多等待,10),LINETHICK0 ;
Var2:=EMA(高手多等待,5);
Var3:=EMA(低手多无奈,5);
Var4:=EMA(HHV(HIGH,500),21);
Var5:=EMA(HHV(HIGH,250),21);
Var6:=EMA(HHV(HIGH,90),21);
Var7:=EMA(LLV(LOW,500),21);
Var8:=EMA(LLV(LOW,250),21);
Var9:=EMA(LLV(LOW,90),21);
VarA:=EMA((Var7*0.96+Var8*0.96+Var9*0.96+Var4*0.558+Var5*0.558+Var6*0.558)/6,21);
VarB:=EMA((Var7*1.25+Var8*1.23+Var9*1.2+Var4*0.55+Var5*0.55+Var6*0.65)/6,21);
VarC:=EMA((Var7*1.3+Var8*1.3+Var9*1.3+Var4*0.68+Var5*0.68+Var6*0.68)/6,21);
VarD:=EMA((VarA*3+VarB*2+VarC)/6*1.738,21);
VarE:=REF(LOW,1);
VarF:=SMA(ABS(LOW-VarE),3,1)/SMA(MAX(LOW-VarE,0),3,1)*100;
Var10:=IF(CLOSE*1.35<=VarD,VarF*10,VarF/10);
Var11:=EMA(Var10,3);
Var12:=LLV(LOW,30);
Var13:=HHV(Var11,30);
Var14:=IF(LOW<=Var12,(Var11+Var13*2)/2,0);
Var15:=EMA(Var14,3)/500-100;
Var16:=0.2*Var15;
Var17:=1.2*Var15;
Var18:=(2*CLOSE+HIGH+LOW)/4;
Var19:=LLV(LOW,34);
Var1A:=HHV(HIGH,34);
Var1B:=(Var18-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
Var1C:=EMA(Var1B,3);
Var1D:=EMA(Var1C,3);
Var1E:=EMA((Var18-Var19)/(Var1A-Var19)*100,9);
Var1F:=EMA(0.667*REF(Var1E,1)+0.333*Var1E,3);
Var20:=LLV(HIGH,240);
Var21:=100*(CLOSE-Var20)/Var20;
Var22:=HHV(HIGH,240);
Var23:=100*(Var22-CLOSE)/CLOSE;
Var24:=REF(HHV(CLOSE,60),1);
Var25:=REF(LLV(CLOSE,60),1);
Var26:=100*(CLOSE-Var25)/(Var24-Var25);

{画柱线}
STICKLINE(高手多等待>=低手多无奈,高手多等待,低手多无奈,6,0),colorcc99ff;
STICKLINE(高手多等待<低手多无奈,低手多无奈,高手多等待,6,0),colorcc6600;
STICKLINE(Var2>=Var3,Var2,Var3,6,0),colorcc99ff;//柱线下段
STICKLINE(Var2<Var3,Var3,Var2,6,0),colorcc6600;
STICKLINE(CROSS(高手多等待,低手多无奈),高手多等待,低手多无奈,8,0),colorred;
STICKLINE(高手多等待>=170,高手多等待,低手多无奈,6,0),colorcc99ff;

   答(广州宝贝):
DZH
Var1:=MA(CLOSE,20);
高手多等待: 100*(CLOSE-Var1)/STD(CLOSE,20),LINETHICK0 ;
低手多无奈: EMA(高手多等待,10),LINETHICK0 ;
Var2:=EMA(高手多等待,5);
Var3:=EMA(低手多无奈,5);
Var4:=EMA(HHV(HIGH,500),21);
Var5:=EMA(HHV(HIGH,250),21);
Var6:=EMA(HHV(HIGH,90),21);
Var7:=EMA(LLV(LOW,500),21);
Var8:=EMA(LLV(LOW,250),21);
Var9:=EMA(LLV(LOW,90),21);
VarA:=EMA((Var7*0.96+Var8*0.96+Var9*0.96+Var4*0.558+Var5*0.558+Var6*0.558)/6,21);
VarB:=EMA((Var7*1.25+Var8*1.23+Var9*1.2+Var4*0.55+Var5*0.55+Var6*0.65)/6,21);
VarC:=EMA((Var7*1.3+Var8*1.3+Var9*1.3+Var4*0.68+Var5*0.68+Var6*0.68)/6,21);
VarD:=EMA((VarA*3+VarB*2+VarC)/6*1.738,21);
VarE:=REF(LOW,1);
VarF:=SMA(ABS(LOW-VarE),3,1)/SMA(MAX(LOW-VarE,0),3,1)*100;
Var10:=IF(CLOSE*1.35<=VarD,VarF*10,VarF/10);
Var11:=EMA(Var10,3);
Var12:=LLV(LOW,30);
Var13:=HHV(Var11,30);
Var14:=IF(LOW<=Var12,(Var11+Var13*2)/2,0);
Var15:=EMA(Var14,3)/500-100;
Var16:=0.2*Var15;
Var17:=1.2*Var15;
Var18:=(2*CLOSE+HIGH+LOW)/4;
Var19:=LLV(LOW,34);
Var1A:=HHV(HIGH,34);
Var1B:=(Var18-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
Var1C:=EMA(Var1B,3);
Var1D:=EMA(Var1C,3);
Var1E:=EMA((Var18-Var19)/(Var1A-Var19)*100,9);
Var1F:=EMA(0.667*REF(Var1E,1)+0.333*Var1E,3);
Var20:=LLV(HIGH,240);
Var21:=100*(CLOSE-Var20)/Var20;
Var22:=HHV(HIGH,240);
Var23:=100*(Var22-CLOSE)/CLOSE;
Var24:=REF(HHV(CLOSE,60),1);
Var25:=REF(LLV(CLOSE,60),1);
Var26:=100*(CLOSE-Var25)/(Var24-Var25);

{画柱线}
STICKLINE(高手多等待>=低手多无奈,高手多等待,低手多无奈,5,0),colorcc99ff;
STICKLINE(高手多等待<低手多无奈,低手多无奈,高手多等待,5,0),colorcc6600;
STICKLINE(Var2>=Var3,Var2,Var3,5,0),colorcc99ff;
STICKLINE(Var2<Var3,Var3,Var2,5,0),colorcc6600;
STICKLINE(CROSS(高手多等待,低手多无奈),高手多等待,低手多无奈,7,0),colorred;
STICKLINE(高手多等待>=170,高手多等待,低手多无奈,5,0),colorcc99ff;



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-23 02:52 , Processed in 0.087721 second(s), Total 12, Slave 11 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表