当前位置:首页 > 免费资源 > 正文

「翔博精选指标」精准线 主图公式 和谐源码分享

2022-01-17原创 编 辑:翔博软件

{公式名称: 精准线

参数数量: 2
参数1: 精准启动, 最小: 0, 最大: 90, 缺省: 1
参数2: 精准启动1, 最小: 1, 最大: 90, 缺省: 2
主图叠加}
 
VAR1:=CLOSE/REF(CLOSE,1)>=1.04 AND CLOSE/REF(CLOSE,1)<=1.075;
STICKLINE(VAR1,CLOSE,REF(CLOSE,1),2.2,0),COLORRED;
VAR2:=CLOSE/REF(CLOSE,1)>=1.093;
STICKLINE(VAR2,OPEN,CLOSE,3,0),COLOR0077BB;
STICKLINE(VAR2,OPEN,CLOSE,2.6,0),COLOR0088CC;
STICKLINE(VAR2,OPEN,CLOSE,2.2,0),COLOR0099CC;
STICKLINE(VAR2,OPEN,CLOSE,1.8,0),COLOR00AADD;
STICKLINE(VAR2,OPEN,CLOSE,1.4,0),COLOR00BBDD;
STICKLINE(VAR2,OPEN,CLOSE,1,0),COLOR00CCEE;
STICKLINE(VAR2,OPEN,CLOSE,0.6,0),COLOR00DDEE;
STICKLINE(VAR2,OPEN,CLOSE,0.2,0),COLOR00EEFF;
STICKLINE(VAR2,OPEN,CLOSE,0.1,0),COLORYELLOW;
STICKLINE(VAR2,HIGH,LOW,0,0),COLORYELLOW;
精准扫描:BACKSET(CURRBARSCOUNT=13,42),NODRAW;
划线范围:BACKSET(CURRBARSCOUNT=0,55),NODRAW;
VAR3:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 精准扫描,CONST(REF(LOW,精准启动)),DRAWNULL);
辅助线1:IF(CURRBARSCOUNT<=55 AND 精准扫描=0,CONST(REF(LOW,精准启动)),DRAWNULL),DOTLINE,COLORRED;
有效K线1:精准扫描 AND ABS((MAX(OPEN,CLOSE)-VAR3)/VAR3*100)<=1.5,NODRAW;
满足1:COUNT(有效K线1,55)>=3,NODRAW;
成立线1:IF(CONST(满足1),VAR3,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(有效K线1,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(有效K线1,LOW,HIGH,0,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=精准启动+1,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=精准启动+1,LOW,HIGH,0,0),COLORMAGENTA;
VAR4:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 精准扫描,CONST(REF(LOW,精准启动1)),DRAWNULL);
辅助线2:IF(CURRBARSCOUNT<=55 AND 精准扫描=0,CONST(REF(LOW,精准启动1)),DRAWNULL),DOTLINE,COLORRED;
有效K线2:精准扫描 AND ABS((MAX(HIGH,CLOSE)-VAR4)/VAR4*100)<=1.5,NODRAW;
满足2:COUNT(有效K线2,55)>=2,NODRAW;
成立线2:IF(CONST(满足2),VAR4,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(有效K线2,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(有效K线2,LOW,HIGH,0,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=精准启动1+1,OPEN,CLOSE,2,0),COLORWHITE;

STICKLINE(CURRBARSCOUNT=精准启动1+1,LOW,HIGH,0,0),COLORWHITE;

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标