股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐]飞狐鬼变脸宝塔线源码公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2020-1-2 04:10:16
飞狐鬼变脸宝塔线源码公式:
sensitivy:=o; towero:=o; towerc:=c; fc:=c;
i:=2;
while i<=datacount do begin
  towero:=towerc[i-1];
  towerc:=fc;
  sensitivy:=towero[i-1];
  if (towerc[i-1]-towero[i-1])*(towerc[i-1]-sensitivy[i-1])<=0 then
    begin
      towero:=towero[i-1];
      sensitivy:=towerc[i-1];
    end
  else if between(sensitivy[i-1],towero[i-1],towerc[i-1]) then sensitivy:=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);



10010503578d0c0ee7f1bbe2f9.png

2.94 KB, 下载次数: 21


回复

举报

GMT+8, 2025-2-23 04:59

快速回复 返回顶部 返回列表