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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信春秋凸量系统 承诺的源码源码公开源码


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

以下是通达信春秋凸量系统 承诺的源码源码公开源码

通达信春秋凸量系统 承诺的源码源码公开源码

感谢各位观注春秋的朋友,《春秋凸量系统》贴子已加精,承诺大家的源码我贴上来。
本源码中调用的“cpx.cpx”值,请在下载指标《cpx》后安装才能正常使用!!

《春秋凸量系统》源码:


input:n(1,100,25);
AA:=HOD(V,N);
BB:=LOD(V,N);
AA30:=MA(C,30);
LTS:=BARSLAST(AA<=4)+1;
TJ1:=FILTER(AA<=5 AND REF(LTS,1)>=9 AND C>O AND (WINNER(C)>=0.85 OR WINNER(C)-REF(WINNER(C),1)>=0.3),5);
TJ2:=AA<=5 AND REF(LTS,1)>=9 AND C>O AND CROSS(C,AA30);
ZT:=IF(CLOSE/REF(C,1)>=1.099 AND CLOSE/REF(C,1)<=1.13 AND H==C,1,-1);
BU:=(TJ1 OR TJ2 ) AND ABS(C-AA30)/AA30*100<=30 ;
触发:BU,NODRAW,COLORRED;
止损柱:C<REF(O,BARSLAST(BU>0)) AND COUNT(C<REF(O,BARSLAST(BU>0)),BARSLAST(BU>0))=1,NODRAW, COLORGREEN;
止盈柱:CROSS(0,CPX.CPX) AND COUNT(CROSS(0,CPX.CPX),BARSLAST(BU>0))=1 AND COUNT(止损柱=1,BARSLAST(BU>0))=0 AND COUNT(BU,BARSLAST(BU)+1)>=1,NODRAW, COLORBLUE;
区间:COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止损柱,BARSLAST(BU>0)+1)=0 AND COUNT(止盈柱, BARSLAST(BU>0)+1)=0,NODRAW,COLOR696960;
止损价:IF(COUNT(BU>0,BARSLAST(BU>0)+1)=1 AND (区间>0 OR CROSS(0.5,区间)),REF(O,BARSLAST(BU>0)),DRAWNULL),NODRAW;
STICKLINE(区间>0,0,1,4,0),COLOR696960;
STICKLINE(触发>0,0,1,4,0),COLORRED;
STICKLINE(止盈柱>0 ,0,1,4,0) COLORBLUE;
STICKLINE(止损柱=1 AND COUNT(止盈柱>0,BARSLAST(触发>0))=0,0,1,4,0) COLORGREEN;
DRAWTEXT_FIX(V>0,0.12,0.05,2,'欢迎使用春秋作品')COLORRED;







回复

举报

QQ|

GMT+8, 2024-11-19 14:34

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