分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]牛熊通道(缠论笔+牛熊通道+9转) 源码分享[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:20.0 KB
官方主页:Home Page
更新时间:2019-01-20 01:33:41
软件简介:

{公式名称: 牛熊通道
公式描述: 牛熊通道+九转序列+缠中说禅
参数数量: 4
参数1: M1, 最小: 0, 最大: 1000, 缺省: 0
参数2: M2, 最小: 0, 最大: 1000, 缺省: 0
参数3: M3, 最小: 0, 最大: 1000, 缺省: 0
参数4: M4, 最小: 0, 最大: 1000, 缺省: 0
公式类型: 技术指标公式-均线型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无

参数精灵:
请设置计算参数:
M1: Param#0 (0.00--1000.00)
M2: Param#1 (0.00--1000.00)
M3: Param#2 (0.00--1000.00)
M4: Param#3 (0.00--1000.00)
用法注释:
 
 
{顶背离}
C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF"(12,26,9),C1+1)>"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));
顶MACD:DRAWTEXT(FILTER(D1>0,5),HIGH*1.02,'↓'),COLOR00FF00;
DRAWTEXT(FILTER(D1>0,5),HIGH*1.04,'MACD顶'),COLORRED;
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
顶KDJ:DRAWTEXT(FILTER(D2>0,5),HIGH*1.02,'↓'),COLOR00FF00;
DRAWTEXT(FILTER(D2>0,5),HIGH*1.04,'KDJ顶'),COLORF00FF0;
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(8,55,55),"RSI.RSI1"(8,55,55)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(8,55,55),C3+1)>"RSI.RSI1"(8,55,55) AND CROSS("RSI.RSI2"(8,55,55),"RSI.RSI1"(8,55,55));
顶RSI:DRAWTEXT(FILTER(D3>0,5),HIGH*1.02,'↓'),COLOR00FF00;
DRAWTEXT(FILTER(D3>0,5),HIGH*1.04,'RSI顶'),COLORYELLOW;
C4:=BARSLAST(REF(CROSS("DMI.MDI"(14,6),"DMI.PDI"(14,6)),1));
D4:=REF(C,C4+1)<C AND REF("DMI.PDI"(14,6),C4+1)>"DMI.PDI"(14,6) AND CROSS("DMI.MDI"(14,6),"DMI.PDI"(14,6));
顶DMI:DRAWTEXT(FILTER(D4>0,5),HIGH*1.02,'↓'),COLOR00FF00;
DRAWTEXT(FILTER(D4>0,5),HIGH*1.04,'DMI顶'),COLORF0F000;
{底背离}
A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
底MACD:DRAWTEXT(FILTER(B1>0,5),LOW,'1'),COLORYELLOW;
DRAWTEXT(FILTER(B1>0,5),LOW*0.98,'MACD底'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
底KDJ:DRAWTEXT(FILTER(B2>0,5),LOW,'↑'),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),LOW*0.98,'KDJ底'),COLORRED;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(8,55,55),"RSI.RSI2"(8,55,55)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(8,55,55),A3+1)<"RSI.RSI1"(8,55,55) AND CROSS("RSI.RSI1"(8,55,55),"RSI.RSI2"(8,55,55));
底RSI:DRAWTEXT(FILTER(B3>0,5),LOW,'↑'),COLORYELLOW;
DRAWTEXT(FILTER(B3>0,5),LOW*0.98,'RSI底'),COLORF0F000;
A4:=BARSLAST(REF(CROSS("DMI.PDI"(14,6),"DMI.MDI"(14,6)),1));
B4:=REF(C,A4+1)>C AND REF("DMI.PDI"(14,6),A4+1)<"DMI.PDI"(14,6) AND CROSS("DMI.PDI"(14,6),"DMI.MDI"(14,6));
底DMI:DRAWTEXT(FILTER(B4>0,5),LOW,'↑'),COLORYELLOW;
DRAWTEXT(FILTER(B4>0,5),LOW*0.98,'DMI底'),COLORF00FF0;
公式源码:}
X_1:=STRCAT(HYBLOCK,1);
X_2:=STRCAT(X_1,DYBLOCK);
X_3:=STRCAT(X_2,1);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLORRED;
黄金卖点:(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),DOTLINE,COLORYELLOW;
X_4:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
DRAWBAND(X_4,RGB(100,0,0),EMA(X_4,5),RGB(0,100,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(X_4>LOW AND X_4<HIGH,X_4,MIN(MIN(X_4,X_4),X_4),0.8,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4>HIGH,CLOSE,OPEN,1.6,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4>CLOSE AND X_4>OPEN,OPEN,CLOSE,1.6,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4>CLOSE AND X_4<OPEN,X_4,CLOSE,1.6,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4<CLOSE AND X_4>OPEN,OPEN,X_4,1.6,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4<CLOSE AND X_4<OPEN,LOW,X_4,0,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4<CLOSE AND X_4>OPEN,LOW,X_4,0,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4>HIGH AND X_4>CLOSE AND X_4>OPEN,LOW,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4>CLOSE AND X_4<OPEN,LOW,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_4>LOW AND X_4<HIGH AND X_4>CLOSE AND X_4>OPEN,LOW,CLOSE,0,0),COLORYELLOW;
STICKLINE(黄金卖点<HIGH AND 黄金卖点>LOW,黄金卖点,MIN(MIN(黄金卖点,黄金卖点),黄金卖点),0.8,0),COLORYELLOW;
STICKLINE(黄金卖点<LOW,OPEN,CLOSE,1.6,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点<CLOSE AND 黄金卖点<OPEN,OPEN,CLOSE,1.6,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点<CLOSE AND 黄金卖点>OPEN AND 黄金卖点<HIGH,CLOSE,黄金卖点,1.6,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点>CLOSE AND 黄金卖点<HIGH AND 黄金卖点<OPEN,OPEN,黄金卖点,1.6,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点>CLOSE AND 黄金卖点<HIGH AND 黄金卖点>OPEN,HIGH,黄金卖点,0,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点>CLOSE AND 黄金卖点<HIGH AND 黄金卖点<OPEN,HIGH,黄金卖点,0,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点<CLOSE AND 黄金卖点>OPEN AND 黄金卖点<HIGH,HIGH,黄金卖点,0,0),COLORYELLOW;
STICKLINE(黄金卖点>LOW AND 黄金卖点<CLOSE AND 黄金卖点<OPEN AND 黄金卖点<HIGH,HIGH,CLOSE,0,0),COLORYELLOW;
STICKLINE(黄金卖点<LOW AND 黄金卖点<CLOSE AND 黄金卖点<OPEN AND 黄金卖点<HIGH,HIGH,LOW,0,0),COLORYELLOW;
缠:MA(CLOSE,M1),COLORWHITE;
中:MA(CLOSE,M2),COLORYELLOW;
说:MA(CLOSE,M3),COLORMAGENTA;
禅:MA(
[url=http://www.70822.com/soft/sort013/sort05/down-132822.html]牛熊通道(缠论笔+牛熊通道+9转) 源码分享[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:46.87500 毫秒