当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:暗風自划线(主图 源码公布)
软件名称:[B]暗風自划线(主图 源码公布)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:82.0 KB
官方主页:Home Page
更新时间:2017-10-03 03:01:07
软件简介:
{公式名称: 暗風自划线
公式描述: 暗風自划线 WWW.70822.com
参数数量: 6
参数1: N, 最小: 2, 最大: 100, 缺省: 10
参数2: M, 最小: 2, 最大: 100, 缺省: 3
参数3: M1, 最小: 2, 最大: 100, 缺省: 4
参数4: M2, 最小: 2, 最大: 100, 缺省: 4
参数5: M3, 最小: 2, 最大: 100, 缺省: 13
参数6: M4, 最小: 2, 最大: 100, 缺省: 4
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
N: Param#0 (2.00--100.00)
M: Param#1 (2.00--100.00)
M1: Param#2 (2.00--100.00)
M2: Param#3 (2.00--100.00)
M3: Param#4 (2.00--100.00)
M4: Param#5 (2.00--100.00)
用法注释:
WWW.70822.com
公式源码:}
VAR1:=10;
VAR2:=10;
VAR3:=0;
VAR4:=0;
VAR5:=0;
VAR6:=0;
VAR7:=REF(HIGH,VAR1)=HHV(HIGH,2*VAR1+1);
VAR8:=BACKSET(VAR7,VAR1+1);
VAR9:=FILTER(VAR8,VAR1) AND HIGH=HHV(HIGH,VAR1+1);
DRAWICON(VAR9,HIGH*1.005,2);
VAR10:=BARSLAST(VAR9);
VAR11:=IF(VAR9,CURRBARSCOUNT,0);
VAR12:=IF(VAR10,REF(HIGH,VAR10),HIGH);
VAR13:=IF(VAR10,REF(VAR11,VAR10),VAR11);
VAR14:=REF(VAR12,VAR10+1);
VAR15:=CONST(VAR13);
VAR16:=REF(VAR13,VAR10+1);
VAR17:=CONST(VAR16);
VAR18:=REF(VAR14,VAR10+1);
VAR19:=IF(CURRBARSCOUNT>VAR17,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=VAR17,HIGH,CURRBARSCOUNT=VAR15,HIGH,1),DOTLINE,COLORGREEN;
压力A:DRAWLINE(CURRBARSCOUNT=VAR17,HIGH,ISLASTBAR,REF(HIGH,VAR17-1),1),DOTLINE,COLOR0055FF;
压力B:DRAWLINE(CURRBARSCOUNT=VAR15,HIGH,ISLASTBAR,REF(HIGH,VAR15-1),1),DOTLINE,COLORYELLOW;
VAR20:=REF(LOW,VAR2)=LLV(LOW,2*VAR2+1);
VAR21:=BACKSET(VAR20,VAR2+1);
VAR22:=FILTER(VAR21,VAR2) AND LOW=LLV(LOW,VAR2+1);
VAR23:=BARSLAST(VAR22);
VAR24:=IF(VAR22,CURRBARSCOUNT,0);
VAR25:=IF(VAR23,REF(LOW,VAR23),LOW);
VAR26:=IF(VAR23,REF(VAR24,VAR23),VAR24);
VAR27:=CONST(VAR26);
VAR28:=REF(VAR25,VAR23+1);
VAR29:=REF(VAR26,VAR23+1);
VAR30:=CONST(VAR29);
低点支撑:DRAWLINE(CURRBARSCOUNT=VAR30,LOW,CURRBARSCOUNT=VAR27,LOW,1),DOTLINE,COLORRED;
VAR31:=(高点压力+低点支撑)/2;
VAR32:=CONST((高点压力+低点支撑)/2);
VAR33:=IF(VAR30<VAR17,VAR30,VAR17);
中轨:DRAWLINE(CURRBARSCOUNT=VAR33,VAR31,ISLASTBAR,VAR32,1),POINTDOT,COLORFFBBFF;
VAR34:=6;{WWW.70822.com}
VAR35:=REF(HIGH,6)=HHV(HIGH,2*VAR34+1);
VAR36:=FILTER(VAR35,VAR34);
VAR37:=BACKSET(VAR36,VAR34+1);
VAR38:=FILTER(VAR37,VAR34);
VAR39:=REF(LOW,VAR34)=LLV(LOW,2*VAR34+1);
VAR40:=FILTER(VAR39,VAR34);
VAR41:=BACKSET(VAR40,VAR34+1);
VAR42:=FILTER(VAR41,VAR34);
VAR43:=(REF(LLV(LOW,2*VAR34),1)+REF(HHV(HIGH,2*VAR34),1))/2;
VAR44:=(HIGH+LOW)/2;
VAR45:=VAR38 AND NOT(VAR42 AND VAR43>=VAR44) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
VAR46:=VAR42 AND NOT(VAR38 AND VAR43<VAR44);
VAR47:=VAR38 AND NOT(VAR42 AND VAR43>=VAR44);
VAR48:=REF(BARSLAST(VAR45),1)+1;
VAR49:=BACKSET(VAR45 AND COUNT(VAR46,VAR48)>0,LLVBARS(IF(VAR46,LOW,10000),VAR48));
VAR50:=VAR49>REF(VAR49,1);
VAR51:=BACKSET(VAR50,2);
VAR52:=VAR51>REF(VAR51,1);
VAR53:=VAR52 OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
VAR54:=REF(BARSLAST(VAR53),1)+1;
VAR55:=BACKSET(VAR53 AND COUNT(VAR47,VAR54)>0,HHVBARS(IF(VAR47,HIGH,0),VAR54));
VAR56:=VAR55>REF(VAR55,1);
VAR57:=BACKSET(VAR56,2);
VAR58:=VAR57>REF(VAR57,1);
VAR59:=BACKSET(BARSTATUS,BARSLAST(VAR52)+1);
VAR60:=VAR59>REF(VAR59,1);
VAR61:=BACKSET(VAR60,REF(BARSLAST(VAR52),1)+2);
VAR62:=VAR61>REF(VAR61,1);
VAR63:=BACKSET(BARSTATUS,BARSLAST(VAR58)+1);
VAR64:=VAR63>REF(VAR63,1);
VAR65:=BACKSET(VAR64,REF(BARSLAST(VAR58),1)+2);
VAR66:=VAR65>REF(VAR65,1);
近低A:REF(LOW,BARSLAST(VAR60)),DOTLINE,COLORWHITE;
近低B:REF(LOW,BARSLAST(VAR62)),DOTLINE,COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=8,高点压力,STRCAT(684,CON2STR(高点压力,2))),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=8,低点支撑,STRCAT(685,CON2STR(低点支撑,2))),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=15,中轨,STRCAT(686,CON2STR(中轨,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=20,压力A*0.995,STRCAT(687,CON2STR(压力A,2))),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=12,压力B*0.995,STRCAT(688,CON2STR(压力B,2))),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=12,近低A*1.005,STRCAT(689,CON2STR(近低A,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=20,近低B*1.005,STRCAT(690,CON2STR(近低B,2))),COLOR0018D8;
VAR67:=CLOSE=HHV(CLOSE,13);
VAR68:=BARSLAST(FILTER(CROSS(0.8,VAR67),2))+1;
VAR69:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
高点:REF(CLOSE,VAR68),POINTDOT,COLORMAGENTA;
突破:CROSS(CLOSE,REF(高点,1)),NODRAW,COLORYELLOW;
STICKLINE(VAR68<=6,高点,高点,3,0),COLORMAGENTA;
DRAWTEXT(突破,LOW,691),COLORYELLOW;
VAR70:=CLOSE=LLV(CLOSE,13);
VAR71:=BARSLAST(FILTER(CROSS(0.8,VAR70),2))+1;
低点:REF(CLOSE,VAR71),POINTDOT,COLORGREEN;
DRAWTEXT_FIX(1,0.85,0,20,692),COLORRED;
VAR72:=350;{WWW.70822.com}
VAR73:=REFDATE(HHV(HIGH,VAR72),DATE);
VAR74:=REFDATE(LLV(LOW,VAR72),DATE);
VAR75:=REF(LOW,BARSLAST(VAR74=LOW));
VAR76:=REF(HIGH,BARSLAST(VAR73=HIGH));
VAR77:=(VAR76-VAR75)/VAR75*100;
VAR78:=(CLOSE-VAR75)/VAR75*100;
VAR79:=CON2STR(CONST(VAR77),2);
VAR80:=CON2STR(CONST(VAR78),2);
VAR81:=STRCAT(693,VAR79);
VAR82:=STRCAT(VAR81,128);
VAR83:=STRCAT(VAR82,694);
VAR84:=STRCAT(VAR83,VAR80);
VAR85:=STRCAT(VAR84,128);
DRAWTEXT_FIX(ISLASTBAR,0,1,0,695),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,1,0,VAR85),COLORYELLOW;
VAR86:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR87:=REF(VAR86,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR88:=REF(VAR87,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR89:=REF(VAR88,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR90:=REF(VAR89,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR91:=REF(VAR90,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR92:=REF(VAR91,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR93:=REF(VAR92,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR94:=REF(VAR93,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR95:=REF(VAR94,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR96:=REF(VAR95,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR97:=REF(VAR96,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR98:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR99:=REF(VAR98,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR100:=REF(VAR99,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR101:=REF(VAR100,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR102:=R
[url=http://www.70822.com/soft/sort013/sort05/down-116687.html]暗風自划线(主图 源码公布)[/url]
[url=http://www.70822.com/soft/sort013/sort05/down-116687.html]暗風自划线(主图 源码公布)[/url]