通达信多空拐点主图指标公式

[复制链接]
查看62 | 回复0 | 2021-8-20 20:05:09 | 显示全部楼层 |阅读模式
本文指标含有选股公式如下:

多空拐点主图之买进选股指标公式

JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,7);
B:=REF(A,1);
持股:STICKLINE(A>B,A*0.999,B*0.999,3,0),COLORMAGENTA ;
空: STICKLINE(A<B,A*1.001,B*1.001,3,0),COLORGREEN ;
JJ1:=(CLOSE+HIGH+LOW)/3;
AV1:=EMA(JJ1,40);
BV1:=REF(AV1,1);
持股1:STICKLINE(AV1>BV1,AV1 ,BV1*2-AV1 ,3,0),COLOR00FFFF;
空1:STICKLINE(AV1<BV1,AV1,BV1*2-AV1,3,0),COLORGRAY;
HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21;
LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21;
A1:=IF(C>REF(EXPMEMA(H,6),1),1,0);
A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0);
A3:=A1+A2;
A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3);
转折线:=IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF;
持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED,{COLOR9955FF};
空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00};
STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;
{空头转多头:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORRED;
多头转空头:IF(空头转多头<=REF(空头转多头,1),空头转多头,DRAWNULL)LINETHICK3,COLORGREEN;}
XG:=(REF(MA(C,30),1)>REF(MA(C,30),2)) ;
H15:=REF(HHV(H,30),1)>REF(HHV(H,30),30);
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买 AND XG AND H15,5),LOW-0.05,'↖买进'),COLORYELLOW;
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
天线:=78.89;
STICKLINE(CROSS(天线,多方趋势),REF(HHV(H,8),1),H*1.001,3,0),COLORYELLOW;
DRAWTEXT(CROSS(天线,多方趋势) ,REF(HHV(H,8),1),'↙逃顶'),COLOR00FF00;

202108201221.jpg

202108201221.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则