机构K线(鬼变脸)原码

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;
 



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图