sensitivy:=-c;
 direction:=c;
 towero:=o;
 towerc:=c;
 fc:=c;
 i:=2;
 while i<=datacount do begin
   if towerc[i]>towero[i] and not(between(sensitivy[i],towero[i],towerc[i])) then
     direction[i]:=1;
   else if towerc[i]<towero[i] and not(between(sensitivy[i],towero[i],towerc[i])) then
          direction[i]:=0;
        else direction[i]:=direction[i-1];
   if not(between(sensitivy[i-1],towero[i-1],towerc[i-1])) then begin
     towero[i]:=towerc[i-1];towerc[i]:=fc[i];
     sensitivy[i]:=towero[i-1];
   end else begin
     towero[i]:=towerc[i-1];towerc[i]:=fc[i];
     sensitivy[i]:=sensitivy[i-1];
   end;
   i:=i+1;
 end;

今开盘:TOWERO,LINETHICK0;
今收盘:TOWERC,LINETHICK0;
敏感位:sensitivy,LINETHICK0;{上面的三句是我加的朋友们不喜欢可以自己删除}

tj:=between(sensitivy,towero,towerc);
 stickline(tj,max(towero,towerc),sensitivy,7,0), colorred;
 stickline(tj,min(towero,towerc),sensitivy,7,0), colorgreen;
 stickline(sensitivy<towerc and not(tj),towero,towerc,7,0), colorred;
 stickline(sensitivy>towerc and not(tj),towero,towerc,7,0), colorgreen;
 stickline((towerc=towero or sensitivy=towerc) and direction=0,towero,towerc,7,0),colorgreen;
 stickline((towerc=towero or sensitivy=towerc) and direction=1,towero,towerc,7,0),colorred;
 


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。