【精確頂?shù)住?1
2009-04-09 19:51:25| 分類: 默認(rèn)分類 | 標(biāo)簽: |字號大中小 訂閱
JY0:=(2*C+H+L)/4;
流通盤:=IF(C<300,CAPITAL,1200000000);
JZ0:=V/流通盤*100;
JA1:=HHVBARS(H,55);
JA2:=SUM(JY0,JA1);
JA3:=SUM(JY0,2*JA1);
頂A1:=(JA2-JA3)/C;
JA4:=HHVBARS(H,55);
JA5:=SUM(JZ0,JA4);
JA6:=SUM(JZ0,2*JA4);
頂A2:=(JA5-JA6);
頂A3:= (頂A1+頂A2)/2;
頂A4:= MA(頂A3,1)+25;
JB1:=HHVBARS(H,120);
JB2:=SUM(JY0,JB1);
JB3:=SUM(JY0,2*JB1);
頂B1:=(JB2-JB3)/C;
JB4:=HHVBARS(H,120);
JB5:=SUM(JZ0,JB4);
JB6:=SUM(JZ0,2*JB4);
頂B2:=(JB5-JB6);
頂B3:= (頂B1+頂B2)/2;
頂B4:= MA(頂B3,5)+25;
DA1:=LLVBARS(L,65);
DA2:=SUM(JY0,DA1);
DA3:=SUM(JY0,2*DA1);
底A1:=(DA3-DA2)/C;
DA4:=LLVBARS(L,65);
DA5:=SUM(JZ0,DA4);
DA6:=SUM(JZ0,2*DA4);
底A2:=(DA6-DA5);
底A3:= (底A1+底A2)/2;
底A4:= MA(底A3,1)-3;
DB1:=LLVBARS(L,850);
DB2:=SUM(JY0,DB1);
DB3:=SUM(JY0,2*DB1);
底B1:=(DB3-DB2)/C;
DB4:=LLVBARS(L,850);
DB5:=SUM(JZ0,DB4);
DB6:=SUM(JZ0,2*DB4);
底B2:=(DB6-DB5);
底B3:= (底B1+底B2)/2;
底B4:= MA(底B3,5)-3;
STICKLINE(頂B4>22,13,22,10,0),COLOR5555AA;
STICKLINE(頂A4>22,15,22,10,0),COLOR885588;
STICKLINE(底B4<0,7,0,10,0),COLOR883333;
STICKLINE(底A4<0,5,0,10,0),COLOR557733;
小頂:=IF(頂A4>-3,頂A4,-3),COLORMAGENTA;
大頂: IF(頂B4>22,頂B4,22),COLORRED,LINETHICK2;
IF(頂A4>22,頂A4,22),COLORMAGENTA;
小底:= IF(底A4<25,底A4,25);
IF(底A4<0,底A4,0),COLORCYAN;
大底: IF(底B4<0,底B4,0),COLORGREEN,LINETHICK2;
強(qiáng)弱分界:STICKLINE(C>0,11,11,5,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR,14,'切切!\n右側(cè)\n交易!'),SHIFT1,COLORYELLOW;
頂?shù)?=(小頂+小底)/2;
頂?shù)拙€1:= EMA(頂?shù)?3);
頂?shù)拙€2: EMA(頂?shù)?21);
頂?shù)拙€3:= EMA(頂?shù)拙€2,34);
STICKLINE(頂?shù)拙€1>頂?shù)拙€2,頂?shù)拙€1,頂?shù)拙€2,0,0),COLORRED;
STICKLINE(頂?shù)拙€1<頂?shù)拙€2,頂?shù)拙€1,頂?shù)拙€2,0,0),COLORBLUE;
PARTLINE(頂?shù)拙€1>=REF(頂?shù)拙€1,1),頂?shù)拙€1),COLORRED;
PARTLINE(頂?shù)拙€1<REF(頂?shù)拙€1,1),頂?shù)拙€1),COLORCYAN;
PARTLINE(頂?shù)拙€2>=REF(頂?shù)拙€2,1),頂?shù)拙€2),COLORYELLOW;
PARTLINE(頂?shù)拙€2<REF(頂?shù)拙€2,1),頂?shù)拙€2),COLORBBBBBB;
PARTLINE(頂?shù)拙€3>=REF(頂?shù)拙€3,1),頂?shù)拙€3),COLORMAGENTA,LINETHICK2;
PARTLINE(頂?shù)拙€3<REF(頂?shù)拙€3,1),頂?shù)拙€3),COLORBLUE,LINETHICK2;
DRAWTEXT(FILTER(頂A4>22,10),18,'小頂'),COLORCYAN;
DRAWTEXT(FILTER(頂B4>22,10),20,'大頂'),COLORYELLOW;
DRAWTEXT(FILTER(底A4<0,12),4,'小底'),COLORWHITE;
DRAWTEXT(FILTER(底B4<0,12),6,'大底'),COLORGREEN;