源码:
X:=10;
笔参数:=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),NODRAW;
DRAWLINE1(VP4,HIGH,VP3,LOW,0),NODRAW;
段低A:=LOW<=LLV(LOW,段参数*笔参数),NODRAW;
段高A:=HIGH>=HHV(HIGH,段参数*笔参数),NODRAW;
段低:=段低A AND 段高A=0;
段高:=段高A AND 段低A=0;
完整源码请升级VIP会员解锁!