要发就发点给力的,祝大家新年都有好的收成。
{变色均线}
MA5:MA(C,5),COLOR00FF00,LINETHICK1;
MA10:MA(C,10),COLOR00FF00,LINETHICK1;
MA20:MA(C,20),COLOR14D214,LINETHICK2;
MA30:MA(C,30),COLORCYAN,LINETHICK2;
MA60:MA(C,60),COLORFFAA00,LINETHICK2;
MA90:MA(C,90),COLORFF6633,LINETHICK2;
MA120:MA(C,120),COLOR776600,LINETHICK2;
MA250:MA(C,250),LINETHICK2;
IF(MA(C,5)>=REF(MA(C,5),1),MA(C,5),DRAWNULL),COLOR330099,LINETHICK2;
IF(MA(C,10)>=REF(MA(C,10),1),MA(C,10),DRAWNULL),COLOR330099,LINETHICK2;
IF(MA(C,20)>=REF(MA(C,20),1),MA(C,20),DRAWNULL),COLOR330099,LINETHICK2;
IF(MA(C,30)>=REF(MA(C,30),1),MA(C,30),DRAWNULL),COLORRED,LINETHICK2;
IF(MA(C,60)>=REF(MA(C,60),1),MA(C,60),DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MA(C,90)>=REF(MA(C,90),1),MA(C,90),DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA(C,120)>=REF(MA(C,120),1),MA(C,120),DRAWNULL),COLORBC10FF,LINETHICK1;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
QS1:=IF(C>MA(C,4),1,0);
QS2:=IF(C<MA(C,4),-1,0);
QS3:=IF(MA(C,5)>REF(MA(C,5),1),1,0);
QS4:=IF(MA(C,5)<REF(MA(C,5),1),-1,0);
QS:=QS1+QS2+QS3+QS4;
STICKLINE((QS=-2 AND C<O),H,L,0,0),COLOR00FF00;
STICKLINE((QS=-2 AND C<O),OPEN,CLOSE,4,0),COLOR007900;
STICKLINE((QS=-2 AND C<O),OPEN,CLOSE,3,1),COLOR00A200;
STICKLINE((QS=-2 AND C<O),OPEN,CLOSE,2,0),COLOR00D600;
STICKLINE((QS=-2 AND C<O),OPEN,CLOSE,1,0),COLOR00FF00;
STICKLINE((QS=-2 AND C>O),H,L,0,0),COLOR53A9FF;
STICKLINE((QS=-2 AND C>O),O,C,4,0),COLOR003E7B;
STICKLINE((QS=-2 AND C>O),O,C,3,1),COLOR0053A6;
STICKLINE((QS=-2 AND C>O),O,C,2,0),COLOR006AD5;
STICKLINE((QS=-2 AND C>O),O,C,1,0),COLOR2492FF;
STICKLINE((QS=0 AND C<O),H,L,0,0),COLORFFFFFF;
STICKLINE((QS=0 AND C<O),O,C,4,0),COLORBBBBBB;
STICKLINE((QS=0 AND C<O),O,C,3,1),COLORCACACA;
STICKLINE((QS=0 AND C<O),O,C,2,0),COLORF6F6F6;
STICKLINE((QS=0 AND C<O),O,C,1,0),COLORFFFFFF;
STICKLINE((QS=0 AND C>O),H,L,0,0),COLOR00FFFF;
STICKLINE((QS=0 AND C>O),O,C,4,0),COLOR008888;
STICKLINE((QS=0 AND C>O),O,C,3,1),COLOR00BFBF;
STICKLINE((QS=0 AND C>O),O,C,2,0),COLOR00DBDB;
STICKLINE((QS=0 AND C>O),O,C,1,0),COLOR00F0F0;
STICKLINE((QS=2 AND C<O),H,L,0,0),COLORFF00FF;
STICKLINE((QS=2 AND C<O),O,C,4,0),COLORBB00BB;
STICKLINE((QS=2 AND C<O),O,C,3,1),COLORFF5BFF;
STICKLINE((QS=2 AND C<O),O,C,2,0),COLORF900F9;
STICKLINE((QS=2 AND C<O),O,C,1,0),COLORFF66FF;
STICKLINE((QS=2 AND C>O),H,L,0,0),COLOR0000FF;
STICKLINE((QS=2 AND C>O),O,C,4,0),COLOR00007B;
STICKLINE((QS=2 AND C>O),O,C,3,1),COLOR000097;
STICKLINE((QS=2 AND C>O),O,C,2,0),COLOR0000C4;
STICKLINE((QS=2 AND C>O),O,C,1,0),COLOR0000EC;
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC := MA(CLOSE,21);
UPPERC:= MIDC + 2*STD(C,21);
LOWERC:= MIDC - 2*STD(C,21);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
BBC:=FORCAST(BBA,3);
LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));
STICKLINE(LIFENGCYC>0,C,O,2,0),COLOR10ABFF;
STICKLINE(LIFENGCYC>0,C,O,1.5,0),COLOR10D0FF;
STICKLINE(LIFENGCYC>0,C,O,1,0),COLOR10FFFF;
DRAWTEXT(LIFENGCYC>0,LOW*0.99,'☆'),COLORFFFFFF;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'▼'),COLORFFFFFF; |