經(jīng)??吹脚笥严胍逻呥@些公式,我就下載了下來,經(jīng)使用超好使,幫助別人是我最大的快樂!下載的朋友有好的建議和公式可別忘了回貼,大家互相幫助嘛!
一、指數(shù)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;
二、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;
三、芝麻量點公式
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;
四、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);
五、雙向成交量公式
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;
預(yù)測:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
{IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR3),COLORGREEN;}
預(yù)測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;
六、冷暖氣帶公式
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;
七、五條均線公式
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
聯(lián)系客服