通达信买在底点
BGTYU:=IF(DATE<=1590301,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
黄s起动线:=EMA((CLOSE/VBNH),20),COLORYELLOW,POINTDOT;
洋红色主力线:=EMA((CLOSE/VBNH),60),COLORMAGENTA,LINETHICK1;
绿色散户线:=EMA((CLOSE/VBNH),120),COLORGREEN,LINETHICK1;
DRAWICON(CROSS(EMA((CLOSE/VBNH),60),EMA((CLOSE/VBNH),120)),EMA((CLOSE/VBNH),60)*1,1);
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),EMA((CLOSE/VBNH),60)),EMA((CLOSE/VBNH),120)*1,2);
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.02),85,18);
STICKLINE(CROSS(EMA((CLOSE/VBNH),20),1.02),83,90,5,0), COLORMAGENTA;
STICKLINE(EMA(C,10)>EMA(C,60) ,80,85,2.0,0),COLORRED;
STICKLINE(EMA(C,10)<EMA(C,60) ,75,80,2.0,0),COLORGREEN;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.02),80,'拉升'),COLORYELLOW;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.04),95,'可能涨停'),COLORYELLOW;
STICKLINE(EMA((CLOSE/VBNH),120)>1.003 ,80,85,2.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),80,'买进'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.0029),88,9);
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),85,'观察分时量'),COLORYELLOW;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),92,'超强'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.004),90,9);
P:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),3);
风警值:P+100,COLORYELLOW,LINETHICK2;
顶:=95,COLORFF0000,LINETHICK4;
风险区:=90,COLORRED,LINETHICK2;
安全区:=10,COLORGREEN,LINETHICK2;
底:=5,COLOR004000,LINETHICK4;
多方:EMA(100-3*SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1)-100,3),LINETHICK2,COLORRED;
{MA(多方,3);}
空方:EMA(100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1),3),LINETHICK2,COLORWHITE;
投机线:=EMA(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),3),COLOR00FFFF;
V12:=(投机线-REF(投机线,1))/REF(投机线,1)*100;
准备现金: STICKLINE(投机线<=13,0,20,4,0),COLORCC9900;
AA:=投机线<=13 AND FILTER((投机线<=13),15);
DRAWTEXT (AA,25,'备钱'),COLORCC9900;
买入股票: STICKLINE(投机线<=13 AND V12>13,0,35,6,0),COLOR0099FF;
BBK:= (投机线<=13 AND V12>13) AND FILTER((投机线<=13 AND V12>13),10) ;
DRAWTEXT (BBK,40,'买股'),COLOR0099FF;
见顶清仓: STICKLINE(投机线>=95 AND V12,90,99,4,0),COLORYELLOW;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力撤:IF(V4<=0,V4,0),COLORGREEN,NODRAW;
主力进:IF(V4>=0,V4,0),NODRAW;
顶部:IF(CROSS(多方,99) AND 投机线>=95 OR 多方>=90 AND CROSS(多方,投机线) OR MA(多方,3)>=105,90,100),COLOR00AA00;
底部:IF(投机线<=5,10,10),COLORYELLOW;
A1:=(DVOL/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:(A2/A6)*100,LINETHICK1,COLORMAGENTA;
机卖:(A3/A6)*100,LINETHICK1,COLORGREEN;
散买:=(A4/A6)*100,LINETHICK1,COLORLIRED;
散卖:=(A5/A6)*100,LINETHICK0;
主力差:=机买-机卖,LINETHICK2,COLORYELLOW;
散户差:=散买-散卖,LINETHICK0,NODRAW;
DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*1.35,'●机构'),COLORRED;
DRAWTEXT(主力差<0 AND REF(主力差,1)>=0,-C*0.35,'▼◆机构'),COLORWHITE;
DRAWTEXT(散户差>0 AND REF(散户差,1)<=0,C*0.75,'▲散户'),COLORCYAN;
DRAWTEXT(散户差<0 AND REF(散户差,1)>=0,-C*0.15,'▽散户'),COLORWHITE;
机构加仓:(主力差>=REF(主力差,1)+1.8)*30,LINETHICK1,COLORMAGENTA;
BB:=机买/机卖;
BBB:=机构加仓/REF(机构加仓,1);
DRAWICON(BB/REF(BB,1)>1.02 AND BB>5 AND BBB=1,1,3);
DRAWICON(BB/REF(BB,1)>1.03 AND BB>9 AND BBB/REF(BBB,1)>0.99,10,1);
DRAWICON(BB/REF(BB,1)>1.03 AND BB>9 AND BBB/REF(BBB,1)>0.99,15,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>0.99,20,13);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.0,30,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.0,40,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.1,18,13);
DRAWTEXT(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.1,30,'买')COLORYELLOW;
DRAWTEXT(BB>100 AND BBB/REF(BBB,1)>1.1,30+BB,'全买')COLORYELLOW;
STICKLINE(BB>100 AND BBB/REF(BBB,1)>1.1,0,30,1,0)COLORRED;
机构买:CROSS(机买,机卖);
DRAWTEXT(机买,机买,'上穿买'),COLORMAGENTA;
机构卖:CROSS(机卖,机买);
DRAWTEXT(机卖,机买,'☆'),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:DVOL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
如果DATE<=1590301返回1否则返回0
GHYJKU赋值:BETWEEN((收盘价*BGTYU)/(SUM(成交额,(收盘价*BGTYU的有效数据周期数))/SUM(成交量*100,(收盘价*BGTYU的有效数据周期数))),1.05,0.95)
VBNH赋值:IF(GHYJKU=0,MA((收盘价*BGTYU),(收盘价*BGTYU的有效数据周期数)),(SUM(成交额,(收盘价*BGTYU的有效数据周期数))/SUM(成交量*100,(收盘价*BGTYU的有效数据周期数))))
黄S起动线赋值:EMA((收盘价/VBNH),20),画黄色,POINTDOT
洋红色主力线赋值:EMA((收盘价/VBNH),60),画洋红色,LINETHICK1
绿色散户线赋值:EMA((收盘价/VBNH),120),画绿色,LINETHICK1
DRAWICON(CROSS(EMA((收盘价/VBNH),60),EMA((收盘价/VBNH),120)),EMA((收盘价/VBNH),60)*1,1)
DRAWICON(CROSS(EMA((收盘价/VBNH),120),EMA((收盘价/VBNH),60)),EMA((收盘价/VBNH),120)*1,2)
DRAWICON(CROSS(EMA((收盘价/VBNH),20),1.02),85,18)
STICKLINE(CROSS(EMA((收盘价/VBNH),20),1.02),83,90,5,0), 画洋红色
STICKLINE(C的10日指数移动平均>C的60日指数移动平均 ,80,85,2.0,0),画红色
STICKLINE(C的10日指数移动平均
DRAWTEXT(CROSS(EMA((收盘价/VBNH),20),1.02),80,'拉升'),画黄色
DRAWTEXT(CROSS(EMA((收盘价/VBNH),20),1.04),95,'可能涨停'),画黄色
STICKLINE(EMA((收盘价/VBNH),120)>1.003 ,80,85,2.0,0),画洋红色
DRAWTEXT(CROSS(EMA((收盘价/VBNH),120),1.0029),80,'买进'),画黄色
DRAWICON(CROSS(EMA((收盘价/VBNH),120),1.0029),88,9)
DRAWTEXT(CROSS(EMA((收盘价/VBNH),120),1.0029),85,'观察分时量'),画黄色
DRAWTEXT(CROSS(EMA((收盘价/VBNH),120),1.004),92,'超强'),画黄色
DRAWICON(CROSS(EMA((收盘价/VBNH),120),1.004),90,9)
P赋值:EMA(-100*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内最低价最低值),3)
输出
风警值:P+100,画黄色, 线宽为2
顶赋值:95,COLORFF0000,LINETHICK4
风险区赋值:90,画红色, 线宽为2
安全区赋值:10,画绿色, 线宽为2
底赋值:5,COLOR004000,LINETHICK4
输出多方:EMA(100-3*SMA((75日内最低价最低值-收盘价)/(75日内最高价最高值-75日内最低价最低值)*100,27,1)+2*SMA(SMA((75日内最低价最低值-收盘价)/(75日内最高价最高值-75日内最低价最低值)*100,27,1),15,1)-100,3), 线宽为2,画红色
{多方的3日简单移动平均
输出}
空方:EMA(100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,27,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,27,1),15,1),3), 线宽为2,画白色
投机线赋值:EMA(3*SMA((C-55日内L最低值)/(55日内H最高值-55日内L最低值)*100,5,1)-2*SMA(SMA((C-55日内L最低值)/(55日内H最高值-55日内L最低值)*100,5,1),3,1),3),COLOR00FFFF
V12赋值:(投机线-1日前的投机线)/1日前的投机线*100
当满足条件投机线<=13时,在0和20之间画柱状线
AA赋值:投机线<=13 AND FILTER((投机线<=13),15)
DRAWTEXT (AA,25,'备钱'),COLORCC9900
当满足条件投机线<=13 AND V12>13时,在0和35之间画柱状线
BBK赋值: (投机线<=13 AND V12>13) AND FILTER((投机线<=13 AND V12>13),10)
DRAWTEXT (BBK,40,'买股'),COLOR0099FF
当满足条件投机线>=95 AND V12时,在90和99之间画柱状线
V1赋值:(C*2+H+L)/4*10
V2赋值:V1的13日指数移动平均-V1的34日指数移动平均
V3赋值:V2的5日指数移动平均
V4赋值:2*(V2-V3)*5.5
如果V4<=0返回V4否则返回0
如果V4>=0返回V4否则返回0
顶部:IF(多方上穿99 AND 投机线>=95 OR 多方>=90 AND 多方上穿投机线 OR 多方的3日简单移动平均>=105,90,100),COLOR00AA00
如果投机线<=5返回10否则返回10
A1赋值:(D成交量/C)/2,NODRAW
A2赋值:SUM(IF(A1>100 AND 收盘价>1日前的收盘价,A1,0),0)
A3赋值:SUM(IF(A1>100 AND 收盘价<1日前的收盘价,A1,0),0)
A4赋值:SUM(IF(A1<100 AND 收盘价>1日前的收盘价,A1,0),0)
A5赋值:SUM(IF(A1<100 AND 收盘价<1日前的收盘价,A1,0),0)
A6赋值:A2+A3+A4+A5
输出
机买:(A2/A6)*100,LINETHICK1,画洋红色
输出
机卖:(A3/A6)*100,LINETHICK1,画绿色
散买赋值:(A4/A6)*100,LINETHICK1,COLORLIRED
散卖赋值:(A5/A6)*100,LINETHICK0
主力差赋值:机买-机卖, 线宽为2,画黄色
散户差赋值:散买-散卖,LINETHICK0,NODRAW
DRAWTEXT(主力差>0 AND 1日前的主力差<=0,C*1.35,'●机构'),画红色
DRAWTEXT(主力差<0 AND 1日前的主力差>=0,-C*0.35,'▼◆机构'),画白色
DRAWTEXT(散户差>0 AND 1日前的散户差<=0,C*0.75,'▲散户'),画青色
DRAWTEXT(散户差<0 AND 1日前的散户差>=0,-C*0.15,'▽散户'),画白色
输出
机构加仓:(主力差>=1日前的主力差+1.8)*30,LINETHICK1,画洋红色
BB赋值:机买/机卖
BBB:=机构加仓/1日前的机构加仓
DRAWICON(BB/1日前的BB>1.02 AND BB>5 AND BBB=1,1,3)
DRAWICON(BB/1日前的BB>1.03 AND BB>9 AND BBB/1日前的BBB>0.99,10,1)
DRAWICON(BB/1日前的BB>1.03 AND BB>9 AND BBB/1日前的BBB>0.99,15,1)
DRAWICON(BB/1日前的BB>1.05 AND BB>9 AND BBB/1日前的BBB>0.99,20,13)
DRAWICON(BB/1日前的BB>1.05 AND BB>9 AND BBB/1日前的BBB>1.0,30,1)
DRAWICON(BB/1日前的BB>1.05 AND BB>9 AND BBB/1日前的BBB>1.0,40,1)
DRAWICON(BB/1日前的BB>1.05 AND BB>9 AND BBB/1日前的BBB>1.1,18,13)
DRAWTEXT(BB/1日前的BB>1.05 AND BB>9 AND BBB/1日前的BBB>1.1,30,'买')画黄色
DRAWTEXT(BB>100 AND BBB/1日前的BBB>1.1,30+BB,'全买')画黄色
STICKLINE(BB>100 AND BBB/1日前的BBB>1.1,0,30,1,0)画红色
输出
机构买:机买上穿机卖
当满足条件机买时,在机买和'上穿买'位置书写文字
输出
机构卖:机卖上穿机买
当满足条件机卖时,在机买和'☆'位置书写文字