A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
QQ:=EMA(((VARA/10)+EMA(A,13)),0);
行情線:=MA(A,1);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
【操盤線】:EMA(((SLOPE(C,22)*20)+C),55),coloryellow,LINETHICK1;
K1:=BACKSET(【操盤線】
PARTLINE(【操盤線】,K1,RGB(0,255,0)),LINETHICK1;
天知:EMA(CLOSE,6),colorred;
K2:=BACKSET(天知
PARTLINE(天知,K2,RGB(0,255,0)),LINETHICK3;
var1:=(H+L)/2;
pl5:=ZIG(3,5);
en1:=ZIG(3,5)>REF(ZIG(3,5),1) AND
REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
ex1:=ZIG(3,5)=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
pl10:=ZIG(3,10);
en2:=ZIG(3,10)>REF(ZIG(3,10),1) AND
REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
ex2:=ZIG(3,10)=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
pl20:=ZIG(3,20);
en3:=ZIG(3,20)>REF(ZIG(3,20),1) AND
REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
ex3:=ZIG(3,20)=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
pl40:=ZIG(3,40);
走強(qiáng)1:=BARSLAST(pl5
走弱1:=BARSLAST(pl5>REF(pl5,1));
走強(qiáng)2:=BARSLAST(pl10
走弱2:=BARSLAST(pl10>REF(pl10,1));
走強(qiáng)3:=BARSLAST(pl20
走弱3:=BARSLAST(pl20>REF(pl20,1));
ztjz5:=IF(pl10>REF(pl10,1),COUNT(en1,走強(qiáng)2),0);
ztjd5:=IF(pl10>REF(pl10,1),COUNT(ex1,走強(qiáng)2),0);
dtjz5:=IF(pl10
dtjd5:=IF(pl10
ztjz10:=IF(pl20>REF(pl20,1),COUNT(en2,走強(qiáng)3),0);
ztjd10:=IF(pl20>REF(pl20,1),COUNT(ex2,走強(qiáng)3),0);
dtjz10:=IF(pl20
dtjd10:=IF(pl20
DRAWTEXT(en1 AND dtjz5=1,L*0.98,'㈠'),colorffff00;
DRAWTEXT(ex1 AND dtjd5=2,H*1.02,'㈡'),colorffff00;
DRAWTEXT(en2 AND ztjz5=1,L*0.98,'㈢'),colorffff00;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjd5=1,H*1.02,'⑴'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=2,L*0.98,'⑵'),colorwhite;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjz5=2,H*1.02,'⑶'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=3,L*0.98,'⑷'),colorwhite;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.02,'⑸'),colorwhite;
DRAWTEXT(en2 AND dtjz10=1,L*0.94,'Ⅰ'),colorff0000;
DRAWTEXT(ex2 AND dtjd10=2,H*1.06,'Ⅱ'),colorff0000;
DRAWTEXT(en3 AND ztjz10=1,L*0.94,'Ⅲ'),colorff0000;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.06,'①'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=2,L*0.94,'②'),Linethick3,color00ffff;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND ztjd10=2 OR (ztjd10=0 OR
ztjd10=2) AND ex2,H*1.06,'③'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=3,L*0.94,'④'),Linethick3,color00ffff;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND
CROSS(A8,MA(A8,2));
STICKLINE(買,OPEN,CLOSE,8,0),coloryellow;
VAR1:=ZIG(3,13);
STICKLINE((REF(VAR1,2) > REF(VAR1,1)) AND (VAR1 >
REF(VAR1,1)),CLOSE,OPEN,4,0),coloryellow; ;
趨勢線:SMA(FORCAST(CLOSE,13),5,1),coloryellow ;
IF(趨勢線>REF(趨勢線,1),趨勢線,LOW*0.99),coloryellow,LINETHICK1;
IF(趨勢線
VAR1:=MA(CLOSE,5);
FF:=VAR1>REF(VAR1,1);
PARTLINE(Var1,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;
STICKLINE((REF(VAR1,2) > REF(VAR1,1)) AND (VAR1 >
REF(VAR1,1)),CLOSE,OPEN,5,0),coloryellow; ;
TYP := (HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));
差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
短線:VAR1,coloryellow;
中線:VAR6,colormagenta;
TJ1:= CCI1>差值4;
立樁量:=FILTER(TJ1,0);
TJ2:=IF(BARSLAST(立樁量)=1 ,1,IF(BARSLAST(立樁量)=2 ,1,IF(BARSLAST(立樁量)=3
,1,0)));
突破1:=TJ2=1;
TJ33:=IF(BARSLAST(立樁量)=1 ,1,IF(BARSLAST(立樁量)=2 ,1,
IF(BARSLAST(立樁量)=3 ,1,0)));
三天法則1:=TJ33=1;
成立1:=三天法則1 AND 突破1;
條件成立1:=FILTER(成立1,5);
DRAWTEXT(條件成立1,H*1.01,'破紅看跌'),COLORLIBLUE;
TJ11:= CCI1<-差值4 ;
立樁量2:=FILTER(TJ11,0);
TJ22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1,
IF(BARSLAST(立樁量2)=2 AND CLOSE>REF(HIGH,2),1,
IF(BARSLAST(立樁量2)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破2:=TJ22=1;
TJ:=IF(BARSLAST(立樁量2)=1 AND
CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量2)=2
AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量2)=3 AND
CLOSE>REF(LOW,3),1,0)));
三天法則2:=TJ=1;
成立2:=三天法則2 AND 突破2;
條件成立2:=FILTER(成立2,3);
DRAWTEXT(條件成立2,L*0.99,'破黑看漲'),COLORLIMAGENTA;
TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);
立樁量3:=FILTER(TJ111,3);
TJ222:=IF(BARSLAST(立樁量3)=1 AND
CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量3)=2 AND
CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量3)=3 AND
CLOSE>REF(HIGH,3),1,0)));
突破3:=TJ222=1;
TJ3:=IF(BARSLAST(立樁量3)=1 AND
CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量3)=2 AND
CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量3)=3 AND
CLOSE>REF(LOW,3),1,0)));
三天法則:=TJ3=1;
成立:=三天法則 AND 突破3;
條件成立:=FILTER(成立,3);
選股公式:
AAA=(3*C+H+L+O)/6;
VAR1=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
a=VAR1,coloryellow;
b=VAR6,colormagenta;
A>B
var1:=(H+L)/2;
pl5:=ZIG(3,5);
en1:=ZIG(3,5)>REF(ZIG(3,5),1) AND
REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
ex1:=ZIG(3,5)=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
pl10:=ZIG(3,10);
en2:=ZIG(3,10)>REF(ZIG(3,10),1) AND
REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
ex2:=ZIG(3,10)=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
pl20:=ZIG(3,20);
en3:=ZIG(3,20)>REF(ZIG(3,20),1) AND
REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
ex3:=ZIG(3,20)=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
pl40:=ZIG(3,40);
走強(qiáng)1:=BARSLAST(pl5
走弱1:=BARSLAST(pl5>REF(pl5,1));
走強(qiáng)2:=BARSLAST(pl10
走弱2:=BARSLAST(pl10>REF(pl10,1));
走強(qiáng)3:=BARSLAST(pl20
走弱3:=BARSLAST(pl20>REF(pl20,1));
ztjz5:=IF(pl10>REF(pl10,1),COUNT(en1,走強(qiáng)2),0);
ztjd5:=IF(pl10>REF(pl10,1),COUNT(ex1,走強(qiáng)2),0);
dtjz5:=IF(pl10
dtjd5:=IF(pl10
ztjz10:=IF(pl20>REF(pl20,1),COUNT(en2,走強(qiáng)3),0);
ztjd10:=IF(pl20>REF(pl20,1),COUNT(ex2,走強(qiáng)3),0);
dtjz10:=IF(pl20
dtjd10:=IF(pl20
DRAWTEXT(en1 AND dtjz5=1,L*0.98,'㈠'),colorffff00;
DRAWTEXT(ex1 AND dtjd5=2,H*1.02,'㈡'),colorffff00;
DRAWTEXT(en2 AND ztjz5=1,L*0.98,'㈢'),colorffff00;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjd5=1,H*1.02,'⑴'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=2,L*0.98,'⑵'),colorwhite;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjz5=2,H*1.02,'⑶'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=3,L*0.98,'⑷'),colorwhite;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.02,'⑸'),colorwhite;
DRAWTEXT(en2 AND dtjz10=1,L*0.94,'Ⅰ'),colorff0000;
DRAWTEXT(ex2 AND dtjd10=2,H*1.06,'Ⅱ'),colorff0000;
DRAWTEXT(en3 AND ztjz10=1,L*0.94,'Ⅲ'),colorff0000;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.06,'①'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=2,L*0.94,'②'),Linethick3,color00ffff;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND ztjd10=2 OR (ztjd10=0 OR
ztjd10=2) AND ex2,H*1.06,'③'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=3,L*0.94,'④'),Linethick3,color00ffff;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND
CROSS(A8,MA(A8,2));
STICKLINE(買,OPEN,CLOSE,8,0),coloryellow;
VAR1:=ZIG(3,13);
STICKLINE((REF(VAR1,2) > REF(VAR1,1)) AND (VAR1 >
REF(VAR1,1)),CLOSE,OPEN,4,0),coloryellow; ;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210;
HHJSJDC:=MA(HHJSJDB,5);
STICKLINE(HHJSJDB>HHJSJDC,HHJSJDB,HHJSJDC,8,0),coloryellow;
STICKLINE(HHJSJDC>HHJSJDB,HHJSJDB,HHJSJDC,8,0),colorblue;
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0
AND G1)+1);
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趨勢線:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=-100*(趨勢線-CLOSE)/趨勢線;
AC:=(EMA(AA,5) );
SSL:=EMA(CLOSE,3);
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=MA(MMV,1);
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
撈錢手:IF(((SSL>MM)),MM,SA),LINETHICK2,;
能量線:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
上開:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上開+上高+上低)/3;
A:=EMA(JJ,4);
智能黃金線:A,coloryellow,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND
智能黃金線>REF(智能黃金線,1),VA1*0.97,'★'),COLOR00FF00;
選手A:=MA(上收,3);
箱頂A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
T1:=MA(上收,20)>=REF(MA(上收,20),1);
T2:=CROSS(選手A,箱底A) AND 箱頂A/箱底A>100/100 AND T1;
T3:=CROSS(箱頂A,選手A) AND 箱頂A/箱底A>100/100;
選手:=MA(上收,2);
箱頂:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
T4:=CROSS(選手,箱底) AND 箱頂/箱底>110/100;
T5:=CROSS(箱頂,選手) AND 箱頂/箱底>110/100;
VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND
UOO>0,LOW*0.96,'★莊影'),;
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(買線,賣線)AND 箱頂>=REF(箱頂,1),LOW*0.95,'★注意'),
STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,2,0),COLOR00FFFF;安全線:
EMA(CLOSE,60), CIRCLEDOT;
STICKLINE(CLOSE>=CLOSE[1],CLOSE,CLOSE[1],9,1),colorred;
STICKLINE(CLOSE
STICKLINE(CLOSE[1]>=CLOSE[2] AND CLOSE
STICKLINE(CLOSE[1]=CLOSE[1],CLOSE[1],MIN(CLOSE[2],CLOSE),9,0),col
;DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(Da-db,0),L*0.88,'★'),coloryellow,LINETHICK3;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.08,'☆險'),colormagenta;
{DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));}
回歸斜率線A:=EMA(SLOPE(C,4)*20+C,42);
經(jīng)典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
經(jīng)典K:=SMA(經(jīng)典RL,3,1); 經(jīng)典D:=SMA(經(jīng)典K,3,1);
經(jīng)典J:=3*經(jīng)典K-2*經(jīng)典D;
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))
/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
MAHL2:=IF(EMA(C,2)>回歸斜率線A AND
MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));
MAHL3:=IF(EMA(C,2)>回歸斜率線A AND
MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));
上線:=SMA(C,6.5,1);
一號支撐線:SMA(C,14.5,1);
上線1:=SMA(C,3,1);
一號支撐線1:=SMA(C,8,1);
上線2:=SMA(C,3.5,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,55),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),COLORFF00FF,LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
DRAWTEXT( CROSS(上線1,上線) AND 上線1>操作,LOW *0.92,'買'
),coloryellow;
VAR1:LLV(A7,21);
VAR2:HHV(A7,30);
YCX:=操作>=REF(操作,1);
H1:=MAX(MAX(上線,一號支撐線1),一號支撐線);
L1:=MIN(MIN(上線,一號支撐線1),一號支撐線);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
M1:=1000*操作/一號支撐線<=1015 AND
1000*操作/一號支撐線>=975;
M2:=1000*一號支撐線1/一號支撐線<=1020 AND
一號支撐線1/一號支撐線>=980;
M3:=1000*上線/一號支撐線<=1015 AND
上線/一號支撐線>=985;
DRAWTEXT(IF(COUNT(CLOSE6/10
AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND
REF(CLOSE>=OPEN,4)
AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND
REF(OPEN>CLOSE,1)
AND
OPEN>REF(CLOSE,1),1,0),LOW*0.94,'買')
,coloryellow;
D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
var1:=(H+L)/2;
pl5:=ZIG(3,5);
en1:=ZIG(3,5)>REF(ZIG(3,5),1) AND
REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
ex1:=ZIG(3,5)=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
pl10:=ZIG(3,10);
en2:=ZIG(3,10)>REF(ZIG(3,10),1) AND
REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
ex2:=ZIG(3,10)=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
pl20:=ZIG(3,20);
en3:=ZIG(3,20)>REF(ZIG(3,20),1) AND
REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
ex3:=ZIG(3,20)=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
pl40:=ZIG(3,40);
走強(qiáng)1:=BARSLAST(pl5
走弱1:=BARSLAST(pl5>REF(pl5,1));
走強(qiáng)2:=BARSLAST(pl10
走弱2:=BARSLAST(pl10>REF(pl10,1));
走強(qiáng)3:=BARSLAST(pl20
走弱3:=BARSLAST(pl20>REF(pl20,1));
ztjz5:=IF(pl10>REF(pl10,1),COUNT(en1,走強(qiáng)2),0);
ztjd5:=IF(pl10>REF(pl10,1),COUNT(ex1,走強(qiáng)2),0);
dtjz5:=IF(pl10
dtjd5:=IF(pl10
ztjz10:=IF(pl20>REF(pl20,1),COUNT(en2,走強(qiáng)3),0);
ztjd10:=IF(pl20>REF(pl20,1),COUNT(ex2,走強(qiáng)3),0);
dtjz10:=IF(pl20
dtjd10:=IF(pl20
DRAWTEXT(en1 AND dtjz5=1,L*0.98,'㈠'),colorffff00;
DRAWTEXT(ex1 AND dtjd5=2,H*1.02,'㈡'),colorffff00;
DRAWTEXT(en2 AND ztjz5=1,L*0.98,'㈢'),colorffff00;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjd5=1,H*1.02,'⑴'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=2,L*0.98,'⑵'),colorwhite;
DRAWTEXT(ex1 AND pl10>REF(pl10,1) AND
ztjz5=2,H*1.02,'⑶'),colorwhite;
DRAWTEXT(en1 AND pl10>REF(pl10,1) AND
ztjz5=3,L*0.98,'⑷'),colorwhite;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.02,'⑸'),colorwhite;
DRAWTEXT(en2 AND dtjz10=1,L*0.94,'Ⅰ'),colorff0000;
DRAWTEXT(ex2 AND dtjd10=2,H*1.06,'Ⅱ'),colorff0000;
DRAWTEXT(en3 AND ztjz10=1,L*0.94,'Ⅲ'),colorff0000;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND
ztjd10=1,H*1.06,'①'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=2,L*0.94,'②'),Linethick3,color00ffff;
DRAWTEXT(ex2 AND pl20>REF(pl20,1) AND ztjd10=2 OR (ztjd10=0 OR
ztjd10=2) AND ex2,H*1.06,'③'),Linethick3,color00ffff;
DRAWTEXT(en2 AND pl20>REF(pl20,1) AND
ztjz10=3,L*0.94,'④'),Linethick3,color00ffff;
STICKLINE((REF(VAR1,2) > REF(VAR1,1)) AND (VAR1 >
REF(VAR1,1)),CLOSE,OPEN,4,0),coloryellow; ;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND
REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,13);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND
REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,26);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND
REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,55);
走強(qiáng)一:=BARSLAST(PL5
走弱一:=BARSLAST(PL5>REF(PL5,1));
走強(qiáng)二 :=BARSLAST(PL10
走弱二:=BARSLAST(PL10>REF(PL10,1));
走強(qiáng)三:=BARSLAST(PL20
走弱三:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強(qiáng)二 ),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強(qiáng)二 ),0);
DTJZ5:=IF(PL10
DTJD5:=IF(PL10
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強(qiáng)三),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強(qiáng)三),0);
DTJZ10:=IF(PL20
DTJD10:=IF(PL20
DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND
ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND
ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND
ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND
ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND
ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND
ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND
ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR
ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND
ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF;
DMLJ:=HHV(HIGH,120);
TY:=CLOSE;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(CLOSE,BARSLAST(HD));
B:=REF(CLOSE,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪頂:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100;
VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100;
VARA:=BARSCOUNT(CLOSE);
VARB:=VAR8<20 AND VAR9<23 AND VARA>35;
VARC:=VARB AND COUNT(VARB,1)=1;
VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);
VARE:=EMA(VARD,5);
VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE);
VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND
REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND
REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND
REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND
REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND
REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND
REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1A:=EMA(VAR19,100);
VAR1B:=2*(VAR19-VAR1A);
VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1E:=EMA(VAR1D*0.97,3);
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));
VAR21:=CROSS(VAR1E,LOW);
買點一:=VAR10;
買點二:=(VAR11+VAR13+VAR15+VAR17);
賣點一:=(VAR12+VAR14+VAR16+VAR18);
VAR22:=買點一 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND
VAR6=0 AND VAR20<(-110);
VAR1:=MA(CLOSE,6);
VAR2:=MA(CLOSE,18);
VAR31:=MA(CLOSE,30);
VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=OPEN;
VAR1A1:=CLOSE;
DRAWTEXT(買點一>0,LOW-0.01,'▲B1'),colorred;
DRAWTEXT(買點二>0,LOW-0.01,'▲B2'),coloryellow;
DRAWTEXT(賣點一>0,HIGH+0.1,'▲S'), colorwhite;
AX:=BARSCOUNT(CLOSE);
AH:=HHV(HIGH,72);
AL:=LLV(LOW,72);
A0:=(AH-AL)/21;
B1:=LOW-A0;
DRAWTEXT((AX+0)/15=FLOOR((AX+0)/15),B1-2.5*A0,'▲TW'),colorwhite;
VAR31X:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)
AND REF(ZIG(3,19), 1)
STICKLINE(VAR31X=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF;
DRAWTEXT(VAR31X=2,LOW*0.95,'3天'),colorwhite;
STICKLINE(VAR31X=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF;
DRAWTEXT(VAR31X=4,HIGH*1.06,'5天'),colorwhite;
STICKLINE(VAR31=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF;
DRAWTEXT(VAR31X=7,LOW*0.95,'8天'),colorwhite;
STICKLINE(VAR31X=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF;
DRAWTEXT(VAR31X=12,HIGH*1.06,'13天'),colorwhite;
STICKLINE(VAR31X=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF;
DRAWTEXT(VAR31X=20,LOW*0.95,'21天'),colorwhite;
STICKLINE(VAR31X=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00;
DRAWTEXT(VAR31X=33,HIGH*1.06,'34天'),colorwhite;
STICKLINE(VAR31X=54,LOW*0.95,LOW*0.98,8,0),colorwhite;
DRAWTEXT(VAR31X=54,LOW*0.95,'55天'),colorwhite;
STICKLINE(VAR31X=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00;
DRAWTEXT(VAR31X=88,HIGH*1.06,'89天'),colorwhite;
STICKLINE(VAR31X=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF;
DRAWTEXT(VAR31X=143,LOW*0.95,'144天'),colorwhite;
STICKLINE(VAR31X=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033;
DRAWTEXT(VAR31X=232,HIGH*1.06,'233天'),colorwhite;
STICKLINE(VAR31X=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966;
DRAWTEXT(VAR31X=376,LOW*0.95,'377天'),colorwhite;
GET:ZIG(3,5),colormagenta,LINETHICK1;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND
REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND
REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,13);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND
REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND
REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,26);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND
REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND
REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,55);
走強(qiáng)一:=BARSLAST(PL5
走弱一:=BARSLAST(PL5>REF(PL5,1));
走強(qiáng)二 :=BARSLAST(PL10
走弱二:=BARSLAST(PL10>REF(PL10,1));
走強(qiáng)三:=BARSLAST(PL20
走弱三:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強(qiáng)二 ),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強(qiáng)二 ),0);
DTJZ5:=IF(PL10
DTJD5:=IF(PL10
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強(qiáng)三),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強(qiáng)三),0);
DTJZ10:=IF(PL20
DTJD10:=IF(PL20
DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND
ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND
ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND
ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND
ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND
ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND
ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND
ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR
ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND
ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF;
DMLJ:=HHV(HIGH,120);
TY:=CLOSE;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(CLOSE,BARSLAST(HD));
B:=REF(CLOSE,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪頂:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100;
VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100;
VARA:=BARSCOUNT(CLOSE);
VARB:=VAR8<20 AND VAR9<23 AND VARA>35;
VARC:=VARB AND COUNT(VARB,1)=1;
VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);
VARE:=EMA(VARD,5);
VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE);
VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND
REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND
REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND
REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND
REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND
REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND
REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1A:=EMA(VAR19,100);
VAR1B:=2*(VAR19-VAR1A);
VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1E:=EMA(VAR1D*0.97,3);
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));
VAR21:=CROSS(VAR1E,LOW);
買點一:=VAR10;
買點二:=(VAR11+VAR13+VAR15+VAR17);
賣點一:=(VAR12+VAR14+VAR16+VAR18);
VAR22:=買點一 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND
VAR6=0 AND VAR20<(-110);
VAR1:=MA(CLOSE,6);
VAR2:=MA(CLOSE,18);
VAR31:=MA(CLOSE,30);
VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=OPEN;
VAR1A1:=CLOSE;
DRAWTEXT(買點一>0,LOW-0.01,'▲B1'),colorred;
DRAWTEXT(買點二>0,LOW-0.01,'▲B2'),coloryellow;
DRAWTEXT(賣點一>0,HIGH+0.1,'▲S'), colorwhite;
AX:=BARSCOUNT(CLOSE);
AH:=HHV(HIGH,72);
AL:=LLV(LOW,72);
A0:=(AH-AL)/21;
B1:=LOW-A0;
DRAWTEXT((AX+0)/15=FLOOR((AX+0)/15),B1-2.5*A0,'▲TW'),colorwhite;
VAR31X:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)
AND REF(ZIG(3,19), 1)
STICKLINE(VAR31X=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF;
DRAWTEXT(VAR31X=2,LOW*0.95,'3天'),colorwhite;
STICKLINE(VAR31X=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF;
DRAWTEXT(VAR31X=4,HIGH*1.06,'5天'),colorwhite;
STICKLINE(VAR31=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF;
DRAWTEXT(VAR31X=7,LOW*0.95,'8天'),colorwhite;
STICKLINE(VAR31X=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF;
DRAWTEXT(VAR31X=12,HIGH*1.06,'13天'),colorwhite;
STICKLINE(VAR31X=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF;
DRAWTEXT(VAR31X=20,LOW*0.95,'21天'),colorwhite;
STICKLINE(VAR31X=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00;
DRAWTEXT(VAR31X=33,HIGH*1.06,'34天'),colorwhite;
STICKLINE(VAR31X=54,LOW*0.95,LOW*0.98,8,0),colorwhite;
DRAWTEXT(VAR31X=54,LOW*0.95,'55天'),colorwhite;
STICKLINE(VAR31X=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00;
DRAWTEXT(VAR31X=88,HIGH*1.06,'89天'),colorwhite;
STICKLINE(VAR31X=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF;
DRAWTEXT(VAR31X=143,LOW*0.95,'144天'),colorwhite;
STICKLINE(VAR31X=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033;
DRAWTEXT(VAR31X=232,HIGH*1.06,'233天'),colorwhite;
STICKLINE(VAR31X=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966;
DRAWTEXT(VAR31X=376,LOW*0.95,'377天'),colorwhite;
GET:ZIG(3,5),colormagenta,LINETHICK1;
梁祝
SAT:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
STICKLINE(SAT=100,0,VOL,8,4),coloryellow,LINETHICK2;
|