以下是马年行大运–马上黄金
马年行大运“马上黄金
使用通信达的朋友较多,将中集2011老师的大智慧“火山黄金”主图公式改为通信达,在此感谢中集2011老师无私奉献。
有些小改动,加入两条线更能体验,趋势拐点巧买卖,量价齐升擒黑码的乐趣。加入擒黑码信号“马上黄金”故公式更名为“马上黄金”
祝下载加分回帖看帖加关注的的朋友马年行大运,马到成功,马上有钱!
{马上黄金}
LASTK:=(REFX(BARSTATUS=2{DISPSTATUS=2},2)=0);
上涨:=CLOSE>REF(CLOSE,1);
未跌破:=REFX(CLOSE,1)>LOW AND REFX(CLOSE,2)>LOW AND REFX(CLOSE,3)>LOW;
缩量:=VOL>0.35*(REFX(VOL,1)+REFX(VOL,2)+REFX(VOL,3)) AND VOL>REFX(VOL,1);{1.05/3,5%}
逐级缩量:=VOL>REFX(VOL,1) AND REFX(VOL,1)>REFX(VOL,2) AND REFX(VOL,2)>REFX(VOL,3);
逐级价升:=CLOSE<REFX(CLOSE,1) AND REFX(CLOSE,1)<REFX(CLOSE,2) AND REFX(CLOSE,2)<REFX(CLOSE,3);
{倍量柱}
倍量柱:VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,NODRAW,COLORMAGENTA;
STICKLINE(倍量柱,OPEN,CLOSE,2.5,0),COLORMAGENTA;
{高量柱}
高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3)) AND VOL>REF(VOL,1) AND VOL>REFX(VOL,1),NODRAW,COLOR0080EF;{1.8/6,1.8倍}
STICKLINE(高量柱,OPEN,CLOSE,2.5,0),COLOR0080EF;
{平量柱}
平量柱:VOL>REFX(VOL,1)*0.97 AND VOL=2*REF(VOL,1),NODRAW,COLORGRAY;
STICKLINE(平量柱,OPEN,CLOSE,2.8,0),COLORGRAY;
{梯量柱}
梯量柱:VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2) AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2),NODRAW,COLORC68CC0;{虽然是梯量柱,但也不能太小}
STICKLINE(梯量柱,OPEN,CLOSE,2.5,0),COLORC68CCC;
{将军柱}
将军柱:LASTK AND 上涨 AND 未跌破 AND (倍量柱 OR 高量柱 OR 平量柱 OR 梯量柱),NODRAW,COLORYELLOW;
STICKLINE(将军柱,OPEN,CLOSE,4,0),COLORYELLOW;
{黄金柱}
黄金柱:将军柱 AND 缩量,NODRAW,COLOR79A5FF;
STICKLINE(黄金柱,OPEN,CLOSE,3,0),COLOR79A5FF;
STICKLINE(黄金柱,OPEN,CLOSE,1,0),COLORRED;
{标准黄金柱}
标准黄金柱:黄金柱 AND 逐级缩量 AND 逐级价升,NODRAW,COLORRED;
STICKLINE(标准黄金柱,OPEN,CLOSE,2.5,0),COLORRED;
{输出}
DRAWICON(黄金柱 AND 标准黄金柱=0 AND BARSLAST(REF(黄金柱,1))>1,LOW*0.98,1),COLORRED;
DRAWICON(标准黄金柱,LOW*0.98,9),COLORRED;
DRAWICON(将军柱 AND BARSLAST(REF(将军柱,1))>1 AND BARSLAST(黄金柱)>1,LOW*0.98,38),COLORRED;
{攻防线}
{K1:=SUMBARS(黄金柱,1);
K2:=SUMBARS(黄金柱,2);
K3:=SUMBARS(黄金柱,3);
K4:=SUMBARS(黄金柱,4);
K5:=SUMBARS(黄金柱,5);
K6:=SUMBARS(黄金柱,6);
K7:=SUMBARS(黄金柱,7);
K8:=SUMBARS(黄金柱,8);
K9:=SUMBARS(黄金柱,9);
K10:=SUMBARS(黄金柱,10);
AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),1,0),COLORYELLOW;}
G1:=EMA(CLOSE,3);
G2:=EMA(CLOSE,5);
趋势变化价:REF(L,BARSLAST(CROSS(G2,G1))),COLORLIRED,LINETHICK1;
后市关键价:REF(H,BARSLAST(CROSS(G2,G1))),COLORLIBLUE,LINETHICK1;
K0:=SUMBARS(黄金柱,1);
K11:=BARSLAST(黄金柱.1);
AA1:STICKLINE(K0,REF(C,K11-1)*1.0002,REF(C,K11-1),1,0),COLORFFFF00;
AA2:STICKLINE(K0,REF(L,K11-1)*1.0002,REF(L,K11-1),1,0),COLORYELLOW;
持股线:=EMA(CLOSE,12),LINETHICK2;
上升:IF(持股线>=REF(持股线,1),持股线,DRAWNULL),LINETHICK2 COLORRED;
下降:IF(持股线<REF(持股线,1),持股线,DRAWNULL),LINETHICK2,COLORGREEN;
趋势线:=EMA(CLOSE,50);
中升:IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORFF00FF;
中降:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORYELLOW;
AA11:=BARSLAST(趋势线>持股线);
BB1:=REF(COUNT(C<趋势线,AA1)=AA11,1);
CC1:=CROSS(C,趋势线) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3 AND 将军柱>0 AND 倍量柱>0 AND 上升>=REF(上升,1);
马上黄金:=BB AND CC1,COLOR00FF00;
DRAWTEXT(马上黄金,H+0.12,\’马上黄金\’),COLORFF00FF;
STICKLINE(马上黄金,OPEN,CLOSE,2,0),COLOR79A5FF;