收价:=1000*CLOSE/INDEXC;
高价:=1000*HIGH/INDEXH;
低价:=1000*LOW/INDEXL;
开价:=1000*OPEN/INDEXO;
STICKLINE(收价 =开价,开价,收价,2,0),COLORRED;
STICKLINE(收价 =开价,高价,收价,0,0),COLORRED;
STICKLINE(收价 =开价,开价,低价,0,0),COLORRED;
STICKLINE(开价 =收价,收价,开价,2,0),COLORCYAN;
STICKLINE(开价 =收价,收价,低价,0,0),COLORCYAN;
STICKLINE(开价 =收价,开价,高价,0,0),COLORCYAN;
N:=90;
DAY1:=BARSLAST(CURRBARSCOUNT=180);
低:=CONST(IF(ISLASTBAR=1,LLV(低价,DAY1),0));
高:=CONST(IF(ISLASTBAR=1,HHV(高价,DAY1),0));
差值:=CONST(IF(ISLASTBAR=1,高-低,0));
阻 1:=CONST(IF(ISLASTBAR=1,低+差值*0.191,0));
阻 2:=CONST(IF(ISLASTBAR=1,低+差值*0.382,0));
阻 3:=CONST(IF(ISLASTBAR=1,低+差值*0.5,0));
阻 4:=CONST(IF(ISLASTBAR=1,低+差值*0.618,0));
阻 5:=CONST(IF(ISLASTBAR=1,低+差值*0.809,0));
DAY2:=CURRBARSCOUNT
X7:IF(DAY2,高,DRAWNULL),COLORFFFF00;
X6:IF(DAY2,阻 5,DRAWNULL),COLOR0FF0FF;
X5:IF(DAY2,阻 4,DRAWNULL),COLOR00FF00;
X4:=IF(DAY2,阻 3,DRAWNULL),COLOR0000FF;
X3:IF(DAY2,阻 2,DRAWNULL),COLOR00FFFF;
X2:IF(DAY2,阻 1,DRAWNULL),COLORFF00FF;
M1:=5;M2:=10;M3:=20;M4:=30;
十字星:=CLOSE=OPEN;
多方炮:=REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN;
出水芙蓉:=(OPEN EMA(C,20)OROPEN EMA(C,40)OROPEN EMA(C,60))AND(C MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30) 1.2ANDC/REF(C,1) 1.049);
上升三部曲:=REF(CLOSE,4)/REF(OPEN,4) 1.03ANDREF(CLOSE,3) REF(OPEN,3)ANDREF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)AND
REF(LOW,4) REF(LOW,3)ANDREF(LOW,4) REF(LOW,2)ANDREF(LOW,4) REF(LOW,1)ANDREF(HIGH,4) REF(HIGH,3)ANDREF(HIGH,4) REF(HIGH,2)AND
REF(HIGH,4) REF(HIGH,1)ANDCLOSE/OPEN 1.03ANDCLOSE REF(CLOSE,4);
曙光初现:=REF(CLOSE,1)/REF(OPEN,1) 0.97ANDCLOSE/OPEN 1.03ANDOPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1);
DRAWTEXT(十字星,HIGH, ←十字星 ),LINETHICK2,COLORYELLOW;
DRAWTEXT(多方炮,HIGH, ←多方炮底升中升顶见顶 ),LINETHICK2,COLORYELLOW;
DRAWTEXT(出水芙蓉,HIGH, ←出水芙蓉 ),LINETHICK2,COLORYELLOW;
DRAWTEXT(上升三部曲,HIGH, ←上升三部曲 ),LINETHICK2,COLORYELLOW;
DRAWTEXT(曙光初现,HIGH, ←曙光初现 ),LINETHICK2,COLORYELLOW;
MA5:MA(CLOSE,M1),LINETHICK2;
MA10:MA(CLOSE,M2),LINETHICK2;
MA20:MA(CLOSE,M3),LINETHICK2;
MA30:MA(CLOSE,M4),LINETHICK2;
IF(MA5 =REF(MA5,1)ANDMA5 =MA10,MA5,DRAWNULL),COLORRED,LINETHICK2;
IF(MA10 =REF(MA10,1)ANDMA10 =MA20,MA10,DRAWNULL),COLORRED,LINETHICK2;
IF(MA20 =REF(MA20,1)ANDMA20 =MA30,MA20,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(MA5,MA10),MA5, ○ ),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(MA10,MA20),MA10, ◎ ),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(MA20,MA30),MA20, ● ),LINETHICK2,COLORYELLOW;