文章目录:
请高手把通达信“买入必涨”主图指标公式改成选股公式,谢谢!
B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);
趋势:=MA(C,90),COLORRED;
MA14:=MA(CLOSE,14);
码:=COST(50),COLORYELLOW;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
XG:CROSS(DIFF,DEA);
编写公式,修改公式。盘中预警,条件选股。公式解密,去除或增加时间限制。
点我的用户名,再点私信。
求通达信分时“买卖力道”源码
通达信分时买卖力道指标公式股票软件源码如下:
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A10.29) AND (CLOSE(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A10.29) AND (CLOSE(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A10.29) AND (CLOSE(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A10.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(CLOSEOPEN,VAR3*(HIGH-LOW),IF(CLOSEOPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSEOPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEOPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSEOPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEOPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSEOPEN,VAR3*(HIGH-LOW),IF(CLOSEOPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));
VAR5:=AMOUNT/(100*VOL);
VAR6:=MA(VAR5,40);
VAR7:=100*(CLOSE-VAR6)/VAR6;
底部追击:= IF(VAR40 AND VAR7-12 AND CLOSE/OPEN1.08,300,200),COLORGREEN;
STICKLINE(VAR40 AND VAR7-12 AND CLOSE/OPEN1.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 V1213) AND FILTER((趋势线=13 AND V1213),10);
买入股票:= (趋势线=13 AND V1213),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 MACDREF(MACD,1),中,DRAWNULL);
青线:=IF(MACD=0 AND MACD REF(MACD,1),中,DRAWNULL);
粉线:=IF(MACD0 AND MACD=REF(MACD,1),中,DRAWNULL);
蓝线:=IF(MACD0 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);
通达信涨不涨全看量公式源码
虚:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,(-1),(-1)),COLOR00C0C0;
实:VOL,VOLSTICK;
V5:MA(实,5),COLORWHITE;
V10:MA(实,10),COLORYELLOW;
V60:MA(实,60),COLORMAGENTA;
X_1:=REF(CLOSE,1);
X_2:=VOLMA(VOL,60)/3 OR VOLCAPITAL*0.005;
STICKLINE(VOL/REF(VOL,1)=0.97 AND VOL/REF(VOL,1)=1.03,VOL,0,0.85,0),COLORWHITE;
STICKLINE(CLOSEOPEN AND REF(CLOSE,1)REF(OPEN,1) AND HIGHREF(OPEN,1) AND CLOSE(REF(OPEN,1)-REF(CLOSE,1))/3+REF(CLOSE,1),VOL,0,0.57,0),COLORGREEN;
STICKLINE(OPENCLOSE AND CLOSEREF(CLOSE,1) AND REF(CLOSE,1)=REF(OPEN,1),VOL,0,0.57,0),COLORRED;
今夕比:实/REF(实,1),COLORYELLOW;
季量比:实/MA(VOL,60),COLORMAGENTA;
量本比:10000*VOL/FINANCE(7),COLORRED;
买卖比:DYNAINFO(23)/DYNAINFO(22);
百低比:VOL/REF(LLV(VOL,100),1),NODRAW;
量能饱和度:IF(AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))1,1,AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20)))*100,NODRAW,COLORYELLOW;
X_3:=1*AMOUNT;
X_4:=HHV(X_3,10)=X_3;
X_5:=HHV(X_3,30)=X_3;
X_6:=HHV(X_3,60)=X_3;
X_7:=HHV(X_3,100)=X_3;
X_8:=HHV(X_3,250)=X_3;
X_9:=X_4 OR X_5 OR X_6 OR X_7 OR X_8 AND CAPITAL/1000000=35 AND CLOSEREF(CLOSE,1);
STICKLINE(X_9,VOL,VOL*5/7,1.97,0),COLORYELLOW;
X_10:=VOLREF(VOL,1) AND REF(VOL,1)REF(VOL,2) AND REF(VOL,2)=REF(VOL,3) AND REF(VOL,3)=REF(VOL,4) AND VOL0;
X_11:=CLOSEREF(OPEN,1) AND REF(CLOSE,1)REF(OPEN,1) AND REF(CLOSE,2)REF(OPEN,2) AND (REF(CLOSE,1)=(REF(CLOSE,2)+REF(OPEN,2))/2 OR (REF(CLOSE,1)=(REF(CLOSE,3)+REF(OPEN,3))/2 AND REF(CLOSE,3)REF(OPEN,3)) AND HIGHLOW);
STICKLINE(VOLMA(VOL,60)*1/3,VOL,0,1.17,0),COLORMAGENTA;
X_12:=(OPEN-CLOSE)/OPEN=0.04 AND (VOL/MA(VOL,60)=2/3 OR VOL/REF(VOL,1)=1.15 OR VOLHHV(VOL,5));
DRAWICON(VOL/REF(VOL,1)1.95 AND VOL/REF(VOL,1)=6 AND (CLOSEOPEN OR (CLOSEOPEN AND CLOSE=REF(CLOSE,1))),VOL*1.0027,1);
DRAWICON(VOL/REF(VOL,1)1.95 AND VOL/REF(VOL,1)=2.02 AND (CLOSEOPEN OR (CLOSEOPEN AND CLOSE=REF(CLOSE,1))),0,41);
DRAWICON(VOL/REF(VOL,1)=0.51 AND HIGHLOW,VOL*0.87,2);
STICKLINE(FILTER(VOLREF(VOL,1) AND REF(VOL,1)REF(VOL,2) AND CLOSEOPEN,2),VOL,VOL*8/9,1.97,0),COLORMAGENTA;
STICKLINE(FILTER(VOLREF(VOL,1) AND REF(VOL,1)REF(VOL,2) AND HIGHLOW,2),VOL,VOL*7/9,1.97,0),COLORBROWN;
X_13:=REF(VOL,6)REF(VOL,5) AND REF(VOL,6)REF(VOL,4) AND REF(VOL,6)REF(VOL,3) AND REF(VOL,6)REF(VOL,2) AND REF(VOL,6)REF(VOL,1);
X_14:=REF(VOL,5)REF(VOL,4) AND REF(VOL,5)REF(VOL,3) AND REF(VOL,5)REF(VOL,2) AND REF(VOL,5)REF(VOL,1);
X_15:=REF(VOL,4)REF(VOL,3) AND REF(VOL,4)REF(VOL,2) AND REF(VOL,4)REF(VOL,1);
X_16:=REF(VOL,6)/VOL=0.97 AND REF(VOL,6)/VOL=1.03;
X_17:=REF(VOL,5)/VOL=0.97 AND REF(VOL,5)/VOL=1.03;
X_18:=REF(VOL,4)/VOL=0.97 AND REF(VOL,4)/VOL=1.03;
DRAWICON(X_13 AND X_16 OR (X_14 AND X_17) OR (X_15 AND X_18),VOL*0.93,41);
DRAWICON((OPEN-CLOSE)/OPEN=0.04 AND (VOL/MA(VOL,60)=2/3 OR VOL/REF(VOL,1)=1.15 OR VOLHHV(VOL,5)),VOL*1.0158,39);
DRAWICON((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)=0.04 AND (VOL=MA(VOL,60) OR VOL/REF(VOL,1)=1.2 OR VOLHHV(VOL,5)) AND HIGHLOW,VOL*1.0159,38);
DRAWICON(X_10 AND X_11,0,38);
DRAWICON(VOLREF(LLV(VOL,100),1) AND HIGHLOW,VOL*1.0359,23);
DRAWICON(COUNT(X_12,3) AND VOLREF(LLV(VOL,20),1) AND HIGHLOW,VOL*1.095,17);
X_19:=HHV(VOL,3)REF(VOL,3);
X_20:=LLV(LOW,3)REF(OPEN,3) AND REF(CLOSE,3)REF(OPEN,3) AND CLOSEREF(OPEN,3) AND REF(CLOSE,2)REF(OPEN,3) AND REF(CLOSE,1)REF(OPEN,3) AND HIGHLOW AND CLOSEOPEN;
X_21:=X_19 AND X_20;
DRAWICON(X_21,0,10);
SUM((IF(((A10.29) AND (CLOSE(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A10.29) AND (CLOSE(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A
VAR4:=(IF(CLOSEOPEN,VAR3*(HIGH-LOW),IF(CLOSEOPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSEOPEN,0-VAR3*(HIGH-
LORYELLOW;X_10:=VOLREF(VOL,1) AND REF(VOL,1)REF(VOL,2) AND REF(VOL,2)=REF(VOL,3) AND REF(VOL,3)=REF(VOL,4) AND VOL0;X_11:=CLOSERE