软件名称:[B]鬼变脸宝塔线--另一种写法[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2009-11-08 19:49:53
软件简介:
十一的时候看了童牧野的宝塔线,四处找源码,南客大师的跟童牧野的画法有点出入,就自己在他的基础了改了改,还整合其它一些源码里东西.虽然飞狐本身带了鬼变脸主图,但自己思考后再画出来理解的深刻,其实按杨新宇博士的话说就是收盘价的一种非线性变换,现在发出来在大家参考参考吧.
搞了半天,图贴不上啊,老提示
sensitivy:=o; towero:=o; towerc:=c; fc:=c;
i:=2;
while i<=datacount do begin
towero[i]:=towerc[i-1];
towerc[i]:=fc[i];
sensitivy[i]:=towero[i-1];
if (towerc[i-1]-towero[i-1])*(towerc[i-1]-sensitivy[i-1])<=0 then
begin
towero[i]:=towero[i-1];
sensitivy[i]:=towerc[i-1];
end
else if between(sensitivy[i-1],towero[i-1],towerc[i-1]) then sensitivy[i]:=sensitivy[i-1];
i:=i+1;
end;
tj:=(sensitivy-towero)*(sensitivy-towerc)<=0 and sensitivy<>towerc;
stickline(tj,max(towero,towerc),sensitivy,7,1), colorred;
stickline(tj,min(towero,towerc),sensitivy,7,0), color006600;
stickline(sensitivy<=min(towero,towerc) and not(tj),towero,towerc,7,1), colorred;
stickline(sensitivy>=max(towero,towerc) and not(tj),towero,towerc,7,0), color006600;
今开盘:TOWERO,LINETHICK0;
今收盘:TOWERC,LINETHICK0;
今敏感:sensitivy,LINETHICK0;
三平底翻红: min(towero,towerc)=ref(min(towero,towerc),1) and min(towero,towerc)=ref(min(towero,towerc),2) and max(towero,towerc)>sensitivy,LINETHICK,COLORRED;
三平顶翻绿: max(towero,towerc)=ref(max(towero,towerc),1) and max(towero,towerc)=ref(max(towero,towerc),2) and min(towero,towerc)<SENSITIVY,LINETHICK,COLOR006600;
if k=0 then exit;
DRAWICON(三平底翻红,min(towero,towerc)*0.98,4);DRAWICON(三平顶翻绿,max(towero,towerc)*1.02,5);
[url=http://www.70822.com/soft/sort013/sort02/down-14272.html]鬼变脸宝塔线--另一种写法[/url]