-- 公式修改
老师,文华财经指标输入金字塔出现问题,请指教,请转换,谢谢
笔参数:=5;
段参数:=6;
笔低A:=LOW<=LLV(LOW,笔参数),NODRAW;
笔高A:=HIGH>=HHV(HIGH,笔参数),NODRAW;
笔低:=笔低A AND 笔高A=0,NODRAW;
笔高:=笔高A AND 笔低A=0,NODRAW;
VP1:=BACKSET(笔高,BARSLAST(笔低)+1);
VP2:=BACKSET(笔低,BARSLAST(笔高)+1);
VP3:=(笔低A AND VP2 AND VP1) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(笔低A)+1),0.5));
VP4:=(VP1 AND 笔高A AND VP2) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(笔高A)+1),0.5));
DRAWLINE1(VP3,LOW,VP4,HIGH,0),COLORGREEN,LINETHICK2;
DRAWLINE1(VP4,HIGH,VP3,LOW,0),COLORGREEN,LINETHICK2;
段低A:=LOW<=LLV(LOW,段参数*笔参数),NODRAW;
段高A:=HIGH>=HHV(HIGH,段参数*笔参数),NODRAW;
段低:=段低A AND 段高A=0;
段高:=段高A AND 段低A=0;
段8:=REF(HIGH,BARSLAST(BACKSET(ISLASTBAR,SUMBARS(段高,1)) AND REF(BACKSET(ISLASTBAR,SUMBARS(段高,1)),1)=0)),COLOR575757;
VP5:=BACKSET(段高,BARSLAST(段低)+1);
VP6:=BACKSET(段低,BARSLAST(段高)+1);
VP7:=(段低A AND VP6 AND VP5) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段低A)+1),0.5));
VP8:=(VP5 AND 段高A AND VP6) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段高A)+1),0.5));
DRAWLINE1(VP7,LOW,VP8,HIGH,0),COLORWHITE,DASHDOTDOT;
DRAWLINE1(VP8,HIGH,VP7,LOW,0),COLORBLUE,DASHDOTDOT;
L1:=VALUEWHEN(VP3,LOW);
H1:=VALUEWHEN(VP4,HIGH);
XX:=H1-L1;
Q:=SUMBARS(VP3||VP4,2);
DRAWSL(ISLASTBAR,H1,0,-Q+1,0,COLORYELLOW);
DRAWSL(ISLASTBAR,L1,0,-Q+1,0,COLORYELLOW);
DRAWSL(ISLASTBAR,H1-0.5*XX,0,-Q+1,0,COLORYELLOW);
DRAWSL(ISLASTBAR,L1+0.618*XX,0,-Q+1,0,COLORYELLOW);
DRAWSL(ISLASTBAR,L1+0.312*XX,0,-Q+1,0,COLORYELLOW);
[此贴子已经被作者于2020/10/15 11:50:27编辑过]