当前位置:首页 > 通达信 > 正文

【通达信免费源码】黑马跑道+平台突破-第三代指标公式源码、说

2022-06-30未知 编 辑:掌上指标


CCCC:=1;
 
DRAWTEXT_FIX (CCCC=1,0,0.06,0,'上横线波段线, 红竖持股.');
 
DRAWTEXT_FIX (CCCC=1,0,0.10,0,'中横线暴张波段线, 红竖持股');
 
DRAWTEXT_FIX (CCCC=1,0,0.14,0,'下横线为中小股波段线, 红竖持股');
 
{平台突破}
 
MA8:=MA(CLOSE,8);
 
MA50:=MA(CLOSE,50);
 
PL1:=(((CLOSE - MA50) / MA50)<0.008);
 
PL2:=(((CLOSE - MA8) / MA8)<0.058);
 
偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);
 
平台突破:=((((偏离率 = 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * 1);
 
DRAWTEXT(平台突破,0.82,'!平台突破'),COLOR00FF00;
 
STICKLINE(平台突破,0.85,0.88,0.1,0),COLORRED,LINETHICK3;
 
{加速跑道}
 
跑道AA:=MA(C,2);
 
跑道BB:=MA(C,9);
 
跑道AF:=CROSS(跑道AA,跑道BB);
 
跑道AF1:=CROSS(跑道BB,跑道AA);
 
上穿天数:=BARSLAST(跑道AF);
 
周期涨幅:=(HHV(C,上穿天数+8)-LLV(C,上穿天数+8))/LLV(C,上穿天数+8);
 
黑码跑道:=周期涨幅<=0.15 AND 上穿天数>=6 AND COUNT(跑道AF1,上穿天数)<=0;
 
STICKLINE(黑码跑道,0.65,0.68,0.1,0),COLORRED,LINETHICK3;
 
DRAWTEXT(黑码跑道 AND COUNT(黑码跑道,2)=1,0.62,'!黑码跑道'),COLOR00FF00;
 
0.5;
 
0.9;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标