资源描述:
《【股票指标公式下载】-【通达信】股海聚宝(主力线、多头、空头)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】股海聚宝(主力线、多头、空头)-指标公式源码VAR1:=REF(CLOSE,3.5);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;Q2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;Q3:=SMA(Q2,9,1);Q4:=SMA(Q3,3,1);Q8:=HHVBARS(HIGH,50);Q10:=(CLOSE-REF(OPEN,Q8))/REF(OPEN,Q8)*100
2、;快线:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66;慢线:=EMA(Q3,3),COLORRED;A:=VOL*CLOSE;B:=SUM(A,3.52)/SUM(VOL,3.82);B1:=EMA(B,13);主力线:=(B-B1)*191/B+50,COLORMAGENTA;多头:3*Q3-2*Q4,COLORYELLOW;VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;空头:=SMA(V
3、AR12,3,1),COLORGREEN;DRAWTEXT(CROSS(慢线,多头)ANDREF(多头,1)>80,80,'*顶'),COLORRED,LINETHICK5;●关注:DRAWTEXT(REF(CROSS(空头,慢线),25)AND空头>1.005*慢线,60,'●关注'),COLORRED,LINETHICK1;★关注:DRAWTEXT(REF(CROSS(慢线,多头),82)AND慢线>1.3*多头,35,'★关注'),LINETHICK1;★追涨:DRAWTEXT(REF(CROSS(多头,慢线),1)AND多头>1.3*慢线,35
4、,'★追涨'),COLORRED,LINETHICK1;★抄底:IF(CROSS(多头,慢线)AND快线>=REF(快线,1)AND多头>=REF(多头,1)AND慢线<38.2AND慢线>=REF(慢线,1)ANDCOUNT(REF(快线,1)[=2,30,0),COLORMAGENTA;DRAWTEXT(CROSS(多头,8)ANDQ10<-13,20,'*大底'),COLORYELLOW,LINETHICK5;★逃亡:=IF(快线]5、(快线,1)AND快线>61.8,70,100),COLORBLUE;50,POINTDOT,COLORWHITE;AZ1:=AMOUNT/VOL/100;AZ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;AZ3:=SUM(AMOUNT,40)/AZ1/100;AZ4:=SUM(AMOUNT,80)/AZ1/100;BZ1:=DMA(AZ2,VOL/AZ3);BZ2:=DMA(AZ2,VOL/AZ4);BZ3:=(CLOSE-BZ1)/BZ1*100;BZ4:=(CLOSE-BZ2)/BZ2*100;DRAWTEXT(ISLASTBAR
6、ANDC,93,'股海聚宝,专用指标'),COLOR00AAFF;DRAWTEXT(ISLASTBARANDC,80,'黄柱出现,注意卖点'),COLOR00BBBB;DRAWTEXT(ISLASTBARANDC,68,'白柱出现,注意买点'),COLOR00BBBB;DRAWTEXT(ISLASTBARANDC,56,'顶和追涨,注意把握'),COLOR00BBBB;DRAWTEXT(ISLASTBARANDC,44,'选择正确,操作时段'),COLOR00BBBB;DRAWTEXT(ISLASTBARANDC,32,'按照图中,红绿转换'),COL
7、OR00BBBB;DRAWTEXT(ISLASTBARANDC,20,'严格遵守,操作纪律'),COLOR00BBBB;DRAWTEXT(ISLASTBARANDC,8,'心态平衡,投资顺利'),COLOR00BBBB;AQ:=EMA(C,30);AQ1:=REF(AQ,5);STICKLINE(AQAQ1,45,53,0,0),COLORRED,LINETHICK2;OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOS
8、E[ ]