分享

广通实用指标公式大汇集

 地中竹 2011-08-22
(2010-08-16 09:58:55)

图片

经常看到朋友想要下边这些公式,我就下载了下来,经使用超好使,帮助别人是我最大的快乐!下载的朋友有好的建议和公式可别忘了回贴,大家互相帮助嘛!

一、指数K线

DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:INDEXC,COLORWHITE,NODRAW;
涨跌:INDEXC-REF(INDEXC,1),COLORLIGRAY,NODRAW;
MA5:MA(INDEXC,5),COLORWHITE;
MA10:MA(INDEXC,10),COLORYELLOW;
MA20:MA(INDEXC,20),COLORMAGENTA;
MA60:MA(INDEXC,60),COLORGREEN ;
MA120:MA(INDEXC,120),COLORBLUE;

按此在新窗口浏览图片2010-7

二、MACD

DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);

STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,0.1,0),COLORCBCBC0;

DIF:DIFIF1;
DEA:DEAEA1;

MACD:MACD1,NODRAW,COLORMAGENTA;
A1:=BARSLAST(REF(CROSS(DIFIF1,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFIF1),1));
零轴线:0,COLORWHITE;

DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),DIFIF1,2);

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFIF1>REF(DIFIF1,A1+1) AND CROSS(DIFIF1,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORYELLOW,LINETHICK2;
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFIF1,A2+1)>DIFIF1 AND CROSS(DEA,DIFIF1);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK2;

按此在新窗口浏览图片2010-7

三、芝麻量点公式

VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,D1);
MAVOL2:MA(VOLUME,D2);
MAVOL3:MA(VOLUME,D3);
MAVOL4:MA(VOLUME,D4);
A1:=REF(CLOSE,1);
B1:=V<MA(V,60)/3 ;
B2:=MA(V,5)/2>V AND V>B1;
STICKLINE(B2,V,0,2,0),COLORLIMAGENTA; STICKLINE(B1,V,0,2,0),COLORYELLOW;
倍量:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;
STICKLINE(倍量>=1,0,VOL,0.5,0),COLORRED;

按此在新窗口浏览图片2010-7

四、OBV公式

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

    OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);

    MAOBV1:EMA(OBV,5);

    MAOBV2:MA(OBV,30);

    MAOBV3:MA(OBV,100);

按此在新窗口浏览图片2010-7

五、双向成交量公式

EV:=VOL;
十天总量:MA(VOL,10);
五天总量:MA(VOL,5);
实际V:EV/10000,LINETHICK0;
VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
预测:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
{IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR3),COLORGREEN;}
预测V:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,4,1),COLORWHITE;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+
(CLOSE-LOW)),VOL/2)),POINTDOT,COLORMAGENTA;
主动买万:主动买盘/10000,COLORMAGENTA,NODRAW;
主动卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,
0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORLIBLUE;
主动卖万:主动卖盘/10000,COLORLIBLUE,NODRAW;
成交额(千万):AMOUNT/10000000,POINTDOT;
STICKLINE(主动买盘>0,0,VOL,2,1),COLORWHITE;
STICKLINE(主动买盘>0,0,主动买盘,2,0),COLORMAGENTA;
STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLORLIBLUE;

按此在新窗口浏览图片2010-7

六、冷暖气带公式

DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));

    DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));

    DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;

    MA10:MA(CLOSE,10),COLORYELLOW;

    MA20:MA(CLOSE,20),COLORMAGENTA;

    MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1;
MA120:MA(CLOSE,120),COLORLIRED,LINETHICK1;

    MA240:MA(CLOSE,240),COLORBLUE;

DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做记号}

    DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号}

    DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号}

    DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号}

    DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做记号}

DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号}

    DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}

    DRAWICON(CROSS(MA120,MA60),MA120,2); {60日下穿120日做记号}

    DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★抄底') ,LINETHICK2,COLORRED;

    STICKLINE(C<0.905*REF(C,1),C,O,5,0),COLORWHITE;

    STICKLINE(C>1.095*REF(C,1),C,O,5,0),COLORYELLOW;

按此在新窗口浏览图片2010-7

七、五条均线公式

MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5); 

按此在新窗口浏览图片2010-7

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约