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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信看图说话(左右投机)源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-8 20:29:44

以下是通达信看图说话(左右投机)源码

{连续4根阴线,含平盘收盘情形。主要要区分对待(规避)去年的两大浪的1000点杀爹时候。。}
BTJ01:EVERY(C<O,4);

{统计四根阴线或者更多根阴线以后的跌幅 }
BTJ02:=100*IF(BTJ01=1 AND SUM(BTJ01,2)=1,C/REF(C,3)-1,DRAWNULL)LINETHICK3;{只有4天的累计跌幅}
BTJ03:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=2,C/REF(C,4)-1,DRAWNULL)LINETHICK3;{只有5天的累计跌幅};
BTJ04:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=3,C/REF(C,5)-1,DRAWNULL)LINETHICK3;{只有6天的累计跌幅};
BTJ05:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=4,C/REF(C,6)-1,DRAWNULL)LINETHICK3;{只有7天的累计跌幅};
BTJ06:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=5,C/REF(C,7)-1,DRAWNULL)LINETHICK3;{只有8天的累计跌幅};
BTJ07:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=6,C/REF(C,8)-1,DRAWNULL)LINETHICK3;{只有9天的累计跌幅};
BTJ08:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=7,C/REF(C,9)-1,DRAWNULL)LINETHICK3;{只有10天的累计跌幅};
BTJ09:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=8,C/REF(C,10)-1,DRAWNULL)LINETHICK3;{只有11天的累计跌幅};
BTJ10:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=9,C/REF(C,11)-1,DRAWNULL)LINETHICK3;{只有12天的累计跌幅};
BTJ11:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=10,C/REF(C,12)-1,DRAWNULL)LINETHICK3;{只有13天的累计跌幅};
BTJ12:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=11,C/REF(C,13)-1,DRAWNULL)LINETHICK3;{只有14天的累计跌幅};
BTJ13:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=12,C/REF(C,14)-1,DRAWNULL)LINETHICK3;{只有15天的累计跌幅};
BTJ14:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=13,C/REF(C,15)-1,DRAWNULL)LINETHICK3;{只有16天的累计跌幅};
BTJ15:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=14,C/REF(C,16)-1,DRAWNULL)LINETHICK3;{只有17天的累计跌幅};
BTJ16:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=15,C/REF(C,17)-1,DRAWNULL)LINETHICK3;{只有18天的累计跌幅};
BTJ17:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=16,C/REF(C,18)-1,DRAWNULL)LINETHICK3;{只有19天的累计跌幅};
BTJ18:=100*IF(BTJ01=1 AND SUM(BTJ01,3)=17,C/REF(C,19)-1,DRAWNULL)LINETHICK3;{只有20天的累计跌幅};
BTJ02+BTJ03+BTJ04+BTJ05+BTJ06+BTJ07+BTJ08+BTJ09+BTJ10+BTJ11;

{后面会对这种特殊情形的累跌的阴线的 上影 累计长度做统计,意味着 从起跌开始 未来可能调整的深度的一种可能性}









回复

举报

QQ|

GMT+8, 2024-12-1 01:22

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