C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 黄金主图
- DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('版块:' + BLKNAME)),ALIGN4;
- {均线系统}
- MA5:MA(CLOSE,5);
- MA10:MA(CLOSE,10);
- MA20:MA(CLOSE,20);
- MA60:MA(CLOSE,60);
-
- {通用条件}
- LASTK:=(REFX(ISLASTBAR,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,LINETHICK0,COLORWHITE;
- {高量柱}
- 高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3)) AND VOL>REF(VOL,1) AND VOL>REFX(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍}
- {平量柱}
- 平量柱:VOL>REFX(VOL,1)*0.97 AND VOL<REFX(VOL,1)*1.03 AND VOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE;
- {梯量柱}
- 梯量柱:VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2) AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{虽然是梯量柱,但也不能太小}
- {将军柱}
- 将军柱:LASTK AND 上涨 AND 未跌破 AND (倍量柱 OR 高量柱 OR 平量柱 OR 梯量柱),LINETHICK0,COLORYELLOW;
- {黄金柱}
- 黄金柱:将军柱 AND 缩量,LINETHICK0,COLORYELLOW;
- {标准黄金柱}
- 标准黄金柱:黄金柱 AND 逐级缩量 AND 逐级价升,LINETHICK0,COLORRED;
-
- {输出}
- DRAWICON(黄金柱 AND 标准黄金柱=0 AND BARSLAST(REF(黄金柱,1))>1,LOW,8),COLORRED;
- DRAWICON(标准黄金柱,LOW,4),COLORRED;
- DRAWICON(将军柱 AND BARSLAST(REF(将军柱,1))>1 AND BARSLAST(黄金柱)>1,LOW,10),COLORRED;
-
-
- AA1:=AMOUNT/V;
- BB1:=L<AA1*0.9;
- CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
- DD1:=L<MA(C,5)*0.921;
- EE1:=V<MA(V,5)*1.5;
- 老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;
- DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 换手量(副图)
- V5:MA(VOLUME,5);
- V35:MA(VOLUME,35);
- V135:MA(VOLUME,135);
- VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
- 主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
- 主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
- STICKLINE(主买>0,0,主买,2,0),COLORRED;
- {STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}
- STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;
- 换手:VOL/CAPITAL*100,POINTDOT;
- 十日换手:SUM(换手,10);