发新话题
打印

<机构K线>公式原码

<机构K线>公式原码

我在南客老师<鬼变脸>公式原码的基础上加入了<机构K线>公式原码,我个人感觉这样能在盘中抓住变盘点(看下面图例),望大家喜欢并斧正!!!
谢谢<版主>热情的服务!!!

机构K线: (鬼变脸)原码;
复制内容到剪贴板
代码:
sensitivy:=-c*10000/indexc;
direction:=c*10000/indexc;
towero:=o*10000/indexo;
towerc:=c*10000/indexc;
fc:=c*10000/indexc;
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;
tj:=between(sensitivy,towero,towerc);
stickline(tj,max(towero,towerc),sensitivy,10,0), colorred;
stickline(tj,min(towero,towerc),sensitivy,10,0), colorgreen;
stickline(sensitivy<towerc and not(tj),towero,towerc,10,0), colorred;
stickline(sensitivy>towerc and not(tj),towero,towerc,10,0), colorgreen;
stickline((towerc=towero or sensitivy=towerc) and direction=1,towero,towerc,10,0),colorred;
stickline((towerc=towero or sensitivy=towerc) and direction=0,towero,towerc,10,0),colorgreen;
附件: 您所在的用户组无法下载或查看附件

TOP

xie

TOP

不错的公式,谢谢kjyhao!

TOP

d

TOP

快速回复主题

机构K线鬼变脸)原码;
sensitivy:=-c*10000/indexc;
direction:=c*10000/indexc;
towero:=o*10000/indexo;
towerc:=c*10000/indexc;
fc:=c*10000/indexc;
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;
tj:=between(sensitivy,towero,towerc);
stickline(tj,max(towero,towerc),sensitivy,10,0), colorred;
stickline(tj,min(towero,towerc),sensitivy,10,0), colorgreen;
stickline(sensitivy<towerc and not(tj),towero,towerc,10,0), colorred;
stickline(sensitivy>towerc and not(tj),towero,towerc,10,0), colorgreen;
stickline((towerc=towero or sensitivy=towerc) and direction=1,towero,towerc,10,0),colorred;
stickline((towerc=towero or sensitivy=towerc) and direction=0,towero,towerc,10,0),colorgreen;
欢迎访问http://www.acdvip.com/

TOP

不错的公式,谢谢!!!

TOP

附件: 您所在的用户组无法下载或查看附件

TOP

不错的公式,谢谢kjyhao!

TOP

不错的公式,谢谢kjyhao!

TOP

不错的公式,谢谢kjyhao!

TOP

1要学习.....要学习

1要学习.....要学习

TOP

谢谢!!!

TOP

学习

TOP

谢谢分享。

TOP

谢谢!!!

谢谢!!!

TOP

谢谢!

TOP

谢谢

TOP

谢谢提供!……
平平凡凡人,快快乐乐心。

TOP

试着用用,谢谢

TOP

谢谢kjyhao!

TOP

谢谢提供!

TOP

发新话题