以下是同花顺频繁变色买卖源码副图

AA1:=AMOUNT/V;

BB1:=L<AA1*0.96;

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;

EE1:=V<MA(V,5)*1.5;

抢反弹:=BB1 AND CC1 AND DD1 AND EE1;

DRAWTEXT(抢反弹,LOW* 0.99,’▲抢反弹’),colormagenta;

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;

DRAWTEXT(Var19,L,’▲加’),colorred;

Var1A:=REF(Var1 OR Var2 OR Var3 OR Var4 OR Var5 OR Var6 OR Var7 OR

Var8 OR Var9 OR VarA OR VarB OR VarC,1) AND VarD;

DRAWTEXT(Var1A,H*1.02,’▼逃’),coloryellow;

ma3:=MA(C,3),colorfff000;

MA6:=MA(C,6),colorff99ff;

ma9:=MA(C,9),color00ff00;

MA10:MA(C,14),coloryellow;

MA20:MA(C,25),colorred;

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),Culor00FF00;

STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,8,0),Culor007900;

STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,6,1),Culor00A200;

STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,4,0),Culor00D600;

STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,2,0),Culor00FF00;

STICKLINE((qs=-2 AND C>O),H,L,0,0),Culor53A9FF;

STICKLINE((qs=-2 AND C>O),O,C,8,0),Culor003E7B;

STICKLINE((qs=-2 AND C>O),O,C,6,1),Culor0053A6;

STICKLINE((qs=-2 AND C>O),O,C,4,0),Culor006AD5;

STICKLINE((qs=-2 AND C>O),O,C,2,0),Culor2492FF;

STICKLINE((qs=0 AND C<O),H,L,0,0),CulorFFFFFF;

STICKLINE((qs=0 AND C<O),O,C,8,0),CulorBBBBBB;

STICKLINE((qs=0 AND C<O),O,C,6,1),CulorCACACA;

STICKLINE((qs=0 AND C<O),O,C,4,0),CulorF6F6F6;

STICKLINE((qs=0 AND C<O),O,C,2,0),CulorFFFFFF;

STICKLINE((qs=0 AND C>O),H,L,0,0),Culor00FFFF;

STICKLINE((qs=0 AND C>O),O,C,8,0),Culor008888;

STICKLINE((qs=0 AND C>O),O,C,6,1),Culor00BFBF;

STICKLINE((qs=0 AND C>O),O,C,4,0),Culor00DBDB;

STICKLINE((qs=0 AND C>O),O,C,2,0),Culor00F0F0;

STICKLINE((qs=2 AND C<O),H,L,0,0),CulorFF00FF;

STICKLINE((qs=2 AND C<O),O,C,8,0),CulorBB00BB;

STICKLINE((qs=2 AND C<O),O,C,6,1),colorFF5BFF;

STICKLINE((qs=2 AND C<O),O,C,4,0),colorF900F9;

STICKLINE((qs=2 AND C<O),O,C,2,0),CulorFF66FF;

STICKLINE((qs=2 AND C>O),H,L,0,0),Culor0000FF;

STICKLINE((qs=2 AND C>O),O,C,8,0),Culor00007B;

STICKLINE((qs=2 AND C>O),O,C,6,1),Culor000097;

STICKLINE((qs=2 AND C>O),O,C,4,0),Culor0000C4;

STICKLINE((qs=2 AND C>O),O,C,2,0),Culor0000EC;

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),’▼顶’),colorwhite;

VAR3:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;

VAR4:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;

VAR5:=VAR3 AND VAR4;

DRAWTEXT(VAR5,LOW,’★ ‘),colormagenta ;

极品底:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,50,0),colorwhite;

DRAWTEXT(极品底=50,H+0.1,’★ ‘),colorgreen;

★关注:MA(C,5),colorwhite;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。