0%

抄死主力主图及选股

继续为大家分享指标公式,这次依然是主图,名:抄死主力。主图提示了三个信号,为抄死主力,杀,卖。公式无未来,可参考使用。

主图源码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
生命线:MA(C,26),COLORRED,LINETHICK2;
STICKLINE(C>=生命线 AND C>=O,H,L,0,1),COLORRED;
STICKLINE(C>=生命线 AND C>=O,C,O,2.5,0),COLORRED;
多头线:EMA(C,1.5),COLOR0000CC;
空头线:EMA(C,5),COLORMAGENTA;
均衡线:EMA(空头线,5),COLORGREEN;
SG1:=COUNT(CROSS(多头线,均衡线),2)=1;
SG2:=COUNT(CROSS(空头线,均衡线),2)=1;
SG3:=FILTER(SG1 AND SG2,2);
SG4:=(C-REF(C,1))/REF(C,1)*100;
SG5:=(100-((90*(HHV(H,21)-C))/(HHV(H,21)-LLV(L,21))));
SG6:=(100-((90*(HHV(H,21)-C))/(HHV(H,21)-LLV(L,21))));
SG7:=(100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34));
SG8:=EMA(C,20);
SG9:=EMA(C,30);
SGA:=(SG6+SG7+SG8+SG9)/4;
SGB:=(SGA-REF(SGA,15))/REF(SGA,15)*100;
SGC:=EMA(SGB,8);
SGD:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
SGE:=CROSS(C,SGD) AND SGD>REF(SGD,1);
SGF:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
SGG:=CROSS(C,SGF) AND SGF>REF(SGF,1);
SGH:=STRCAT(HYBLOCK,' ');
ZB:=STRCAT(SGH,DYBLOCK);
SG:=STRCAT(ZB,' ');
DRAWTEXT(SG3,均衡线*0.98,'↑抄死主力'),COLORYELLOW;
STICKLINE(SG4>9.8,O,C,2.5,0),COLORRED;
STICKLINE(SG4<-9.8,O,C,2.5,0),COLORBLUE;
DRAWICON(CROSS(SG6,MA(SG7,6)),(L*0.998),1);
DRAWICON(CROSS(MA(SG7,6),SG5),(H*1.013),9);
DRAWTEXT(CROSS(SG6,MA(SG7,6)),(L*0.984),'↖杀'),COLOR4440FF;
DRAWTEXT(CROSS(MA(SG7,6),SG5),(H*1.02),''),COLORGREEN;
DRAWTEXT_FIX(C>O,0.01,1.0,0,'SGZBK.TOP'),COLORWHITE;
STICKLINE(SGB<1*REF(SGB,1),H,L,0,1),COLORBLUE;
STICKLINE(SGB<1*REF(SGB,1),O,C,2.5,1),COLORBLUE;
STICKLINE(SGB<1*REF(SGB,1) AND C<O,O,C,2.5,0),COLORBLACK;
STICKLINE(SGB<1*REF(SGB,1) AND C<O,O,C,2.3,0),COLORBLUE;
STICKLINE(SGB>1*REF(SGB,1),H,L,0,1),COLORRED;
STICKLINE(SGB>1*REF(SGB,1),O,C,2.5,1),COLORRED;
STICKLINE(SGB>1*REF(SGB,1) AND C<O,O,C,2.5,0),COLOR0000DD;
STICKLINE(SGB<1*REF(SGB,1) AND SGC>1*REF(SGC,1),H,L,0,1),COLORGREEN;
STICKLINE(SGB<1*REF(SGB,1) AND SGC>1*REF(SGC,1),O,C,2.5,1),COLORGREEN;
STICKLINE(SGB<1*REF(SGB,1) AND SGC>1*REF(SGC,1) AND C<O,O,C,2.5,0),COLORGREEN;
STICKLINE(SGE,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(SGE,O,C,2.5,0),COLORWHITE,LINETHICK2;
STICKLINE(SGG,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(SGG,O,C,2.5,0),COLORYELLOW,LINETHICK2;
Z4:DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(SG,GNBLOCK)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.1,0,ZDBLOCK);
流通市值:FINANCE(40)*0.00000001,NODRAW,COLORWHITE;

抄死主力选股(可作副图):

1
2
3
4
5
6
多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
SG1:=COUNT(CROSS(多头线,均衡线),2)=1;
SG2:=COUNT(CROSS(空头线,均衡线),2)=1;
抄死主力:FILTER(SG1 AND SG2,2);

指标仅供参考,不作投资依据。

-------------本文结束感谢您的阅读-------------
您的支持,是我创作的动力,感谢!
  • 本文作者: shuige
  • 本文链接: http://sgzbk.top/posts/32123/
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!