一.亞平神線(主圖):
DRAWBAND(MA(CLOSE,120),RGB(85,20,30),MA(CLOSE,240),RGB(50,123,40));
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);{RGB(85,20,30) RGB(200,50,150)}
MA5:MA(CLOSE,5) COLORWHITE;
MA10:MA(CLOSE,10) COLORYELLOW;
MA20:MA(CLOSE,20) COLORGREEN;
MA30:MA(CLOSE,30) COLORRED;
MA60:MA(CLOSE,60),COLORBLUE LINETHICK2;
MA120:MA(CLOSE,120),COLORMAGENTA LINETHICK1;
MA240:MA(CLOSE,240) COLORGRAY LINETHICK1;
假陽(yáng):=OPEN<CLOSE AND CLOSE<REF(CLOSE,1);
STICKLINE(假陽(yáng),OPEN,CLOSE,0.5,0),COLORLIBLUE;
假陰:=OPEN>CLOSE AND CLOSE>REF(OPEN,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(假陰,OPEN,CLOSE,0.5,0),COLORRED;
AA:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));
BB:=REF(COUNT(C<MA60,AA)=AA,1);
CC:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
芙蓉出水:=BB AND CC,COLOR00FF00;
STICKLINE(芙蓉出水,O,C,4,0),LINETHICK2,COLORFF00FF;
一穿三:=MA5>O AND MA10>O AND MA30>O AND MA5<C AND MA10<C AND MA30<C AND CLOSE>OPEN ;
STICKLINE(一穿三,O,C,2,0),COLORRED;
實(shí)體中位:IF(CLOSE>=OPEN,OPEN+(CLOSE-OPEN)/2,CLOSE+(OPEN-CLOSE)/2), COLORRED,NODRAW;
漲幅:=(MAX(O,C)-MIN(O,C))/REF(C,1)>=0.03;
STICKLINE( 漲幅,實(shí)體中位,實(shí)體中位,4,2),LINETHICK2,COLORYELLOW;
C2:=REF(C,1);
漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(漲停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(漲停,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
DRAWICON(CROSS(MA5,MA10),MA5,1);
STICKLINE( C<MA60,H,L,0,0),COLOR777777;
STICKLINE( C<MA60,O,C,2.7,1),COLOR777777;
{
綠色K線表示跌停板
黃色K線表示漲停板
洋紅色K線表示芙蓉出水
紅色K線表示一陽(yáng)穿三線
};
二.VOL-虛擬量(副圖)
DRAWBAND(MA(VOL,5),RGB(155,50,50),MA(VOL,60),RGB(0,0,220));
虛擬量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虛擬量,0,-1,-1);
VOLUME:VOL,VOLSTICK;
雙倍量:=VOL>MA(VOL,5)*2 AND VOL>MA(VOL,10)*2 AND CLOSE>OPEN;
STICKLINE(雙倍量,0,VOL,0.5,0),COLORRED;
VOL5:MA(VOL,5) COLORWHITE;
VOL10:MA(VOL,10) COLORYELLOW;
VOL20:MA(VOL,20) COLORGREEN;
三.L3能量(副圖)
A1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動(dòng)買(mǎi)盤(pán):=IF(CLOSE>OPEN,A1*(HIGH-LOW),IF(CLOSE<OPEN,A1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED NODRAW;
主動(dòng)賣盤(pán):=IF(CLOSE>OPEN,A1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,A1*(HIGH-LOW),VOL/2)),COLORGREEN NODRAW;
L3:SUM((主動(dòng)買(mǎi)盤(pán)-主動(dòng)賣盤(pán))/CAPITAL,20)*1000 LINETHICK;
DRAWBAND(MA(L3,5),RGB(155,50,50),MA(L3,10),RGB(83,123,68));
STICKLINE(L3>=0,0,L3,1.6,0),COLOR000088;
STICKLINE(L3>=0,0,L3,1.2,0),COLOR0000AA;
STICKLINE(L3>=0,0,L3,0.7,0),COLOR0000CC;
STICKLINE(L3>=0,0,L3,0.1,0),COLOR0000FF;
STICKLINE(L3<0,0,L3,1.6,0),COLOR888800;
STICKLINE(L3<0,0,L3,1.2,0),COLORAAAA00;
STICKLINE(L3<0,0,L3,0.7,0),COLORCCCC00;
STICKLINE(L3<0,0,L3,0.1,0),COLORFFFF00;
MA05:MA(L3,5) COLORWHITE;
MA10:MA(L3,10) COLORYELLOW;
MA20:MA(L3,20) COLORGREEN LINETHICK1;