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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 五线布林主图优化版


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-19 09:58:04
五线布林主图优化版介绍

五线布林主图优化版

input:M(20,1,100),N(21,1,300);
趋势: MA(CLOSE,M),COLOR0080FF,LAYER0;
上轨:趋势+STD(CLOSE,M),colorFFFF00,LAYER0;
下轨:趋势-STD(CLOSE,M),colorFFFF00,LAYER0;
上极:趋势+2*STD(CLOSE,M),colorGREEN,LAYER0;
下极:趋势-2*STD(CLOSE,M),colorGREEN,LAYER0;
STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF;
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(AA,LOW,HIGH,0.5 ,0 ),COLORYELLOW;
TTJ:=BARSLAST((VOL = HHV(VOL,N)));
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
上升:STICKLINE(VAR2>VAR3,VAR2,VAR3,5,0),COLOR00FFFF;
下跌:STICKLINE(VAR2<VAR3,VAR2,VAR3,5,0),COLORFF0000;

稍改了下 飞狐5.0测试过:
input:M(20,1,100),N(21,1,300);
趋势: MA(CLOSE,M),COLOR0080FF;
上轨:趋势+STD(CLOSE,M),colorFFFF00;
下轨:趋势-STD(CLOSE,M),colorFFFF00;
上极:趋势+2*STD(CLOSE,M),colorGREEN;
下极:趋势-2*STD(CLOSE,M),colorGREEN;
STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF;
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(AA,LOW,HIGH,0.5 ,0 ),COLORYELLOW;
TTJ:=BARSLAST((VOL = HHV(VOL,N)));
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
上升:STICKLINE(VAR2>VAR3,VAR2,VAR3,5,0),COLOR00FFFF;
下跌:STICKLINE(VAR2<VAR3,VAR2,VAR3,5,0),COLORFF0000;
 


 





gd20699

回复

举报

QQ|

GMT+8, 2024-11-17 09:40

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