查看完整版本: <机构K线>公式原码

kjyhao 2004-10-10 09:38

<机构K线>公式原码

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

机构K线: (鬼变脸)原码;
[code]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;[/code]

lhl311 2004-10-11 13:09

xie

wtm316316 2005-4-30 14:11

分析家5.0能用吗??请指教

谢谢!!!

股市骑兵00 2005-4-30 15:24

不错的公式,谢谢kjyhao!

gjl 2005-4-30 16:22

d

清风斜阳 2005-4-30 16:33

快速回复主题

机构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;

ajiu 2005-6-11 21:39

不错的公式,谢谢!!!

林枫 2005-6-11 22:46

:D

ycpyj 2005-6-12 20:51

不错的公式,谢谢kjyhao!

ycpyj 2005-6-12 20:52

不错的公式,谢谢kjyhao!

stock999 2005-6-14 23:28

不错的公式,谢谢kjyhao!

中华五月 2005-7-1 10:43

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

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

LIONLY 2005-7-7 16:58

谢谢!!!

zxh5110 2005-7-10 13:06

学习

moudz 2005-7-10 14:49

谢谢!!!

shine90 2005-7-10 21:23

谢谢分享。

lxinhe 2005-7-11 09:13

谢谢!!!

谢谢!!!

yukihimi 2005-7-11 23:29

谢谢

KevinQiu 2005-7-12 18:00

谢谢!!!!!

tedted 2005-9-9 10:23

谢谢!

绿色通道 2005-9-9 17:02

谢谢

Aptiva 2006-8-1 05:28

谢谢提供!……

iwltw 2007-7-12 18:27

试着用用,谢谢

ljq 2007-7-14 21:46

谢谢kjyhao!

wanghuo 2007-11-27 20:56

谢谢提供!:clap:
页: [1]
查看完整版本: <机构K线>公式原码