通达信【黑马启动线】主副图 站上启动线就出击 源码

{黑马启动线主图源码如下}


C2:=REF(C,1);
ZT:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
X_2:=IF(NAMELIKE(8),1,0)=0;
X_3:=IF(NAMELIKE(9),1,0)=0;
X_4:=IF(NAMELIKE(10),1,0)=0;
X_5:=IF(CODELIKE(11),1,0)=0;
X_6:=IF(CODELIKE(12),1,0)=0;
X_7:=IF(CODELIKE(13),1,0)=0;
FW:=X_2 AND X_3 AND X_4 AND X_5 AND X_6 AND X_7 ;
JZF:=(O/REF(C,1)-1)*100;
ZF:=(C/REF(C,1)-1)*100;
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*ABS(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
T1A:=V>2*REF(V,1) AND V=HHV(V,7) AND COUNT(ZT,10)=0 AND BARSCOUNT(C)>100;
T1:=T1A AND ST>2.8 AND C>O AND COUNT(C>O AND V>2*REF(V,1),5)=1;
T2A:=SYX< 5 AND XYX< 3 AND JZF< 3 AND V< REF(V,1) AND JZF>-3;
T2:=REF(T1,1) AND IF(ST>1,ST< 0.4*REF(ST,1) AND ST< 3,ST< 1) AND T2A;
N1:=BARSLAST(T2);
X1:=(LLV(C,N1)/REF(L,N1+1)-1)*100;
P1:=NOT(REF(H,N1-1)>REF(HHV(H,2),N1) AND C>O);
P2:=COUNT(EVERY(H>REF(HHV(H,2),N1) AND C>O,3),N1)=0;
P3A:=REF(N1,1)>3 AND REF(N1,1)< 15;
P3:=NOT(REF(EVERY(C< O,4) AND DOWNNDAY(L,3),REF(N1,1)-3) AND P3A);
P4A:=C>O AND C<=REF(O,1) AND O>=REF(C,1) AND REF(C< O AND ABS(JZF)< 0.1,1);
P4B:=REF(BETWEEN(C,REF(C,2),REF(O,2)),N1-2);
P4:=NOT(REF(P4A AND ABS(100*(C/REF(C,2)-1))< 0.4,N1-1) AND P4B);
P5A:=C>O AND ST>1 AND C>REF(O,1) AND O< REF(C,1);
P5B:=REF(C< O AND ST>1 AND H< REF(H,1),1);
P5:=NOT(REF(P5A AND P5B AND C>REF(C,2) AND V< REF(V,1),N1-1));
P6:=NOT(REF(SYX< 0.01 AND XYX>3,N1+1));
P7A:=REF(EVERY(C>REF(C,N1+1),3) AND C< REF(C,1) AND C>O,1);
P7:=NOT(P7A AND REF(P5A AND P5B AND V< REF(V,1),N1-1));
P8A:=REF(MAX(V,REF(V,1))/MIN(V,REF(V,1))< 1.1 AND EVERY(C< O,2),N1-1);
P8:=NOT((O/REF(H,1)-1)*100>1.5 AND P8A);
P9A:=REF(SYX>3 AND ST>2 AND O>REF(C,1),1);
P9:=NOT(REF(P9A AND C>O AND C< REF(O,1) AND O>REF(C,1),N1-1));
P10A:=ST>3 AND C< O AND REF(C>O,1) AND O=REF(C,1) AND C=REF(O,1);
P10:=NOT(COUNT(P10A,N1)>0 AND N1< 10);
P:=P1 AND P2 AND P3 AND P4 AND P5 AND P6;
PP:=P7 AND P8 AND P9 AND P10;
T3A:=MAX(C,O)< 1.001*REF(HHV(H,2),N1) AND AMO< 1.004*REF(AMO,N1+1);
T3:=P AND EVERY(T3A,N1) AND X1>-7 AND LLV(AMO,N1)< 0.5*REF(AMO,N1+1);
T4:=FW AND T3=0 AND REF(T3,1) AND CROSS(C,REF(HHV(H,2),REF(N1,1)+1));
XG:=T4 AND COUNT(T4,10)=1 AND JZF< 8 AND PP;
M:=BARSNEXT(XG);
TJA:=T1 AND REFX(T2 AND M=REFX(N1,M),1) AND M>0;
STICKLINE(TJA,REFX(HHV(H,2),1),REFX(LLV(L,2),1),5,-1),COLORYELLOW;
STICKLINE(REF(TJA,1),HHV(H,2),LLV(L,2),5,-1),COLORYELLOW;
DRAWKLINE(H,O,L,C);
STICKLINE(TJA,C,O,3,0),COLORRED;
STICKLINE(TJA,H,L,0,0),COLORRED;
DRAWTEXT(TJA,H*1.05,'黑马启动线'),COLORRED;
DRAWSL(XG,REF(REF(HHV(H,2),N1),1),0,REF(N1,1)+3,1),COLORGREEN;
STICKLINE(XG,C,O,3,0),COLORRED;
DRAWICON(XG,L,1);



{黑马启动线副图源码如下}



C2:=REF(C,1);
ZT:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
X_2:=IF(NAMELIKE(8),1,0)=0;
X_3:=IF(NAMELIKE(9),1,0)=0;
X_4:=IF(NAMELIKE(10),1,0)=0;
X_5:=IF(CODELIKE(11),1,0)=0;
X_6:=IF(CODELIKE(12),1,0)=0;
X_7:=IF(CODELIKE(13),1,0)=0;
FW:=X_2 AND X_3 AND X_4 AND X_5 AND X_6 AND X_7 ;
JZF:=(O/REF(C,1)-1)*100;
ZF:=(C/REF(C,1)-1)*100;
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*ABS(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
T1A:=V>2*REF(V,1) AND V=HHV(V,7) AND COUNT(ZT,10)=0 AND BARSCOUNT(C)>100;
T1:=T1A AND ST>2.8 AND C>O AND COUNT(C>O AND V>2*REF(V,1),5)=1;
T2A:=SYX< 5 AND XYX< 3 AND JZF< 3 AND V< REF(V,1) AND JZF>-3;
T2:=REF(T1,1) AND IF(ST>1,ST< 0.4*REF(ST,1) AND ST< 3,ST< 1) AND T2A;
N1:=BARSLAST(T2);
X1:=(LLV(C,N1)/REF(L,N1+1)-1)*100;
P1:=NOT(REF(H,N1-1)>REF(HHV(H,2),N1) AND C>O);
P2:=COUNT(EVERY(H>REF(HHV(H,2),N1) AND C>O,3),N1)=0;
P3A:=REF(N1,1)>3 AND REF(N1,1)< 15;
P3:=NOT(REF(EVERY(C< O,4) AND DOWNNDAY(L,3),REF(N1,1)-3) AND P3A);
P4A:=C>O AND C<=REF(O,1) AND O>=REF(C,1) AND REF(C< O AND ABS(JZF)< 0.1,1);
P4B:=REF(BETWEEN(C,REF(C,2),REF(O,2)),N1-2);
P4:=NOT(REF(P4A AND ABS(100*(C/REF(C,2)-1))< 0.4,N1-1) AND P4B);
P5A:=C>O AND ST>1 AND C>REF(O,1) AND O< REF(C,1);
P5B:=REF(C< O AND ST>1 AND H< REF(H,1),1);
P5:=NOT(REF(P5A AND P5B AND C>REF(C,2) AND V< REF(V,1),N1-1));
P6:=NOT(REF(SYX< 0.01 AND XYX>3,N1+1));
P7A:=REF(EVERY(C>REF(C,N1+1),3) AND C< REF(C,1) AND C>O,1);
P7:=NOT(P7A AND REF(P5A AND P5B AND V< REF(V,1),N1-1));
P8A:=REF(MAX(V,REF(V,1))/MIN(V,REF(V,1))< 1.1 AND EVERY(C< O,2),N1-1);
P8:=NOT((O/REF(H,1)-1)*100>1.5 AND P8A);
P9A:=REF(SYX>3 AND ST>2 AND O>REF(C,1),1);
P9:=NOT(REF(P9A AND C>O AND C< REF(O,1) AND O>REF(C,1),N1-1));
P10A:=ST>3 AND C< O AND REF(C>O,1) AND O=REF(C,1) AND C=REF(O,1);
P10:=NOT(COUNT(P10A,N1)>0 AND N1< 10);
P:=P1 AND P2 AND P3 AND P4 AND P5 AND P6;
PP:=P7 AND P8 AND P9 AND P10;
T3A:=MAX(C,O)< 1.001*REF(HHV(H,2),N1) AND AMO< 1.004*REF(AMO,N1+1);
T3:=P AND EVERY(T3A,N1) AND X1>-7 AND LLV(AMO,N1)< 0.5*REF(AMO,N1+1);
T4:=FW AND T3=0 AND REF(T3,1) AND CROSS(C,REF(HHV(H,2),REF(N1,1)+1));
XG:T4 AND COUNT(T4,10)=1 AND JZF< 8 AND PP COLORRED,LINETHICK3;



未来函数检测结果如下:
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图