1、黃金模式日線均線:
ZF:=(C-REF(C,1))/REF(C,1);
TJ:=ZF>=4/100 OR ZF<=-4/100;
STICKLINE(TJ AND CLOSE>OPEN,C,O,1.1,0
),COLORYELLOW;
STICKLINE(TJ AND OPEN>=CLOSE,C,O,1.1,0
),COLORBLUE;
TJ2:=ZF>=7/100 OR ZF<=-7/100;
STICKLINE(TJ2 AND CLOSE>OPEN,C,O,1.1,0
),COLORRED;
STICKLINE(TJ2 AND OPEN>=CLOSE,C,O,1.1,0
),COLORGREEN;
工作:EMA(CLOSE,17),LINETHICK2,COLORGREEN;
二號線:EMA(CLOSE,25),LINETHICK2;
控盤均線:EMA(CLOSE,N),COLORWHITE;
{暗馬線:EMA(CLOSE,45);}
{控盤均線:EMA(C,N1),COLORFF00FF;}
生命線:EMA(CLOSE,453),LINETHICK2,COLORYELLOW;
九號線:EMA(CLOSE,90),LINETHICK2,COLORWHITE;
A1X:(工作-REF(工作,1))/REF(工作,1)*100,NODRAW;
IF(A1X>=0,工作,DRAWNULL),COLORRED,LINETHICK2;
A2X:(二號線-REF(二號線,1))/REF(二號線,1)*100,NODRAW;
IF(A1X>=0,二號線,DRAWNULL),COLORRED,LINETHICK2;
A3X:(控盤均線-REF(控盤均線,1))/REF(控盤均線,1)*100,NODRAW;
IF(A3X>=0,控盤均線,DRAWNULL),COLORFF00FF,LINETHICK2;
DRAWICON( CROSS(工作,二號線) ,工作,5),COLORRED;
DRAWICON( CROSS(二號線,工作) ,二號線,6),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
>O ,H,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=3 AND C
>O ,H,1),COLORRED;
DRAWICON(V/REF(MA(VOL,5),1)>=5 AND C
>O AND V*100/CAPITAL>=10
,H*1.02,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
>O ,L,1),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
<O ,H,6),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
<O ,L,2),COLORWHITE;
2、黃金模式分時:
M21:EMA(CLOSE,21);
控盤均線:MA(CLOSE,N),COLORFF00FF;
工作:EMA(CLOSE,55),LINETHICK2,COLORGREEN;
九號:EMA(CLOSE,103),LINETHICK2,COLORWHITE;
生命:EMA(CLOSE,453),LINETHICK2,COLORYELLOW;
A1X:(工作-REF(工作,1))/REF(工作,1)*100,NODRAW;
A2X:(生命-REF(生命,1))/REF(生命,1)*100,NODRAW;
A3X:(M21-REF(M21,1))/REF(M21,1)*100,NODRAW;
A4X:(九號-REF(九號,1))/REF(九號,1)*100,NODRAW;
IF(A1X>=0,工作,DRAWNULL),COLORRED,LINETHICK2;
IF(A2X>=0,生命,DRAWNULL),COLORRED,LINETHICK2;
IF(A3X>=0,M21,DRAWNULL),COLORGREEN,LINETHICK1;
IF(A4X>=0,九號,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON( CROSS(工作,九號)
,工作,5),COLORRED;
DRAWICON( CROSS(九號,工作) ,九號,6),COLORRED;
DRAWICON( CROSS(M21,九號) ,M21,1),COLORRED;
DRAWICON( CROSS(九號,M21) ,九號,2),COLORRED;
3、職業(yè)操盤:
VAR0:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20))/3;
操盤決策線:MA(CLOSE,60),LINETHICK2;
積極操盤區(qū)域:IF(VAR0>REF(VAR0,2),VAR0,DRAWNULL), COLORRED,
LINETHICK2;
持幣觀望區(qū)域:IF(VAR0<REF(VAR0,2),VAR0,DRAWNULL),
COLORYELLOW, LINETHICK2;
A2X:(操盤決策線-REF(操盤決策線,1))/REF(操盤決策線,1)*100,NODRAW;
IF(A2X>=0,操盤決策線,DRAWNULL),COLORRED,LINETHICK2;
4、短線趨勢之王
CG:MA(C,17);
STICKLINE(CLOSE>CG,OPEN,CLOSE,6,1),
COLORRED;
STICKLINE(CLOSE=CG,OPEN,CLOSE,6,1),
COLORRED;
STICKLINE(CLOSE>CG,LOW,OPEN,0.8,1),
COLORRED;
STICKLINE(CLOSE=CG,LOW,OPEN,0.8,1),
COLORRED;
STICKLINE(CLOSE>CG,CLOSE,HIGH,0.8,1),COLORRED;
STICKLINE(CLOSE=CG,CLOSE,HIGH,0.8,1),COLORRED;
STICKLINE(CLOSE<CG,CLOSE,OPEN,6,0),
COLORGREEN;
STICKLINE(CLOSE=CG,CLOSE,OPEN,6,0),
COLORGREEN;
STICKLINE(CLOSE<CG,OPEN,LOW,0.8,0),
COLORGREEN;
STICKLINE(CLOSE=CG,OPEN,LOW,0.8,0),
COLORGREEN;
STICKLINE(CLOSE<CG,HIGH,CLOSE,0.8,0),COLORGREEN;
STICKLINE(CLOSE=CG,HIGH,CLOSE,0.8,0),COLORGREEN;
5、分時抄底
BIAS1:=((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100);
BIAS2:=((CLOSE-MA(CLOSE,12))/(MA(CLOSE,12)))*(100);
BIAS3:=((CLOSE-MA(CLOSE,24))/(MA(CLOSE,24)))*(100);
BIAS:=(BIAS1+(2)*(BIAS2)+(3)*(BIAS3))/(6);
乖離:=MA(BIAS,3);
探:STICKLINE((乖離<(-6)) AND
(乖離>=(-12)),48,52,6,1),COLOR33FFCC;
準(zhǔn)備走:STICKLINE((乖離>6) AND
(乖離<12),48,52,6,1),COLORFF0000;
STICKLINE((乖離<(-12)) AND
(乖離>=(-18)),0,35,4,0),COLOR33CCCC;
{(乖離<(-24)) AND
(乖離>=(-30)),COLOR3399CC;}
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=(EMA(((CLOSE-VARA)/(VARB-VARA))*(4),4))*(25);
底域:STICKLINE((VARC<10) AND
(((100)*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))>97),0,15,5,0),COLORRED;
頂域:STICKLINE((VARC>90),90,100,5,0),COLORYELLOW;
頂域1:STICKLINE((CROSS(90,VARC)),90,100,5,0),COLORRED;
VARD:=87.5;
VARE:=(((VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4)))*(4))*(25);
出貨:DRAWTEXT(IF(CROSS(VARD,VARC),87,0),35,'↑'),COLORFF0000;
DRAWTEXT(IF(CROSS(VARD,VARC),87,0),24,'跑'),COLORFF0000;
賣:DRAWTEXT(IF(CROSS(VARC,VARE) AND
(VARC>87),87,0),50,'↑'),COLOR0000FF;
DRAWTEXT(IF(CROSS(VARC,VARE) AND
(VARC>87),87,0),35,'賣'),COLOR0000FF;
VAR3:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
趨勢:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));
散:=EMA(((VAR3-VAR4)/(VAR5-VAR4))*(100),13);
看多:IF((趨勢>散),趨勢,散),LINETHICK3,COLORRED;
看空:IF((趨勢<散),趨勢,散),COLORFF0000,LINETHICK2;
散戶:EMA(((VAR3-VAR4)/(VAR5-VAR4))*(100),13),COLORFF00FF,LINETHICK2;
新莊:EMA((0.66699999)*(REF(散戶,1))+(0.333)*(散戶),1),COLORFFFF00;
底:IF((趨勢<=5),17,0),COLORYELLOW;
見底:IF(CROSS(趨勢,10) AND
(新莊<散戶),31,0),COLORGREEN;
DRAWTEXT(CROSS(散戶,新莊) AND (趨勢>散戶) AND
(散戶<15),新莊*0.7,'絕'),COLORRED;
IF(CROSS(趨勢,92),80,90),COLORFF0000;
V5:=MA(VOL,5);
V10:=MA(VOL,10);
A2:=(COUNT(((VOL<V10) OR
(VOL<V5)),4)>=4-1);
A3:=(VOL>(V5)*(1.3)) AND
(CLOSE<(REF(CLOSE,1))*(1.4));
A4:=(CLOSE<((HHV(HIGH,18))*(75))/(100)) AND
(CLOSE<(LLV(CLOSE,6))*(1.4)) AND
(CLOSE<(LLV(REF(LOW,10),50))*(0.95999997));
A5:=((VOL<V5) OR (VOL<V10));
A6:=BARSLAST(REF(A5,1));
A7:=(CLOSE<(REF(CLOSE,1))*(0.90499997));
JBM:=CLOSE;
A8:=A5 AND A4 AND REF(A3,1) AND REF(A2,A6+1) AND (COUNT(A7,20)=0)
AND JBM;
金山現(xiàn):IF(A8,30,0),COLOR0000FF;
{CROSS(A8,0.1);}
50,POINTDOT,COLORWHITE;
6、成交金額
AMO:AMOUNT,VOLSTICK;
V5:MA(AMO,M1);
V10:MA(AMO,10);
{V20:=MA(VOLUME,20);}
交量比:V/MA(V,5);
DRAWICON( CROSS(V5,V10) ,HIGH*12,1),COLORRED;
DRAWICON( CROSS(V10,V5) ,HIGH*12,2),COLORRED;
六換:REF(DYNAINFO(37),1)+REF(DYNAINFO(37),2)+REF(DYNAINFO(37),3)+REF(DYNAINFO(37),4)+REF(DYNAINFO(37),5)+DYNAINFO(37),COLORYELLOW;
十換:REF(DYNAINFO(37),1)+REF(DYNAINFO(37),2)+REF(DYNAINFO(37),3)+REF(DYNAINFO(37),4)+REF(DYNAINFO(37),5)+REF(DYNAINFO(37),10)+REF(DYNAINFO(37),9)+REF(DYNAINFO(37),6)+REF(DYNAINFO(37),7)+REF(DYNAINFO(37),8);
市值:FINANCE(40)/100000000,COLORRED;
市贏:DYNAINFO(39);
手:V*100/CAPITAL;
盤:CAPITAL/1000000;
量比:DYNAINFO(17),COLORRED;
外內(nèi):BUYVOL/SELLVOL;
7、決策均線
ZF:=(C-REF(C,1))/REF(C,1);
TJ:=ZF>=4/100 OR ZF<=-4/100;
STICKLINE(TJ AND CLOSE>OPEN,C,O,1.1,0
),COLORYELLOW;
STICKLINE(TJ AND OPEN>=CLOSE,C,O,1.1,0
),COLORBLUE;
TJ2:=ZF>=7/100 OR ZF<=-7/100;
STICKLINE(TJ2 AND CLOSE>OPEN,C,O,1.1,0
),COLORRED;
STICKLINE(TJ2 AND OPEN>=CLOSE,C,O,1.1,0
),COLORGREEN;
MA5:MA(CLOSE,M1),LINETHICK2,COLORWHITE;
MA10:MA(CLOSE,M2),LINETHICK2,COLORYELLOW;
MA20:MA(CLOSE,M3);
MA30:MA(CLOSE,M4),LINETHICK3,COLORGREEN;
MA60:MA(CLOSE,M5),LINETHICK3,COLORBLUE;
MA120:MA(CLOSE,M6),LINETHICK3,COLORYELLOW;
下限:IF(BARSLAST(TJ),IF(REF(H,BARSLAST(TJ)+1)<REF(L,BARSLAST(TJ)),
REF(H,BARSLAST(TJ)+1),REF(LOW,BARSLAST(TJ))),DRAWNULL),COLORWHITE;
上限:IF(BARSLAST(TJ),IF(REF(L,BARSLAST(TJ)+1)>REF(H,BARSLAST(TJ)),
REF(L,BARSLAST(TJ)+1),REF(HIGH,BARSLAST(TJ))),DRAWNULL),COLORRED;
中線:(下限+上限)/2,COLORGREEN;
六一八:(上限-下限)*0.382+下限,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=5 ,H*1.03,'5'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=8 ,H*1.03,'8'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=13 ,H*1.03,'13'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=21,H*1.03,'21'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=34,H*1.03,'34');
DRAWTEXT(CURRBARSCOUNT=55,H*1.03,'55');
DRAWTEXT(CURRBARSCOUNT=89,H*1.03,'89');
DRAWTEXT(CURRBARSCOUNT=144,H*1.03,'144');
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
>O ,H,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=3 AND C
>O ,H,1),COLORRED;
DRAWICON(V/REF(MA(VOL,5),1)>=5 AND C
>O AND V*100/CAPITAL>=10
,H*1.02,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
>O ,L,1),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
<O ,H,6),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
<O ,L,2),COLORWHITE;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWTEXT( CROSS(J,D),L,'K'),COLORYELLOW;
A1X:(MA10-REF(MA10,1))/REF(MA10,1)*100,NODRAW;
IF(A1X>=0,MA10,DRAWNULL),COLORRED,LINETHICK2;
A2X:(MA30-REF(MA30,1))/REF(MA30,1)*100,NODRAW;
IF(A2X>=0,MA30,DRAWNULL),COLORRED,LINETHICK2;
A3X:(MA60-REF(MA60,1))/REF(MA60,1)*100,NODRAW;
IF(A3X>=0,MA60,DRAWNULL),COLORRED,LINETHICK2;
8、多空布林
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;
UPR:BBI+P*STD(BBI,N),COLORYELLOW;
DWN:BBI-P*STD(BBI,N),COLORFF00FF ;
TR :=
SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND
HD>LD,HD,0),12);
DMM:= SUM(IF(LD>0 AND
LD>HD,LD,0),12);
PDI:= DMP*100/TR;
MDI:= DMM*100/TR;
PP1:= PDI;
PP2:= MDI;
DRAWICON( CROSS(PDI,MDI) ,LOW,5),COLORRED;
DRAWICON( CROSS(MDI,PDI) ,HIGH,6),COLORRED;
DRAWTEXT( MDI>PDI ,CLOSE*1,'空'),COLOR00FF00;
P1:=(HIGH + LOW + CLOSE)/3;
CCI1:=(P1-MA(P1,12))*100/(1.5*AVEDEV(P1,12)),COLORWHITE;
{DRAWTEXT( CROSS(100,CCI1) ,HIGH,'賣'),COLOR00FF00; }
ZF:=(C-REF(C,1))/REF(C,1);
TJ:=ZF>=4/100 OR ZF<=-4/100;
STICKLINE(TJ AND CLOSE>OPEN,C,O,1.1,0
),COLORYELLOW;
STICKLINE(TJ AND OPEN>=CLOSE,C,O,1.1,0
),COLORBLUE;
TJ2:=ZF>=7/100 OR ZF<=-7/100;
STICKLINE(TJ2 AND CLOSE>OPEN,C,O,1.1,0
),COLORRED;
STICKLINE(TJ2 AND OPEN>=CLOSE,C,O,1.1,0
),COLORGREEN;
下限:IF(BARSLAST(TJ),IF(REF(H,BARSLAST(TJ)+1)<REF(L,BARSLAST(TJ)),
REF(H,BARSLAST(TJ)+1),REF(LOW,BARSLAST(TJ))),DRAWNULL),COLORWHITE;
上限:IF(BARSLAST(TJ),IF(REF(L,BARSLAST(TJ)+1)>REF(H,BARSLAST(TJ)),
REF(L,BARSLAST(TJ)+1),REF(HIGH,BARSLAST(TJ))),DRAWNULL),COLORYELLOW;
中線:(下限+上限)/2,COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=5 ,H*1.03,'5'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=8 ,H*1.03,'8'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=13 ,H*1.03,'13'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=21,H*1.03,'21'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=34,H*1.03,'34');
DRAWTEXT(CURRBARSCOUNT=55,H*1.03,'55');
DRAWTEXT(CURRBARSCOUNT=89,H*1.03,'89');
DRAWTEXT(CURRBARSCOUNT=144,H*1.03,'144');
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWTEXT( CROSS(J,D),L,'K'),COLORYELLOW;
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
>O ,H,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=3 AND C
>O ,H,1),COLORRED;
DRAWICON(V/REF(MA(VOL,5),1)>=5 AND C
>O AND V*100/CAPITAL>=10
,H*1.02,5),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
>O ,L,1),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=5 AND C
<O ,H,6),COLORRED;
DRAWICON( V/REF(MA(VOL,5),1)>=2.5 AND C
<O ,L,2),COLORWHITE;
9、新macd
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORFF00FF;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
10、量能異動