主散监视副图主筹散筹 量价背离 上涨家数 下跌家数有使用方法
{主散监视,主筹散筹 量价背离 上涨家数 下跌家数}
ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);SHZB:=SHCM/(ZLCM+SHCM)*100;ZCZB:=ZLCM/(ZLCM+SHCM)*100+1;散筹:INTPART(SHZB),COLORGREEN,LINETHICK1;散均:EMA(散筹,13),COLORCYAN,LINETHICK2;STICKLINE(散筹>散均,散均,散筹,0.2,0),COLOR00FF00;主筹:INTPART(ZCZB),COLORYELLOW,LINETHICK1;主均:EMA(ZLCM,13),COLORMAGENTA,LINETHICK2;STICKLINE(主筹>主均,主均,主筹,0.2,0),COLOR0000FF;买:CROSS(主筹,主均),NODRAW,COLORYELLOW;DRAWTEXT(买,主均*0.85,'↖买入'),COLORRED;卖:CROSS(主均,主筹),NODRAW,COLORLIBLUE;DRAWTEXT(卖,主筹*1.20,'__卖出'),COLORLIBLUE;DRAWICON(买,主筹*0.92,5);DRAWICON(卖,主筹*1.06,6);买2:CROSS(散均,散筹) AND 主筹>REF(主筹,1),NODRAW,COLORRED;DRAWICON(买2,散筹*0.90,9),COLORYELLOW;DRAWTEXT(买2,散筹*0.96,'↖买2')COLORMAGENTA;卖2: CROSS(散筹,散均),NODRAW,COLORGREEN;DRAWTEXT(卖2,散筹*1.15,'__卖2'),COLORGREEN;DRAWICON(卖2,散筹*1.06,15);VAR2:=IF(C>=O,H,0);VAR3:=IF(C<=O,REF(H,1),VAR2);VAR4:=IF(C>=O,V,0);VAR5:=IF(C<=O,REF(V,1),VAR4);VAR6:=COUNT(VAR3>REF(VAR3,1) AND VAR5< REF(VAR5,1),3)>=2 AND C>O;量价背离:VAR6*20,STICK,COLORCYAN,LINETHICK2;EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0)*5,3),STICK,COLORYELLOW,LINETHICK3;机会关注:5,POINTDOT,COLORFF00FF,LINETHICK4;换手:VOL/CAPITAL*100,COLORWHITE,NODRAW;预换手:IF(CURRBARSCOUNT=1 AND PERIOD=5,换手*240/FROMOPEN,DRAWNULL),COLORMAGENTA,NODRAW;量比:DYNAINFO(17),NODRAW,COLORWHITE;日量比:V/REF(MA(V,5),1),NODRAW,COLORWHITE;今日波幅:=100*(DYNAINFO(5)-DYNAINFO(6))/DYNAINFO(6);今日价差:=DYNAINFO(5)-DYNAINFO(6);DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('今日最大振幅: ',CON2STR(今日波幅,2)),' %')),COLORWHITE;DRAWTEXT_FIX(1,0.120,0.000,0,STRCAT(STRCAT('今日高低价差: ',CON2STR(今日价差,2)),' 元')),COLORWHITE;DRAWTEXT_FIX(1,0.250,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),COLORRED;DRAWTEXT_FIX(1,0.390,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),COLORGREEN;DRAWTEXT_FIX(1,0.530,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),COLORRED;DRAWTEXT_FIX(1,0.670,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{主散监视,主筹散筹 量价背离 上涨家数 下跌家数}ZLCM赋值:EMA(收盘价计算的获利盘比例*70,3)
SHCM赋值:EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3)
SHZB赋值:SHCM/(ZLCM+SHCM)*100
ZCZB赋值:ZLCM/(ZLCM+SHCM)*100+1
输出散筹:INTPART(SHZB),画绿色,LINETHICK1
输出散均:散筹的13日指数移动平均,画青色, 线宽为2
当满足条件散筹>散均时,在散均和散筹之间画柱状线
输出主筹:INTPART(ZCZB),画黄色,LINETHICK1
输出主均:ZLCM的13日指数移动平均,画洋红色, 线宽为2
当满足条件主筹>主均时,在主均和主筹之间画柱状线
输出买:主筹上穿主均,NODRAW,画黄色
当满足条件买时,在主均*0.85和'↖买入'位置书写文字
输出卖:主均上穿主筹,NODRAW,COLORLIBLUE
当满足条件卖时,在主筹*1.20和'__卖出'位置书写文字
当满足条件买时,在主筹*0.92和5之间画图标
当满足条件卖时,在主筹*1.06和6之间画图标
买2:散均上穿散筹 AND 主筹>1日前的主筹,NODRAW,画红色
当满足条件买2时,在散筹*0.90和9之间画图标
当满足条件买2时,在散筹*0.96和'↖买2'位置书写文字
卖2: 散筹上穿散均,NODRAW,画绿色
当满足条件卖2时,在散筹*1.15和'__卖2'位置书写文字
当满足条件卖2时,在散筹*1.06和15之间画图标
如果C>=O返回H否则返回0
VAR3赋值:IF(C<=O,1日前的H,VAR2)
如果C>=O返回V否则返回0
VAR5赋值:IF(C<=O,1日前的V,VAR4)
VAR6赋值:COUNT(VAR3>1日前的VAR3 AND VAR5< 1日前的VAR5,3)>=2 AND C>O
输出量价背离:VAR6*20,STICK,画青色, 线宽为2
EMA(IF(L<= 30日内L最低值,SMA(L-1日前的L的绝对值,30,1)/SMA(L-1日前的L和0较大值,30,1),0)*5,3),STICK,画黄色, 线宽为3
输出机会关注:5,POINTDOT,COLORFF00FF,LINETHICK4
输出换手:成交量/当前流通股本*100,画白色,NODRAW
如果 到最后交易的周期=1 AND PERIOD=5返回换手*240/FROM开盘价否则返回DRAWNULL
输出量比:DYNAINFO(17),NODRAW,画白色
日输出量比:V/REF(V的5日简单移动平均,1),NODRAW,画白色
今日波幅赋值:100*(DYNAINFO(5)-DYNAINFO(6))/DYNAINFO(6)
今日价差赋值:DYNAINFO(5)-DYNAINFO(6)
输出DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('今日最大振幅: ',CON2STR(今日波幅,2)),' %')),画白色
输出DRAWTEXT_FIX(1,0.120,0.000,0,STRCAT(STRCAT('今日高低价差: ',CON2STR(今日价差,2)),' 元')),画白色
输出DRAWTEXT_FIX(1,0.250,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),画红色
输出DRAWTEXT_FIX(1,0.390,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),画绿色
输出DRAWTEXT_FIX(1,0.530,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),画红色
输出DRAWTEXT_FIX(1,0.670,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),画绿色