A1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
A2:=IF(CLOSE>OPEN,A1*(HIGH-LOW),IF(CLOSE<OPEN,A1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
A3:=IF(CLOSE>OPEN,A1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,A1*(HIGH-LOW),VOL/2)),COLORGREEN;
量:=(A3-MA(A2,20))/MA(A2,20),COLORYELLOW;
量能:IF(量>0,量,0),COLORYELLOW;
累積量能:SUM(量能,5)/1,COLOR000077;
DRAWBAND(累積量能,RGB(108,0,0),0,RGB(100,100,100));
STICKLINE(量>0,量*2,0,2,1),COLORYELLOW;
{20110922將走勢分為底部注意、低位轉(zhuǎn)強(qiáng)、買點(diǎn)出現(xiàn)、堅(jiān)定持股、謹(jǐn)慎觀望、果斷持幣六區(qū),看圖解勢}
{參數(shù):周期 1 100 15 過濾 1 100 8 選股 -30 -20 -26 抄底 -50 -25 -40 }
{可操作的三區(qū)城}
周期:=15;
過濾:=8;
選股:=-26;
抄底:=-40;
VAR5:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30))/4;
VAR6:=(VAR5-REF(VAR5,周期))/REF(VAR5,周期)*100;
VAR8:=MA(VAR6,過濾);
底部注意:=VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8;{底部注意}
買點(diǎn):=VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,COLORRED;{買點(diǎn)}
堅(jiān)定持股:=VAR8>REF(VAR8,1) AND VAR8>0,COLORFF00FF;{堅(jiān)定持股}
三區(qū):=底部注意 OR 買點(diǎn) OR 堅(jiān)定持股;{可操作的三區(qū)城}
買天數(shù):BARSLASTCOUNT(買點(diǎn)=1),COLORRED,NODRAW;
STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,3,0),COLORLICYAN;{底部注意}
STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,3,0),COLOR0080FF;{低位轉(zhuǎn)強(qiáng)}
STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,3,0),COLORRED;{買點(diǎn)}
STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,0,0),COLORFF00FF;{堅(jiān)定持股}
STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,2,0),COLORFFFF80;{謹(jǐn)慎觀望}
STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,1,1),COLORGREEN;{果斷持幣}
VAR9:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;
VARA:=VAR9>1*REF(VAR9,1) AND VAR9<選股 AND VAR9>抄底*1.5;
VARB:=VOL/CAPITAL*100;
VARC:=LLV(LOW,50);
VARD:=SUM(VOL,VARC);
VARE:=HHV(HIGH,50);
VARF:=SUM(VOL,VARE);
VAR10:=(CLOSE-REF(OPEN,VARE))/REF(OPEN,VARE)*100;
VAR11:=VARF/CAPITAL*100;
VAR12:=(CLOSE-REF(OPEN,VARC))/REF(OPEN,VARC)*100;
VAR13:=VARD/CAPITAL*100;
VAR14:=MA(CLOSE,3);
VAR15:=REF(CLOSE,2)*0.865;
VAR16:=REF(CLOSE,13)*0.772;
VAR17:=MIN(VAR15,VAR16);
VAR18:=MA(CLOSE,13);
超跌:IF((CLOSE-VAR17)/CLOSE<0.03 AND VAR10<-35 AND SUM(VARB,5)/5<1.8,1,0)*10,COLOR808080;
DRAWTEXT(超跌,超跌,'抄底'),COLORFF0000 ;
VAR19:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR1A:=(MA(CLOSE,12)-MA(CLOSE,26))*100;
VAR1B:=MA(VAR1A,9);
VAR1C:=2*(VAR1A-VAR1B);
DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A<VAR1B,-10,'底'),COLORWHITE;
DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A>=VAR1B,5,'追'),COLORWHITE;
STICKLINE(VAR1A<-50 AND VAR19>7,0,-10,5,0),COLORFFFF00 ;
DRAWTEXT_FIX(1,0.00,0.05,0,'底部注意'),COLORLICYAN;
DRAWTEXT_FIX(1,0.00,0.15,0,'低位轉(zhuǎn)強(qiáng)'),COLOR0080FF;
DRAWTEXT_FIX(1,0.00,0.25,0,'買點(diǎn)出現(xiàn)'),COLORRED;
DRAWTEXT_FIX(1,0.08,0.05,0,'堅(jiān)定持股'),COLORFF00FF;
DRAWTEXT_FIX(1,0.08,0.15,0,'謹(jǐn)慎觀望'),COLORFFFF80;
DRAWTEXT_FIX(1,0.08,0.25,0,'果斷持幣'),COLORGREEN;
DRAWTEXT_FIX(1,0.16,0.05,0,'黃量能柱'),COLORYELLOW;
|