主散资金通达信公式 副图 源码附图

LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点雷达:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;
STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
买点雷达:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30,LINETHICK2,COLOR0078FF;
BT1:=CROSS(RSI1,25);
DRAWTEXT(BT1,-80,'底'),COLOR0000FF;
STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;
主力资金:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;
散户资金:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;
BT2:=CROSS(主力资金,散户资金) AND 主力资金<-10;
DRAWICON(CROSS(RSI1,25),主力资金,26);
DRAWICON(CROSS(主力资金,散户资金) AND 主力资金<-10,主力资金,23);
BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,'金底'),COLOR0000FF;
STICKLINE(BT2,0,20,3,0),COLORFF00FF;
DRAWTEXT(BT2,20,'升'),COLORFF00FF;
X1: 0;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
VAR9:=TROUGHBARS(3,15,1)<10;
VAR10:=PEAKBARS(3,15,1)<10;
VAR11:=IF(VAR9=1,200,0);
VAR12:=IF(VAR10=1,200,0);
底部:= IF(VAR11=200,200,0);
头部:= IF(VAR12=200,400,0);
A:IF( 底部>REF(底部,1),200,0);
AA:IF(头部>REF(头部,1),200,0);
DRAWTEXT(A=200,100,'预警买' ),COLORRED,LINETHICK2;
DRAWTEXT(AA=200,100,'预警卖'),COLORFFFFFF,LINETHICK2;
 
 
强弱分界线: 50, POINTDOT, LINETHICK2, COLORFFFF00;
VAR32:=IF(MONTH<12,1,1);
VAR33:=(2*CLOSE+HIGH+LOW)/4;
VAR34:=LLV(LOW,34);
VAR35:=HHV(HIGH,34);
主力:=EMA((VAR33-VAR34)/(VAR35-VAR34)*100,13)*VAR32,LINETHICK4,COLORRED;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORFF9933;
DRAWTEXT(CROSS(主力,散户) AND 主力<22,20,'起动'),LINETHICK2,COLOR00FFFF;
DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);
STICKLINE(CROSS(主力,散户) AND 主力<22,10,-200,0.2,0),COLORRED;
DRAWTEXT(CROSS(主力,30) AND 散户<主力,40,'上扬 '),LINETHICK2,COLOR00CCFF;
DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);
STICKLINE(CROSS(主力,30) AND 散户<主力,20,-200,0.2,0),COLORRED;
DRAWTEXT(CROSS(主力,65) AND 散户<主力,55,'冲顶 '),LINETHICK2,COLOR9933FF;
DRAWICON(CROSS(主力,65) AND 散户<主力,70,2);
STICKLINE(CROSS(主力,65) AND 散户<主力,80,200,0.2,0),COLOR00FF00;
DRAWTEXT(CROSS(主力,75) AND 散户<主力,67,'小心被套'),LINETHICK2,COLOR009900;
DRAWICON(CROSS(主力,75) AND 散户<主力,80,2);
STICKLINE(CROSS(主力,75) AND 散户<主力,80,200,0.2,0),COLOR00FF00;
DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'), COLORYELLOW;
DRAWICON(CROSS(散户,主力) AND 散户>75,85,2);
STICKLINE(CROSS(散户,主力) AND 散户>75,80,200,0.2,0),COLOR00FF00;
买入脉冲:=IF(CROSS(主力,散户) AND 主力<35,55,5),LINETHICK4,COLORGREEN;
STICKLINE(CROSS(主力,散户) AND 主力<35,-100,-200,0.2,0),COLORRED;
DRAWICON(CROSS(主力,散户) AND 主力<35,-200,13);
卖出脉冲:=IF(CROSS(散户,主力) AND 散户>75,75,90),LINETHICK4,COLORRED;
STICKLINE(CROSS(散户,主力) AND 散户>75,80,200,0.2,0),COLOR00FF00;
DRAWICON(CROSS(散户,主力) AND 散户>75,200,8);



未来函数检测结果如下:
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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