请老师将如下通达信公式源码改成选股公式
CCCC:=1;DRAWTEXT_FIX(CCCC=1,0,0.06,0,'上横线波段线,红竖持股。本指标由QQ243230309编写');DRAWTEXT_FIX(CC...
CCCC:=1;
DRAWTEXT_FIX (CCCC=1,0,0.06,0,'上横线波段线, 红竖持股。本指标由QQ243230309编写');
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,'!平台突破'),COLORRED;
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,'!黑马跑道'),COLORRED;
0.5;
0.9;
请老师改成:黑马跑道及平台突破两个选股公式,谢谢! 展开
DRAWTEXT_FIX (CCCC=1,0,0.06,0,'上横线波段线, 红竖持股。本指标由QQ243230309编写');
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,'!平台突破'),COLORRED;
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,'!黑马跑道'),COLORRED;
0.5;
0.9;
请老师改成:黑马跑道及平台突破两个选股公式,谢谢! 展开
1个回答
展开全部
黑马跑道选股指标如下:
跑道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;
平台突破选股指标如下:
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);
希望能帮到你
跑道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;
平台突破选股指标如下:
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);
希望能帮到你
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询