日:=144;昨前:=1; 高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
顶点:=REF(HHV(H,日),昨前);
低点:=REF(LLV(L,日),昨前);
止盈:=高1-(高1-低1)*0.191;
回档:=高1-(高1-低1)*0.382;
平衡:=高1-(高1-低1)*0.5;
反弹:=高1-(高1-低1)*0.618;
建仓:=高1-(高1-低1)*0.809;
STICKLINE(ISNULL(REFX(&CLOSE,1)),顶点,顶点,100000,1),colorblue,LINETHICK2;
STICKLINE(ISNULL(REFX(&CLOSE,1)),止盈,止盈,100000,1),colorred;
STICKLINE(ISNULL(REFX(&CLOSE,1)),回档,回档,100000,1),coloryellow;
STICKLINE(ISNULL(REFX(&CLOSE,1)),平衡,平衡,100000,1),colorgreen;
STICKLINE(ISNULL(REFX(&CLOSE,1)),反弹,反弹,100000,1),colormagenta;
STICKLINE(ISNULL(REFX(&CLOSE,1)),建仓,建仓,100000,1),colorcyan;
STICKLINE(ISNULL(REFX(&CLOSE,1)),低点,低点,100000,1),colorred,LINETHICK2;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),顶点,'顶点'),COLORFFCC18;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),止盈,'0.191'),COLORFF18FF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),回档,'0.382'),COLOR18FF18;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),平衡,'0.5'),COLOR18CCFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),反弹,'0.618'),COLORFFFFFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),建仓,'0.809'),COLOR00CCFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),低点,'低点'),COLOR00CC00;
Z1:=EMA(CLOSE,5);
Z2:=EMA(Z1,5);
DRAWBAND(Z2,RGB(0,200,0),Z1,RGB(200,0,0));
Z3:=EMA(CLOSE,15);
Z4:=EMA(Z3,10);//www.fxjgsw.com
DRAWBAND(Z3,RGB(100,0,0),Z4,RGB(0,100,0));
买线:=ZIG(1,2);
卖线:=MA(买线,2);
STICKLINE(买线<卖线,H,L,0,0),colorgreen;
STICKLINE(买线<卖线,C,O,10,0),COLOR007700;
STICKLINE(买线<卖线,C,O,9,0),COLOR008E00;
STICKLINE(买线<卖线,C,O,8,0),COLOR009900;
STICKLINE(买线<卖线,C,O,7,0),COLOR00A600;
STICKLINE(买线<卖线,C,O,6,0),COLOR00B500;
STICKLINE(买线<卖线,C,O,5,0),COLOR00C600;
STICKLINE(买线<卖线,C,O,4,0),COLOR00D500;
STICKLINE(买线<卖线,C,O,3,0),COLOR00E600;
STICKLINE(买线>=卖线,H,L,1,0),COLOR0000FF;
STICKLINE(买线>=卖线,C,O,10,0),COLOR0000A3;
STICKLINE(买线>=卖线,C,O,9,0),COLOR0000B7;
STICKLINE(买线>=卖线,C,O,7,0),COLOR0000C8;
STICKLINE(买线>=卖线,C,O,6,0),COLOR0000D9;
STICKLINE(买线>=卖线,C,O,5,0),COLOR0000CD;
STICKLINE(买线>=卖线,C,O,4,0),COLOR0000E9;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000EA;
STICKLINE(买线>=卖线,C,O,2,0),COLOR0000FF;
MA3:=MA(CLOSE,2);//www.fxjgsw.com
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+
15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+
11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+
7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+
3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211;
牵牛线:=MA(CLOSE,26);
等待:=IF(MA3>辰星线,辰星线,MA3);
PARTLINE(等待,等待>REF(等待,1),RGB(255,90,0)),LINETHICK3;
PARTLINE(辰星线,辰星线>REF(辰星线,1),RGB(255,0,0),辰星线<REF(辰星线,1),RGB(0,255,0)),LINETHICK3;
PARTLINE(牵牛线,牵牛线>REF(牵牛线,1),RGB(255,0,255),牵牛线<REF(牵牛线,1),RGB(80,200,80)),LINETHICK3;
|
