指导: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK2,COLORWHITE;
界: MA(CLOSE,27),LINETHICK2,COLORYELLOW;
DRAWBAND(指导,RGB(255,0,0),界,RGB(0,255,0));
A0:=AMOUNT/VOL/100;
A1:=(EMA(A0,3)>EMA(A0,7) AND EMA(A0,7)>EMA(A0,13) AND EMA(A0,13)>EMA(A0,21))*6;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
底: EMA(VAR11,99)*0.91, LINETHICK2,COLORGREEN ;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0 ,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORFF9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFBB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLORFFCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLORFFEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.1,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0) ,COLOR0000FF;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(AA,LOW,HIGH,0 ,0 ),COLORYELLOW;
STICKLINE(AA,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(AA,LOW,HIGH,0 ,0 ),COLORYELLOW;
MA1:=MA(CLOSE,8);
MA2:=MA(CLOSE,13);
MA3:=MA(CLOSE,21);
FFF:=(LOW<=MA1 AND LOW<=MA2 AND LOW<=MA3 AND CLOSE>=MA1 AND
CLOSE>=MA2 AND CLOSE>=MA3 AND CLOSE>REF(CLOSE,1));
STICKLINE(FFF,CLOSE,OPEN,5,0),COLORFF00FF;
STICKLINE(FFF,H,L,0,0 ),COLORFF00FF;
VAR1A:=CROSS(MA(CLOSE,5),MA(CLOSE,30));
DRAWTEXT(VAR1A AND CLOSE>MA(CLOSE,250),LOW-LOW*0.01,'少量买 '),COLORWHITE;
DRAWTEXT(VAR1A AND CLOSE>=MA(CLOSE,60) AND CLOSE<=MA(CLOSE,250),LOW-LOW*0.02,'半仓买'),COLORYELLOW;
DRAWTEXT(VAR1A AND CLOSE<MA(CLOSE,60),LOW-LOW*0.04,'全仓买 '),COLORFF00FF;
VAR1:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;
VAR4:=MA(VAR3,4);
VAR5:=IF(CROSS(VAR4,REF(VAR4,2)) AND VAR4<32,80,IF(CROSS(REF(VAR4,2),VAR4) AND VAR4>62,20,50));
DRAWTEXT(VAR5>50,LOW,'--买入'),COLORYELLOW ;
DRAWTEXT(VAR5<50,HIGH*1.008,'风险'),COLORGREEN;
DRAWTEXT(VAR5>50,LOW*0.985,'机会!'),COLORRED ;
DRAWTEXT(VAR5<50,HIGH*1.03,'注意'),COLORWHITE;
DRAWTEXT(VAR1A AND CLOSE<MA(CLOSE,60),LOW-LOW*0.04,'全仓买 ');
B1:MA(C,13);
B2:MA(C,77);
B3:MA(C,99);
|