同花顺机构买卖盘 买卖力道副图指标 源码

A1:=(VOL/CLOSE)/3;
 A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
 A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
 A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
 A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
 A6:=((A2+A3)+A4)+A5;
 A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);
 A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));
 A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));
 A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));
机构买盘:(A2),LINETHICK0;
机构卖盘:(A3),LINETHICK0;
小股民买盘:(A4),LINETHICK0;
小股民卖盘:(A5),LINETHICK0;
 STICKLINE(机构买盘>0 AND 机构买盘>=机构卖盘 AND 机构买盘>=REF(机构买盘,1),20,20+100,1,0),colorred;
 STICKLINE(机构卖盘>0 AND 机构卖盘>=机构买盘 AND 机构卖盘>=REF(机构卖盘,1),20,20+100,1,0),colorwhite;
 STICKLINE(小股民买盘>0 AND 小股民买盘>=小股民卖盘 AND 小股民买盘>=REF(小股民买盘,1),-20,-20-100,1,0),colorlimagenta;
 STICKLINE(小股民卖盘>0 AND 小股民卖盘>=小股民买盘 AND 小股民卖盘>=REF(小股民卖盘,1),-20,-20-100,1,0),colorcyan;
 VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;
买卖力道: SMA(VAR2,3,1),colorligray;
 VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
 VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));
 VAR5:=AMOUNT/(100*VOL);
 VAR6:=MA(VAR5,40);
 VAR7:=100*(CLOSE-VAR6)/VAR6;
底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),colorgreen;
 STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , colorgreen;
 VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
 VAR9:=SMA(VAR8,3,1);
 VARA:=SMA(VAR9,3,1);
 D: SMA(VARA,5,1)*20, colorcyan;
 V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:= EMA(V11,3);
 V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
 BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);
买入股票:= (趋势线<=13 AND V12>13),colorred;
 CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),coloryellow;
卖出区: 清仓+1800,coloryellow;
中:(0+卖出区)/2, colorgreen;
 STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),colormagenta;
 STICKLINE(买卖力道>=中 AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),colorbrown;
 STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),colorgreen;
 STICKLINE(买卖力道<中 AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),colorblue;
 DRAWICON(买入股票,中,15);
 DRAWTEXT (BB,0,'买股'),coloryellow;
 DRAWTEXT(清仓,买卖力道,'顶'),coloryellow;
 STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),colorblue;
 DRAWICON(CROSS(D,中),中,13);
 DRAWICON(CROSS(中,买卖力道),买卖力道,2);
 DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));
 DEA:=(EMA(DIF,6));
 MACD:=(DIF-DEA)*3;
红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);
青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);
粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);
蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL);
 STICKLINE(红线,200,250,1,0),colorred,LINETHICK1;
 STICKLINE(青线,200,250,1,0),colorcyan,LINETHICK1;
 STICKLINE(粉线,200,250,1,0),colormagenta,LINETHICK1;
 STICKLINE(蓝线,200,250,1,0),colorblue,LINETHICK1;
 DRAWICON(CROSS((A2),(A3)),200,23);



来函数检测结果如下:
该公式没有未来函数

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

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

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