CTA1:=EMA(CLOSE,12)-EMA(CLOSE,26);
CTA2:=EMA(CTA1,9);
CTA3:=EMA(CLOSE,10);
STICKLINE1(CTA1>CTA2,CLOSE,OPEN,2,0),COLORRED;
STICKLINE1(CTA1>CTA2,HIGH,LOW,2,0),COLORRED;
STICKLINE1(CTA1<=CTA2,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE1(CTA1<=CTA2,HIGH,LOW,0,0),COLORGREEN;
STICKLINE1(CTA1<=CTA2 AND CTA3>MA(CLOSE,30),CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE1(CTA1<=CTA2 AND CTA3>MA(CLOSE,30),HIGH,LOW,2,0),COLORYELLOW;
STICKLINE1(CTA1>CTA2 AND CTA3<MA(CLOSE,30),CLOSE,OPEN,2,0),COLOR77AAFF;
STICKLINE1(CTA1>CTA2 AND CTA3<MA(CLOSE,30),HIGH,LOW,2,0),COLOR77AAFF;
CTA4:=(3*C+L+O+H)/6;
CTA5:=(20*CTA4+19*REF(CTA4,1)+18*REF(CTA4,2)+17*REF(CTA4,3)+16*REF(CTA4,4)+15*REF(CTA4,5)+14*REF(CTA4,6)+13*REF(CTA4,7)+12*REF(CTA4,8)+11*REF(CTA4,9)+10*REF(CTA4,10)+9*REF(CTA4,11)+8*REF(CTA4,12)+7*REF(CTA4,13)+6*REF(CTA4,14)+5*REF(CTA4,15)+4*REF(CTA4,16)+3*REF(CTA4,17)+2*REF(CTA4,18)+REF(CTA4,20))/210;
CTA6:=MA(CTA5,3);
STICKLINE1((CTA6< CTA5),CTA5,CTA6,10,0),COLORFF00FF;
STICKLINE1((CTA6 >= CTA5),CTA5,CTA6,10,0),COLORFFFF00;
CTA7:=REF(C,1);
CTA8:=SMA(C,3,1);
CTA9:=SMA(C,5,1);
CTA10:=2*(CTA8-CTA9);
CTA11:=IF(PERIOD=5,0.9,1);
STICKLINE1(CTA10>0,CTA7*CTA11,CTA7*CTA11+CTA10,0,1),COLORRED;
STICKLINE1(CTA10<0,CTA7*CTA11,CTA7*CTA11+CTA10,0,1),COLORCYAN;
CTA12:=LLV(LOW,21);
CTA13:=HHV(HIGH,21);
CTA14:=EMA((((CLOSE – CTA12) / (CTA13 – CTA12)) * 100),5);
CTA15:=EMA((((CLOSE – CTA12) / (CTA13 – CTA12)) * 50),13);
CTA16:=CROSS(CTA14,CTA15);
CTA17:=REF(CLOSE,1);
CTA18:=((SMA(MAX((CLOSE – CTA17),0),6,1) / SMA(ABS((CLOSE – CTA17)),6,1)) * 100);
DRAWTEXT(CROSS(80,CTA18),(HIGH ),’★卖 ‘),COLORFFDDEE;
DRAWTEXT((CTA16 = 1),(LOW ),’★买‘),COLORRED,VALIGN0;

评论(0)