欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 麻烦转金字塔

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有2829人关注过本帖树形打印复制链接

主题:麻烦转金字塔

帅哥哟,离线,有人找我吗?
qq代人发帖
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:18691 积分:0 威望:0 精华:0 注册:2013/7/15 9:22:16
麻烦转金字塔  发帖心情 Post By:2021/3/5 16:59:08    Post IP:58.246.57.26[只看该作者]

PHD:=IFELSE(LLV(L,3)>=REF(H,3),REF(H,3), IFELSE((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3), 
IFELSE(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3)))); 

倍量:=(VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1); 
STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW; 
倍量黄金柱:=(LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4);
梯量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
DRAWICON(倍量黄金柱,PHD*1.008,12); 
DRAWCOLORKLINE(倍量黄金柱,COLORMAGENTA,0);
平量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
HJZ:=(3*C+H+L+O)/6; 
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; 
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O; 
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW; 
STICKLINE(黄金柱,O,C,3.3,0),COLORRED; 
STICKLINE(黄金柱,H,L,0.1,0),COLORRED; 
XG:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN; 
XG1:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF; 
STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 
STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 

 回到顶部
帅哥哟,离线,有人找我吗?
福星牛牛
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:5 积分:0 威望:0 精华:0 注册:2021/3/4 11:35:29
麻烦老师文华公式改金字塔公式谢谢  发帖心情 Post By:2021/3/5 17:05:58    Post IP:110.81.58.110[只看该作者]

PHD:=IFELSE(LLV(L,3)>=REF(H,3),REF(H,3), IFELSE((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3), 
IFELSE(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3)))); 

倍量:=(VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1); 
STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW; 
倍量黄金柱:=(LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4);
梯量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
DRAWICON(倍量黄金柱,PHD*1.008,12); 
DRAWCOLORKLINE(倍量黄金柱,COLORMAGENTA,0);
平量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
HJZ:=(3*C+H+L+O)/6; 
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; 
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O; 
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW; 
STICKLINE(黄金柱,O,C,3.3,0),COLORRED; 
STICKLINE(黄金柱,H,L,0.1,0),COLORRED; 
XG:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN; 
XG1:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF; 
STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 
STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 

 回到顶部
帅哥哟,离线,有人找我吗?
福星牛牛
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:5 积分:0 威望:0 精华:0 注册:2021/3/4 11:35:29
麻烦老师文华公式改金字塔公式 缠论 谢谢  发帖心情 Post By:2021/3/5 17:11:47    Post IP:110.81.58.110[只看该作者]

G:=MA(C,5);

 

D:=MA(C,10);

NNH:=BARSLAST(H=HHV(H,7)) ,NODRAW;

NNL:=BARSLAST(L=LLV(L,7)) ,NODRAW;

//PD:=REF(G,NNH)>REF(D,NNH) ,NODRAW;

NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=4,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=4,NNL,5)) ,NODRAW;

N:=IF(ISLASTBAR AND NN>0,NN,5) ,NODRAW;

HH:=REF(H,N)=HHV(H,6);

LL:=REF(L,N)=LLV(L,6);

FG01:BACKSET(HH,N+1)>BACKSET(HH,N),NODRAW;//只设置前面第6

FD01:BACKSET(LL,N+1)>BACKSET(LL,N) ,NODRAW;

FG02:=FG01=FD01 AND G>D,NODRAW;

FD02:FG01=FD01 AND G<D,NODRAW;

//FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,//高底是同一K看均线位置

//        IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0)),NODRAW;//高点处BARLAST(FG01)=0

//FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01,

//IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0)),NODRAW;

TTTT:BARSLAST(FD01),NODRAW;

//FG0:=FG01 AND H=HHV(H,IF(FG02=1,BARSLAST(REF(FD01,1))+1,BARSLAST(FD01))) AND FD02=0 ,NODRAW;

//FD0:=FD01 AND L=LLV(L,IF(FD02=1,BARSLAST(REF(FG01,1))+1,BARSLAST(FG01))) AND FG02=0 ,NODRAW;

FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;

FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST(FG01))))  AND FG02=0 ,NODRAW;

//高低点间周期

//高低点间周期

GT:BARSLAST(FG0),NODRAW;

DT:BARSLAST(FD0),NODRAW;

//第一次处理高低点间多余的点

LLLL:DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;

FG1:BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;

FD1:BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;

FG11:IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,7)))>REF(D,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND  H<REF(H,REF(GT,1)+1),1,0),NODRAW;

FD11:IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(D,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;

//再次周期

GT1:BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;

DT1:BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;

//GGT1:=REF(GT1,1),NODRAW;

//处理两边都少于3根的笔

//HHHH:REF(H,GT1),NODRAW;

//HHHHH:HHV(H,GT1+5),NODRAW;

FD2:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;

//加两句,低是最低,去两边;

//NL:GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 ,NODRAW;

//LLLLLLLL:LLV(L,GT1+5),NODRAW;

FG2A:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;

FG2B:IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;

FG2:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;

FD2A:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;

FD2B:IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;

//

//HHV(H,GT1+1)<HHV(H,GT1+15)

//GGG:HHV(H,GT1+1),NODRAW;

//DDD:HHV(H,GT1+15),NODRAW;

//处理单边都少于3根的笔

//GT11:=BARSLAST(GT1=0 AND FG2<>1),NODRAW;

//DT11:=BARSLAST(DT1=0 AND FD2<>1  AND FD20<>1),NODRAW;

//FG21:IF(GT1=0 AND DT1<4 AND H<HHV(H,REF(GT1,1)+3),1,0),NODRAW;

//FD21:IF(DT1=0 AND GT1<4  AND L>LLV(L,REF(DT1,1)+3) ,1,0),NODRAW;

//FD22:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;

//FG22:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;

TTTTTT: H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;

HHHHHH:REF(LLV(L,10),DT1),NODRAW;

//前长后短;

FG21:IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1)  ,1,0),NODRAW;

FD21:IF(DT1=0 AND GT1<4  AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;

//前短后长,前低后高(去低);

FD231:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;

FG23:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND  GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;

//前短后长,前高后低(去高);

//NNN:REF(H,GT1)>=REF(HHV(H,8),GT1),NODRAW;

//前短后长,去2;

FG231:BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;

FD23:BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;

///前短后长,去3;

FDD23:REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;

FD24:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;

FG24:BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;

//FG241:IF(GT1=0 AND DT1>4 AND  REF(GT1,1)-DT1<3  AND H<HHV(H,REF(GT1,1)+3)   AND REF(FD24,DT1+2)<>1,1,0),NODRAW;

//FD241:IF(DT1=0 AND GT1>4  AND REF(DT1,1)-GT1<3   AND L>LLV(L,REF(DT1,1)+3)  AND REF(FG24,GT1+2)<>1,1,0),NODRAW;

//FGE:BACKSET(ISLASTBAR AND DT1-GT1<3 AND DT1>GT1, GT1+1),NODRAW;

//FDE:BACKSET(ISLASTBAR AND GT1-DT1<3  AND GT1>DT1, DT1+1),NODRAW;

//FG21:IF(GT1=0 AND DT1<4 AND REF(GT1,1)<4,1,0),NODRAW;

//FD21:IF(DT1=0 AND GT1<4  AND REF(DT1,1)<4 ,1,0),NODRAW;

//做两次高低点间多余的点

GT2:BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1   AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;

DT2:BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1  AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;

FG3:BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;

//HHX:REF(H,GT2),NODRAW;

FD3:BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;

FG31:IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;

FD31:IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;

GT3:BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;

DT3:BARSLAST(DT2=0 AND  FD3<>1 AND FD31<>1),NODRAW;

FG4:BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;

FD4:BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;

FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;

FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;

//FD31:IF(DT2=0 AND REF(DT2,1)<REF(GT2,1) AND L>REF(L,DT2+1),1,0),NODRAW;

//HHH:=GT3=0,NODRAW;

//LLL:=DT3=0,NODRAW;

HHH:=GT3=0 AND FG31<>1 AND  FG3<>1,NODRAW;

LLL:=DT3=0 AND FD31<>1 AND  FD3<>1,NODRAW;

//HHH:=FG0 AND FG11<>1 AND FG1<>1 AND  FG2<>1 AND FG21<>1 AND   FG31<>1 AND  FG3<>1;

//LLL:=FD0 AND FD11<>1 AND FD1<>1 AND  FD2<>1 AND FD21<>1 AND FD31<>1 AND  FD3<>1;

DRAWLINE1(HHH ,H,LLL,L,0),COLORWHITE,DOT;

DRAWLINE1(LLL,L,HHH ,H,0),COLORWHITE,DOT;

//DRAWLINE(,H,UU, L,COLORGREEN);

//PARTLINE(FG0 AND FG41<>1 AND  FG4<>1 AND   FG31<>1 AND  FG3<>1 AND  FG2<>1 AND FG11<>1 AND FG1<>1,H,COLORYELLOW),CIRCLEDOT,LINETHICK5;

//PARTLINE(FD0 AND  FD41<>1 AND  FD4<>1 AND  FD31<>1 AND  FD3<>1 AND  FD2<>1 AND FD11<>1 AND FD1<>1,L,COLORCYAN),CIRCLEDOT,LINETHICK5;

//PARTLINE(FD01  ,L,COLORRED),CIRCLEDOT,LINETHICK2;

PARTLINE(FG0  ,H,COLORYELLOW),POINTDOT,LINETHICK2;

PARTLINE(FD0  ,L,COLORCYAN),CIRCLEDOT,LINETHICK2;


 回到顶部
帅哥哟,离线,有人找我吗?
福星牛牛
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:5 积分:0 威望:0 精华:0 注册:2021/3/4 11:35:29
麻烦老师文华公式改金字塔公式谢谢 可以在加上黄金线吗,就是黄金柱的实体上缘和下缘画条虚线  发帖心情 Post By:2021/3/5 17:23:19    Post IP:110.81.58.110[只看该作者]

PHD:=IFELSE(LLV(L,3)>=REF(H,3),REF(H,3), IFELSE((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3), 
IFELSE(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3)))); 

倍量:=(VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1); 
STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW; 
倍量黄金柱:=(LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4);
梯量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
DRAWICON(倍量黄金柱,PHD*1.008,12); 
DRAWCOLORKLINE(倍量黄金柱,COLORMAGENTA,0);
平量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
HJZ:=(3*C+H+L+O)/6; 
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; 
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O; 
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW; 
STICKLINE(黄金柱,O,C,3.3,0),COLORRED; 
STICKLINE(黄金柱,H,L,0.1,0),COLORRED; 
XG:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN; 
XG1:=SUMBARS(FILTER(黄金柱,2),1); 
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF; 
STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 
STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; 


 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2021/3/5 17:24:10    Post IP:58.246.57.26[只看该作者]

 黄金线是如何定义的,还请具体说明下。


命数如织,当如磐石。
 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2021/3/8 9:35:24    Post IP:58.246.57.26[只看该作者]

 代码1:
首先说明下,部分函数无法转换且无法间接实现,已经在下面代码注释中说明了。另外就是其他软件的机制毕竟和我们不一样,我们只能从代码字面意思去尝试处理, 我们无法额外知晓其他软件实现上的一些细节。所以无法保证实现效果的一致性。下面代码你可以试下,除去不能实现的部分,其他效果上的差异,建议你对比后贴图说明下,这样才能进一步修改。

PHD:=IFELSE(LLV(L,3)>=REF(H,3),REF(H,3), IFELSE((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),
IFELSE(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));

倍量:=(VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1);
STICKLINE(倍量,OPEN,CLOSE,10,0,COLORYELLOW);  
倍量黄金柱:=(LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4);
梯量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;

//这个图标 第12号的图标 不同软件不一样。因此这里的绘制效果肯定不一样
DRAWICON(倍量黄金柱,PHD*1.008,12);

//这个画K线,且带颜色的目前无法处理,金字塔的绘制K线的函数 是无法指定颜色的。
//DRAWCOLORKLINE(倍量黄金柱,COLORMAGENTA,0);
平量黄金柱:=LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;
STICKLINE(黄金柱,O,C,10,0,COLORRED);
STICKLINE(黄金柱,H,L,10,0,COLORRED);
XG:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0,COLORGREEN);
XG1:=SUMBARS(FILTER(黄金柱,2),1);
//
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0,COLORMAGENTA);
STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0,COLORYELLOW);
STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0,COLORYELLOW);  




命数如织,当如磐石。
 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  7楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2021/3/8 9:53:13    Post IP:58.246.57.26[只看该作者]

3楼的代码。看了下 纯计算的代码部分几乎是一致的。

单独需要几句就行了。

DRAWLINE1(HHH ,H,LLL,L,0),COLORWHITE,DOT;

DRAWLINE1(LLL,L,HHH ,H,0),COLORWHITE,DOT;

这2句(这2句在最后面一段里)改成下面这样

DRAWLINE(HHH ,H,LLL,L,0,COLORWHITE,0,vtdot);
DRAWLINE(LLL,L,HHH ,H,0,COLORWHITE,0,vtdot);



命数如织,当如磐石。
 回到顶部
帅哥哟,离线,有人找我吗?
福星牛牛
  8楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:5 积分:0 威望:0 精华:0 注册:2021/3/4 11:35:29
  发帖心情 Post By:2021/3/8 11:44:32    Post IP:110.81.56.60[只看该作者]

你好老师
           主图叠加指标K线位置对不上,麻烦看一下有办法修改一下吗

 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  9楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2021/3/8 13:05:00    Post IP:58.246.57.26[只看该作者]



命数如织,当如磐石。
 回到顶部
帅哥哟,离线,有人找我吗?
福星牛牛
  10楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:5 积分:0 威望:0 精华:0 注册:2021/3/4 11:35:29
麻烦老师通达信公式改金字塔公式谢谢  发帖心情 Post By:2021/3/8 15:53:40    Post IP:110.81.56.60[只看该作者]

{三角形中枢}

时间:=4;

A:=H=HHV(H,时间*5) AND HHV(H,时间*5)>REF(HHV(H,时间*5),1);

B:=L=LLV(L,时间*5) AND LLV(L,时间*5)<REF(LLV(L,时间*5),1);

CC1:DRAWLINE(A,H,B,L,0);

CC2:DRAWLINE(B,L,A,H,0);

N:=(0,1,1);

{缠论高低点}

局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);

局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);

局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);

局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);

局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);

局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);

缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));

距前高天:=BARSLAST(局部高点预选C=1);

距前低天:=BARSLAST(局部低点预选C=-1);

小值周期:=LOWRANGE(L);

大值周期:=TOPRANGE(H);

低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);

低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);

低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);

预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);

判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);

高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);

高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);

高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);

预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);

判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);

低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);

低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);

低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);

距前高天A:=BARSLAST(高保留=1);

距前低天A:=BARSLAST(低保留=-1);

预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);

判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);

高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);

高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);

高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);

预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);

判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);

低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);

低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);

低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);

距前高天YA:=BARSLAST(高保留X=1);

距前低天YA:=BARSLAST(低保留X=-1);

预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);

判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);

高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);

高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);

高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);

预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);{好股票WWW.GOODGUPIAO.COM}

判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);

低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);

低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);

低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);

AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));

极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);

局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;

C1:DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORLIGRAY;

C2:DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORLIGRAY;

极顶:=IF(N=1,C2=C1 AND 局部高点预选A AND 极点保留=1,DRAWNULL);

极底:=IF(N=1,C2=C1 AND 局部低点预选A AND 极点保留=-1,DRAWNULL);

A1:=BARSLAST(极顶);B1:=CURRBARSCOUNT=CONST(A1)+1;D1:=BARSLAST(B1);1:=CONST(REF(H,D1));

A2:=REF(A1,A1+1)+A1+1;B2:=CURRBARSCOUNT=CONST(A2)+1;D2:=BARSLAST(B2);2:=CONST(REF(H,D2));

A3:=REF(A2,A1+1)+A1+1;B3:=CURRBARSCOUNT=CONST(A3)+1;D3:=BARSLAST(B3);3:=CONST(REF(H,D3));

DA1:=BARSLAST(极底);DB1:=CURRBARSCOUNT=CONST(DA1)+1;DD1:=BARSLAST(DB1);1:=CONST(REF(L,DD1));

DA2:=REF(DA1,DA1+1)+DA1+1;DB2:=CURRBARSCOUNT=CONST(DA2)+1;DD2:=BARSLAST(DB2);2:=CONST(REF(L,DD2));

DA3:=REF(DA2,DA1+1)+DA1+1;DB3:=CURRBARSCOUNT=CONST(DA3)+1;DD3:=BARSLAST(DB3);3:=CONST(REF(L,DD3));

三角型放大A:=1<2 AND 2>1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>2;

中枢A1:=IF(三角型放大A AND CONST(C)<1,DB2,DRAWNULL);

STICKLINE(中枢A1,CONST(C),2,0,0),COLORLIMAGENTA;

中枢A2:=IF(三角型放大A AND CONST(C)<1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢A2,CONST(C),2,0,0),COLORLIMAGENTA;

DRAWLINE(中枢A1=1,CONST(C),中枢A2=1,CONST(C),0),DOTLINE,COLORLIMAGENTA;

DRAWLINE(中枢A1=1,2,中枢A2=1,2,0),COLORLIMAGENTA;

{成立}

中枢AC1:=IF(三角型放大A AND CONST(C)>=1,DB2,DRAWNULL);

STICKLINE(中枢AC1,1,1,0,0),COLORLIMAGENTA;

中枢AC2:=IF(三角型放大A AND CONST(C)>=1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢AC2,1,1,0,0),COLORLIMAGENTA;

DRAWLINE(中枢AC1=1,1,中枢AC2=1,1,0),COLORLIMAGENTA;

DRAWLINE(中枢AC1=1,1,中枢AC2=1,1,0),COLORLIMAGENTA;

三角型放大B:=1>2 AND 1>2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<2;

中枢B1:=IF(三角型放大B AND CONST(C)>1,B2,DRAWNULL);

STICKLINE(中枢B1,CONST(C),2,0,0),COLORGREEN;

中枢B2:=IF(三角型放大B AND CONST(C)>1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢B2,CONST(C),2,0,0),COLORGREEN;

DRAWLINE(中枢B1=1,2,中枢B2=1,2,0),COLORGREEN;

DRAWLINE(中枢B1=1,CONST(C),中枢B2=1,CONST(C),0),DOTLINE,COLORGREEN;

{成立}

中枢BC1:=IF(三角型放大B AND CONST(C)<=1,B2,DRAWNULL);

STICKLINE(中枢BC1,2,1,0,0),COLORGREEN;

中枢BC2:=IF(三角型放大B AND CONST(C)<=1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢BC2,2,1,0,0),COLORGREEN;

DRAWLINE(中枢BC1=1,2,中枢BC2=1,2,0),COLORGREEN;

DRAWLINE(中枢BC1=1,1,中枢BC2=1,1,0),COLORGREEN;

三角型收敛A:=1>2 AND 2>1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>1;

中枢C1:=IF(三角型收敛A AND CONST(C)<1,DB2,DRAWNULL);

STICKLINE(中枢C1,CONST(C),1,0,0),COLORYELLOW;

中枢C2:=IF(三角型收敛A AND CONST(C)<1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢C2,CONST(C),1,0,0),COLORYELLOW;

DRAWLINE(中枢C1=1,CONST(C),中枢C2=1,CONST(C),0),DOTLINE,COLORYELLOW;

DRAWLINE(中枢C1=1,1,中枢C2=1,1,0),COLORYELLOW;

{成立}{好股票WWW.GOODGUPIAO.COM}

中枢CC1:=IF(三角型收敛A AND CONST(C)>=1,DB2,DRAWNULL);

STICKLINE(中枢CC1,1,1,0,0),COLORYELLOW;

中枢CC2:=IF(三角型收敛A AND CONST(C)>=1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢CC2,1,1,0,0),COLORYELLOW;

DRAWLINE(中枢CC1=1,1,中枢CC2=1,1,0),COLORYELLOW;

DRAWLINE(中枢CC1=1,1,中枢CC2=1,1,0),COLORYELLOW;

三角型收敛B:=1>2 AND 1<2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<1;

中枢D1:=IF(三角型收敛B AND CONST(C)>1,B2,DRAWNULL);

STICKLINE(中枢D1,CONST(C),1,0,0),COLORLICYAN;

中枢D2:=IF(三角型收敛B AND CONST(C)>1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢D2,CONST(C),1,0,0),COLORLICYAN;

DRAWLINE(中枢D1=1,1,中枢D2=1,1,0),COLORLICYAN;

DRAWLINE(中枢D1=1,CONST(C),中枢D2=1,CONST(C),0),DOTLINE,COLORLICYAN;

{成立}

中枢DC1:=IF(三角型收敛B AND CONST(C)<=1,B2,DRAWNULL);

STICKLINE(中枢DC1,1,1,0,0),COLORLICYAN;

中枢DC2:=IF(三角型收敛B AND CONST(C)<=1,ISLASTBAR,DRAWNULL);

STICKLINE(中枢DC2,1,1,0,0),COLORLICYAN;

DRAWLINE(中枢DC1=1,1,中枢DC2=1,1,0),COLORLICYAN;

DRAWLINE(中枢DC1=1,1,中枢DC2=1,1,0),COLORLICYAN;


 回到顶部
总数 11 1 2 下一页