为庆祝本人新公式“投机王”的诞生,今发一与均线有关的支撑公式,实际上以前在指标实站交流区发过了,只不过还不完善,如今几个月过去了,经本人认真观察,认为可以为大众所用了。用“均线支撑”寻找强势股,做回调股效果明显,我的所有公式都是以“均线支撑”为基础,加上K线组而成。可以说你掌握了“均线支撑”,便掌握了股票的灵魂!
强调一下,请注意30天线,平衡线,多空线的威力,在上升通道中 {可以用ma(c,30)>REF(ma(c,30),1) 来确定} 如果股价在这三根线处得到支撑,你的任何公式中有买入信号,应该全仓买进!我一直认为30天线是主力的生命线,30天线处的支撑,30天线处的下破后很快收回,30天线处的下影,30天线处的涨停等等都有特殊的意义;我一直认为平衡线是强势股票回调的驿站,对于连续两个涨停的股票效果明显,驿站处休息后股价多数再向上攻,此时注意KDJ的K值和量,配合薛斯通道的SUP支撑 效果佳;我同时认为多空线也是涨停股票回调的驿站,配合薛斯通道的SUP,SDN支撑效果佳!
我一般不在乎理想币(理想币又不是人民币),只在乎每次发出公式后人们的反应,如果你没有更好的表达你内心激动的方法就请加币
{选股公式}
{吸筹之均线支撑}
X:=(3*C+L+O+H)/6;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210;
AHU:=COUNT(MA(C,30)>REF(MA(C,30),1),5)=5 AND 100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<2.5;
三十天定:=(AHU AND (L-MA(CLOSE,30))/MA(CLOSE,30)>-0.004 AND (L-MA(CLOSE,30))/MA(CLOSE,30)<0.011);
二十天定:=(AHU AND (L-MA(CLOSE,20))/MA(CLOSE,20)>-0.004 AND (L-MA(CLOSE,20))/MA(CLOSE,20)<0.011);
多空定:=(AHU AND (L-多空线)/多空线>-0.004 AND (L-多空线)/多空线<0.011);
吸筹A:=(COUNT(COUNT(三十天定,2)=2,5)>0 AND 三十天定);
吸筹B:=(COUNT(COUNT(二十天定,2)=2,5)>0 AND 二十天定);
吸筹C:=(COUNT(COUNT(多空定,2)=2,5)>0 AND 多空定);
吸筹:吸筹A{ OR 吸筹B OR 吸筹C};
{选股时没合适的信号可以把最后一句的括号去掉 能选得多一点 因为我是优先考虑30天线支撑所以加了括号 公式不是最终买入信号 买入请仔细考虑其他条件}
===============================================================================================================================================
{主图指标}
{均线定势}
M5:MA(C,5),COLORWHITE;
M10:MA(C,10),COLORYELLOW;
M20:MA(C,20),COLORBLUE;
MA30:MA(C,30),COLORRED,LINETHICK2;
M60:MA(C,60),COLORFFCC66;
平衡线:EMA(CLOSE,8),COLORFF9966;
PMA:=MA(C,5);
X:=(3*C+L+O+H)/6;
多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK2;
IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;
IF(MA(CLOSE,5)<=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN;
IF(MA(CLOSE,10)<=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLORGREEN;
IF(平衡线<=REF(平衡线,1),平衡线,DRAWNULL),COLORGREEN;
DRAWTEXT(CLOSE>=1.094*REF(CLOSE,1),CLOSE*1.02,'停,'),COLORCYAN;
VARZT:=BARSLAST(C/REF(C,1)>1.094);
DRAWTEXT(CURRBARSCOUNT=10,HHV(C,45),'作者: 阿虎'),COLORLIGRAY;
DRAWTEXT(VARZT=2,L*0.95,'3T'),COLORYELLOW;
DRAWTEXT(VARZT=4,H*1.06,'5T'),COLORYELLOW;
DRAWTEXT(VARZT=7,L*0.95,'8T'),COLORYELLOW;
DRAWTEXT(VARZT=12,H*1.06,'13T'),COLORYELLOW;
DRAWTEXT(VARZT=20,L*0.95,'21T'),COLORYELLOW;
DRAWTEXT(VARZT=33,H*1.06,'34T'),COLORYELLOW;
DRAWTEXT(VARZT=54,L*0.95,'55T'),COLORYELLOW;
DRAWTEXT(VARZT=88,H*1.06,'89T'),COLORYELLOW;
DRAWTEXT(VARZT=143,L*0.95,'144T'),COLORYELLOW;
DRAWTEXT(VARZT=232,H*1.06,'233T'),COLORYELLOW;
DRAWTEXT(VARZT=376,L*0.95,'377T'),COLORYELLOW;
DD:=多空线<REF(多空线,1);
IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;
A:=(PMA>多空线);
IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;
{-----对于有些软件不能通过公式的,删除以下源码,我用的是官方6.15测试版-------------------}
DRAWTEXT_FIX(1,0,0,0,'总股本(亿):'),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.06,0,0,CONST(FINANCE(1)/100000000)),COLORLIGRAY;
DRAWTEXT_FIX(1,0.13,0,0,'流通股本(亿):'),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.2,0,0,CONST(CAPITAL/1000000)),COLORLIGRAY;
DRAWTEXT_FIX(1,0.25,0,0,'所属板块:'),COLORLIGRAY;
DRAWTEXT_FIX(1,0.302,0,0,HYBLOCK),COLORLIGRAY;
DRAWTEXT_FIX(1,0.35,0,0,DYBLOCK),COLORLIGRAY;
AL2:=ABS((REF(C,1)-(REF(O,1)))/(REF(O,1)));
AL3:=ABS((REF(H,1)-(REF(O,1)))/(REF(O,1)));
AL4:=ABS((REF(L,1)-(REF(O,1)))/(REF(O,1)));
ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5);
上升突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1))));
上升阻力价:=(2*ELE-(REF(LOW,1)));
下跌支撑价:=(2*ELE-(REF(HIGH,1)));
下跌反转价:=(ELE-((REF(HIGH,1))-(REF(LOW,1))));
预测低一:=O-(O*(ABS((AL2+AL3+AL4)/3)));
预测低二:=(预测低一+((((ELE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5)+O)/2))/2;
VARM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VARM*(HIGH-LOW),IF(CLOSE<OPEN,VARM*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
DRAWTEXT_FIX(1,0,0.10,0,'预测低一:'),COLORLIGRAY;
DRAWTEXT_FIX(1,0,0.18,0,'预测低二:'),COLORLIGRAY;
DRAWTEXT_FIX(1,0.25,0.18,0,'系数:'),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.06,0.10,0,CONST(预测低一)),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.06,0.18,0,CONST(预测低二)),COLORLIGRAY;
DRAWTEXT_FIX(1,0.13,0.10,0,'成交量比:'),COLORLIGRAY;
DRAWTEXT_FIX(1,0.13,0.18,0,'换手率★:'),COLORLIGRAY;
DRAWTEXT_FIX(1,0.25,0.10,0,'量比:'),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.19,0.10,0,CONST(买盘/VOL*100)),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.19,0.18,0,CONST(DYNAINFO(37)*100)),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.28,0.10,0,CONST(DYNAINFO(17))),COLORLIGRAY;
DRAWNUMBER_FIX(1,0.28,0.18,0,CONST(IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1))),COLORLIGRAY;
==============================================================================================================================================
{副图指标}
{均线支撑}
X:=(3*C+L+O+H)/6;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210;
AHU:=COUNT(MA(C,30)>REF(MA(C,30),1),5)=5 AND 100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<2.5;
三十天定:=(AHU AND (L-MA(CLOSE,30))/MA(CLOSE,30)>-0.004 AND (L-MA(CLOSE,30))/MA(CLOSE,30)<0.011);
二十天定:=(AHU AND (L-MA(CLOSE,20))/MA(CLOSE,20)>-0.004 AND (L-MA(CLOSE,20))/MA(CLOSE,20)<0.011);
多空定:=(AHU AND (L-多空线)/多空线>-0.004 AND (L-多空线)/多空线<0.011);
DRAWTEXT(CURRBARSCOUNT=15,130,'作者: 阿虎'),COLORLIGRAY;
吸筹A:=(COUNT(COUNT(三十天定,2)=2,5)>0 AND 三十天定);
吸筹B:=(COUNT(COUNT(二十天定,2)=2,5)>0 AND 二十天定);
吸筹C:=(COUNT(COUNT(多空定,2)=2,5)>0 AND 多空定);
DRAWTEXT(吸筹A OR 吸筹B OR 吸筹C,128,'●'),COLORRED;
DRAWTEXT(吸筹A OR 吸筹B OR 吸筹C,128,'¤'),COLORYELLOW;
二十势:(二十天定)*55,COLORBLUE;
多空势:(多空定)*35,COLORFF00FF;
三十势:(三十天定)*70,COLORRED;
DRAWTEXT(多空定,145,'¥'),COLORFF00FF;
DRAWTEXT(二十天定,145,'¥'),COLORBLUE;
DRAWTEXT(三十天定,145,
|