中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
RSI指標研究

RI

{起爆點};

MV3:=EMA(V,3);

MA3:=EMA(C,3);

MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;

MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;

MV5:=EMA(V,5);

MA5:=EMA(C,5);

MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;

MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;

MV10:=EMA(V,10);

MA10:=EMA(C,10);

MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;

MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

強弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;

QBD:=CROSS(強弱度,50) AND COUNT(強弱度>50,7)<=3;

天量:IF(強弱度>=80,16,DRAWNULL),COLOR00FF00,LINETHICK1,NODRAW;

啟爆:IF(QBD AND COUNT(QBD,4)=1,20,DRAWNULL),COLORFF00FF,LINETHICK3,NODRAW;

倍量:=IF(V/REF(V,1)>=2,10,0),COLORFFFFFF,STICK,LINETHICK1;

{視窗};

MFI:=(H-L)*100000/V,NODRAW,COLOR33FF33;

視窗:=IF(C>0,16,DRAWNULL),CIRCLEDOT,COLORWHITE,LINETHICK2;

綠窗:IF(MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1,10,0),STICK,COLORGREEN,NODRAW;

衰退:IF(MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9,10,0),STICK,COLORWHITE,NODRAW;

偽裝:IF(MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9,10,0),STICK,COLOREE5500,NODRAW;

蟄伏:IF(MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1,10,0),STICK,COLORYELLOW,NODRAW; 

{相對強弱值};

LC :=REF(C,1);

RSI1:=SMA(MAX(C-LC,0),14,1)/SMA(ABS(C-LC),14,1)*100;

D1:=STICKLINE(RSI1>0,25,75,8,0),COLOR300000;

D2:=STICKLINE(RSI1>0,70,30,5,0),COLOR306030;

D3:DRAWBAND(RSI1,RGB(0,250,0),65,RGB(233,34,8));

{信號線};

STICKLINE(RSI1>0,65,35,5,0),COLORFF1212;

STICKLINE(ISLASTBAR AND 啟爆=20,46,55,0,0),COLORFF00FF;

STICKLINE(天量>0,46,55,0,0),COLOR00FF00;

STICKLINE(ISLASTBAR AND 倍量>0,46,55,0,0),COLOR00FFFF;

STICKLINE(ISLASTBAR AND 蟄伏=10,49,51,3,0),COLOR00FFFF;

STICKLINE(ISLASTBAR AND 綠窗=10,49,51,3,0),COLOR00FF00;

{壓力和支撐};

HIGHN:=3;

LOWN:=HIGHN;

AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1);

賣出:=DRAWICON(CC,RSI1*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{頂部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

上軌:=DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1) COLOR00FF00,LINETHICK1;

峰1:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,ISLASTBAR,REF(RSI1,GDCS2-1),1),

COLOR00FF00,POINTDOT,LINETHICK3;

峰2:DRAWLINE(CURRBARSCOUNT=GDCS1,RSI1,ISLASTBAR,REF(RSI1,GDCS1-1),1),

COLOREE9988,LINETHICK2;

AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND RSI1=LLV(RSI1,LOWN+1);

介入:=DRAWICON(CC1,RSI1*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(RSI1,DD1),RSI1); {底部}

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

下軌:=DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1) COLORRED,LINETHICK1;

谷1:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBAR,REF(RSI1,DDCS2-1),1),

COLOR00AAFF,POINTDOT,LINETHICK3;

谷2:DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBAR,REF(RSI1,DDCS1-1),1),COLORRED,LINETHICK2;


{背離信號};

A3:=CC;

B3:=BARSLAST(REF(CC,1));

頂背離:=REF(CLOSE, B3+1)<CLOSE AND REF(RSI, B3+1)>RSI 

AND A3;

AB5:=CC1;BA5:=BARSLAST(REF(CC1,1));

底背離:=REF(CLOSE, BA5+1)>CLOSE AND REF(RSI, BA5+1)<RSI AND AB5;

DRAWICON(頂背離>0 AND RSI>65,65,2);

DRAWICON(底背離>0 AND RSI<35,35,1);

Q1:=DRAWTEXT(底背離 AND RSI<40,30,'抄'),COLORMAGENTA;

Q2:=DRAWTEXT(頂背離 AND RSI>60,70,'逃'),COLORCYAN;

{副圖顯示};

RSI:RSI1,COLOR008FFF,LINETHICK1;

{完};

RII

N:=14;MM:=6;

{界定強弱區(qū)域的色帶};

STICKLINE(C>0,30,70,8,0),COLORFF5800;

STICKLINE(C>0,80,80,8,0),COLOR005300;

STICKLINE(C>0,20,20,8,0),COLOR005300;

STICKLINE(ISLASTBAR,50,50,33,0),COLORLIGRAY;

{過濾信號};

RS:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K1:=MA(RS,3);

D1:=MA(K1,3);

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

VA1:=HHV(DEA,53);

VA2:=LLV(DEA,55);

VA3:=DEA-(DIF-DEA);

UP:=IF(DIF>VA1 AND DEA=VA1,MAX(LLV(VA1,10),VA3),VA1);

DN:=IF(DIF<VA2 AND DEA=VA2,MIN(HHV(VA2,10),VA3),VA2);

底:=IF(DIF<DN AND D1<50,30,DRAWNULL),LINETHICK2,COLORRED;

G5:=STICKLINE(DIF<DN AND D1<50,15,20,0.1,1),COLORFF5311;

頂:=IF(DIF>UP AND D1>50,70,DRAWNULL),LINETHICK2,COLORRED;

G6:=STICKLINE(DIF>UP AND D1>50,85,80,0.1,1),COLORFF8855;

{相對強弱值};

LC :=REF(C,1);

RSI1:=SMA(MAX(C-LC,0),9,1)/SMA(ABS(C-LC),9,1)*100;

{壓力和支撐};

HIGHN:=3;

LOWN:=HIGHN;

AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1);

賣出:=DRAWICON(CC,RSI1*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{頂部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

上軌:=DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1) COLORAAAAAA,LINETHICK2;

峰1:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,ISLASTBAR,REF(RSI1,GDCS2-1),1),

COLOR00FF00,POINTDOT,LINETHICK3;

STICKLINE(峰1>70,峰1,峰1,9,0),COLORGREEN;

峰2:DRAWLINE(CURRBARSCOUNT=GDCS1,RSI1,ISLASTBAR,REF(RSI1,GDCS1-1),1),

COLORLIGRAY,POINTDOT,LINETHICK3;

STICKLINE(峰2>70,峰2,峰2,9,0),COLOREE3355;

AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND RSI1=LLV(RSI1,LOWN+1);

介入:=DRAWICON(CC1,RSI1*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(RSI1,DD1),RSI1); {底部}

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

下軌:=DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1) COLOR0000AA,LINETHICK2;

谷1:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBAR,REF(RSI1,DDCS2-1),1),

COLORYELLOW,POINTDOT,LINETHICK3;

STICKLINE(谷1<30,谷1,谷1,9,0),COLORYELLOW;

谷2:DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBAR,REF(RSI1,DDCS1-1),1),

COLORRED,POINTDOT,LINETHICK3;

STICKLINE(谷2<30,谷2,谷2,9,0),COLORRED;

{背離信號};

A3:=CC;

B3:=BARSLAST(REF(CC,1));

頂背離:=REF(CLOSE, B3+1)<CLOSE AND REF(RSI, B3+1)>RSI 

AND A3;

AB5:=CC1;BA5:=BARSLAST(REF(CC1,1));

底背離:=REF(CLOSE, BA5+1)>CLOSE AND REF(RSI, BA5+1)<RSI AND AB5;

U1:DRAWICON(頂背離>0 AND RSI>65,75,2);

U2:DRAWICON(底背離>0 AND RSI<35,25,1);

Z1:=DRAWTEXT(底背離 AND RSI<40,21,'抄'),COLORYELLOW;

Z2:=DRAWTEXT(頂背離 AND RSI>60,90,'逃'),COLORCYAN;

{信號顯示};

STICKLINE(RSI1>=80,80,RSI1,0.1,0),COLORWHITE;

STICKLINE(RSI1<=20,20,RSI1,0.1,0),COLOR0000FF;

{副圖顯示};

強度:RSI1,COLOR3338FF;

均值:MA(RSI1,8),COLORGREEN,LINETHICK2;

IF(均值>=REF(均值,1),均值,DRAWNULL),COLORRED,LINETHICK2;

RIII

{界定強弱區(qū)域的色帶};
STICKLINE(C>0,30,70,8,0),COLORFF3311;
STICKLINE(C>0,20,20,8,0),COLOR008E00;
STICKLINE(C>0,80,80,8,0),COLOR008E00;
STICKLINE(ISLASTBAR,50,50,33,0),COLORFFFFFF;
HH:=STICKLINE(ISLASTBAR,30,30,33,0),COLOR008E00;

{背離檢測棒};
RS:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=MA(RS,3);
D1:=MA(K1,3);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VA1:=HHV(DEA,53);
VA2:=LLV(DEA,55);
VA3:=DEA-(DIF-DEA);
UP:=IF(DIF>VA1 AND DEA=VA1,MAX(LLV(VA1,10),VA3),VA1);
DN:=IF(DIF<VA2 AND DEA=VA2,MIN(HHV(VA2,10),VA3),VA2);
底:IF(DIF<DN AND D1<50,10,DRAWNULL),LINETHICK3,COLOR008800;
G5:=STICKLINE(DIF<DN AND D1<50,30,21,1,1),COLOR00BB00;
頂:IF(DIF>UP AND D1>50,90,DRAWNULL),LINETHICK3,COLOR008800;
G6:=STICKLINE(DIF>UP AND D1>50,70,79,1,1),COLOR008E00;

{相對強弱值};
LC :=REF(C,1);
RSI1:=SMA(MAX(C-LC,0),9,1)/SMA(ABS(C-LC),9,1)*100;

{背離信號};
HIGHN:=3;
LOWN:=HIGHN;
AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1);
AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND RSI1=LLV(RSI1,LOWN+1);
A3:=CC;
B3:=BARSLAST(REF(CC,1));
頂背離:=REF(CLOSE, B3+1)<CLOSE AND REF(RSI, B3+1)>RSI
AND A3;
AB5:=CC1;
BA5:=BARSLAST(REF(CC1,1));
底背離:=REF(CLOSE, BA5+1)>CLOSE AND REF(RSI, BA5+1)<RSI AND AB5;
Z1:DRAWICON(頂背離>0,75,2);
Z2:DRAWICON(底背離>0,25,17);


{壓力和支撐};
賣出:=DRAWICON(CC,RSI1*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{頂部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
上軌:=DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1) COLOR00FF00,LINETHICK1;
峰1:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,ISLASTBAR,REF(RSI1,GDCS2-1),1),
COLOR00FF00,POINTDOT,LINETHICK3;
STICKLINE(峰1>70,峰1,峰1,9,0),COLORGREEN;
峰2:DRAWLINE(CURRBARSCOUNT=GDCS1,RSI1,ISLASTBAR,REF(RSI1,GDCS1-1),1),
COLOREE3355,POINTDOT,LINETHICK3;
STICKLINE(峰2>70,峰2,峰2,9,0),COLOREE3355;

介入:=DRAWICON(CC1,RSI1*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(RSI1,DD1),RSI1); {底部}
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
下軌:=DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1) COLORRED,LINETHICK1;
谷1:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBAR,REF(RSI1,DDCS2-1),1),
COLORRED,POINTDOT,LINETHICK3;
STICKLINE(谷1<30,谷1,谷1,9,0),COLORRED;
谷2:DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBAR,REF(RSI1,DDCS1-1),1),
COLORYELLOW,POINTDOT,LINETHICK3;
STICKLINE(谷2<30,谷2,谷2,9,0),COLORYELLOW;

{副圖顯示};
RSI:RSI1,COLORRED,LINETHICK1;
MR:=MA(RSI1,8),COLORRED,LINETHICK1;
Q:=IF(MR<REF(MR,1),MR,DRAWNULL),COLORFF8833,LINETHICK1;

STICKLINE(RSI1>=80,80,RSI1,1,0),COLORWHITE;
STICKLINE(RSI1<=20,20,RSI1,1,0),COLOR0000FF;

RIV

n1:=5;;N2:=10;
STICKLINE(C>0,2,8,8,0),COLORFF7700;
STICKLINE(ISLASTBAR,5,5,13,1),COLORFFFFFF;

LC:=REF(CLOSE,1);
RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORDDDDDD,LINETHICK1;

VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),
LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),
HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)
AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2)
AND UP>REF(DOWN,1),COLORFF00FF,LINETHICK2;

TR0:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/TR0,COLORRED;
MDI:=DMM*100/TR0,COLOR00FF00;
PM:PDI-MDI,COLOR00FF00,NODRAW;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6),COLORFFFFFF,NODRAW;
A5:=PDI>=MDI;
B5:=MDI>PDI;
STICKLINE(A5,0,0.1,5,0)COLOR000099;
STICKLINE(B5,0,0.1,5,0)COLOR009900;
STICKLINE(DOWN,10,9.9,5,0),COLOR00FF00;
STICKLINE(UP,10,9.9,5,0),COLOR000099;

TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,0.2,0.8,5,0),COLORFF33FF;
STICKLINE(TJ1,0.2,0.8,1.5,0),COLORFF55FF;
STICKLINE(TJ1,0.2,0.8,0.8,0),COLORFF77FF;
STICKLINE(TJ1,0.2,0.8,0.2,0),COLORFF99FF;

HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
STICKLINE(TJ2,0.2,0.6,5,0),COLOR008888;
STICKLINE(TJ2,0.2,0.6,2,0),COLOR00AAAA;
STICKLINE(TJ2,0.2,0.6,1,0),COLOR00CCCC;
STICKLINE(TJ2,0.2,0.6,0.2,0),COLOR00FFFF;
STICKLINE(BT,0.2,0.4,5,0),COLOR0000AA;
STICKLINE(BT,0.2,0.4,1.5,0),COLOR0000CC;
STICKLINE(BT,0.2,0.4,0.2,0),COLOR0000FF;
ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
STICKLINE(ST,9.8,9.4,5,0),COLOR008800;
STICKLINE(ST,9.8,9.4,2,0),COLOR00AA00;
STICKLINE(ST,9.8,9.4,1,0),COLOR00CC00;
STICKLINE(ST,9.8,9.4,0,0),COLOR00FF00;

RV

LC := REF(C,1);
RSI1:SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100,COLORFFFFFF;
RSI2:=SMA(MAX(CLOSE-LC,0),34,1)/SMA(ABS(CLOSE-LC),34,1)*100,COLORYELLOW;
RSI1A:FORCAST(RSI1 ,21),COLORFF8800,LINETHICK2;
Q:IF(RSI1A>REF(RSI1A,1),RSI1A,DRAWNULL),COLOR0000FF,LINETHICK2;
RSI2A:FORCAST(RSI2 ,55),COLORFF00FF,POINTDOT;

RVI

{動力};

N1:=6;N2:=12;N3:=24;

LC:=REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORWHITE,LINETHICK1;

RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,COLOR0088EE;

RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORD900D9,LINETHICK1;

STICKLINE(RSI1>80,80.5,80,13,0),COLORGREEN;

STICKLINE(RSI1<=20,20,19.5,13,0),COLORGREEN;

{壓力和支撐};

HIGHN:=3;

LOWN:=HIGHN;

AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1);

賣出:=DRAWICON(CC,RSI1*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{頂部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

上軌:=DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1) COLOR00FF00,LINETHICK1;

峰1:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,ISLASTBAR,REF(RSI1,GDCS2-1),1),

COLOR00FF00,POINTDOT,LINETHICK3;

峰2:DRAWLINE(CURRBARSCOUNT=GDCS1,RSI1,ISLASTBAR,REF(RSI1,GDCS1-1),1),

COLORFFFF55,LINETHICK1;

AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND RSI1=LLV(RSI1,LOWN+1);

介入:DRAWICON(ISLASTBAR AND CC1,RSI1*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(RSI1,DD1),RSI1); {底部}

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

下軌:=DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1) COLORRED,LINETHICK1;

谷1:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBAR,REF(RSI1,DDCS2-1),1),

COLOR00AAFF,POINTDOT,LINETHICK3;

谷2:DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBAR,REF(RSI1,DDCS1-1),1),

COLOR00FFFF,LINETHICK1;

{起爆點};

MV3:=EMA(V,3);

MA3:=EMA(C,3);

MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;

MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;

MV5:=EMA(V,5);

MA5:=EMA(C,5);

MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;

MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;

MV10:=EMA(V,10);

MA10:=EMA(C,10);

MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;

MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

強弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;

QBD:=CROSS(強弱度,50) AND COUNT(強弱度>50,7)<=3;

天量:=IF(強弱度>=80,30,DRAWNULL),COLOR00FF00,STICK,LINETHICK1;

啟爆:=IF(QBD AND COUNT(QBD,4)=1,20,DRAWNULL),COLORFF00FF,STICK,LINETHICK1;

{視窗};

MFI:=(H-L)*1000000/V;

綠窗:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1,COLORGREEN,NODRAW;

衰退:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9,COLORWHITE,NODRAW;

偽裝:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9,COLORCYAN,NODRAW;

蟄伏:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1,COLORYELLOW,NODRAW;  

DRAWTEXT(ISLASTBAR AND 綠窗,50,'*'),COLORGREEN,LINETHICK5; 

DRAWTEXT(ISLASTBAR AND 蟄伏,10,'*'),COLORYELLOW;

{RSI}

RSI6:RSI1,COLORCCCCCC;

RSI12:=RSI2,COLOR00EEEE;

{完};

R6

短線止損線:=EMA(CLOSE,17);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
中線止損線:=EMA(X,13);
上漲天數(shù):=BARSLAST(短線止損線<中線止損線);
下跌天數(shù):=BARSLAST(短線止損線>中線止損線);
KKA:=EMA(C,5);
KKB:=EMA(KKA,8);
KKC:=EMA(KKB,13);
長線止損線:=EMA(KKC,50);

AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);

SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;

N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;

KAAA:=J<D AND DIF>DEA;
KDDD:=C/中線止損線<1.2;
KCCC:=上漲天數(shù)<20;
KBBB:=IF(REF(J,3)>REF(D,3) AND KAAA AND KDDD AND KCCC,25,0);

N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
飽和度:=IF(SAT>1,1,SAT)*100;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撐:=LLV(持股,3);
中期線:=MA(持股,12);
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
短期線:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
KDD:=REF(中期,1)<1 AND 中期>1;
AA:=C/REF(C,1)>1.09;

KMMM:=REF(中期,1)<1 AND 中期>1;

KDDDD:=飽和度>=97 AND CQ>90 AND 中期線<50;
KEEEE:=C/O>1.015;
KFFFF:=BARSLAST(CROSS(短期線,中期線))<10;
KAAX:=KDDDD AND KEEEE AND KFFFF;
KAAY:=IF(REF(KAAX,1) OR REF(KAAX,2),0,1);
KAAB:=KAAX AND KAAY;

W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));

KL:=飽和度>=97 AND CQ>90;
KK:=W4 AND COUNT(W4,5)=1;

KKKK:=KL OR KK;
KKAA:=IF(AA,0,1);
KKBB:=IF(C/中線止損線>1.15,1,0);

KMA:=KKKK AND KKAA;
KMB:=REF(KKKK,1) AND KKAA AND REF(AA,1);
KMC:=KMA OR KMB;

KYA:=CROSS(C2,C3);
KYB:=上漲天數(shù)<30;
KYD:=EXIST(KAAB,20);
KYC:=KYA AND KYB AND KYD;

KAAA1:=EXIST(KDD,3);
KBBB1:=C/REF(C,1)>1+0.01*9;

KAAA2:=支撐>中期線 AND 持股=支撐;
KBBB2:=CROSS(C2,C3);
KCCC2:=EXIST(C/REF(C,1)>1+0.01*9,10);
KDDD2:=BARSLAST(中期線>短期線)<10;

KAAA3:=REF(C,1)<REF(中線止損線,1) AND C>中線止損線;
KBBB3:=C/REF(C,1)>1.09;
KCCC3:=中線止損線/長線止損線<1.1;
KA1:=KAAA1 AND KBBB1;
KA2:=KAAA2 AND KBBB2 AND KCCC2;
KA3:=KAAA3 AND KBBB3  AND KCCC3;
反轉:IF(KA1,80,0),LINETHICK3,COLORRED;
回馬槍:IF(KA2,80,0),LINETHICK3,COLORYELLOW;
突破:IF(KA3,80,0),LINETHICK3,COLORWHITE;
DRAWTEXT(KA1,80,'V型'),COLORYELLOW;
DRAWTEXT(KA1,60,'反轉'),COLORYELLOW;
DRAWTEXT(KA1,40,'日線'),COLORRED;
DRAWTEXT(KA1,20,'有效'),COLORRED;

DRAWTEXT(KA2,80,'漲停'),COLORYELLOW;
DRAWTEXT(KA2,60,'回馬槍'),COLORYELLOW;
DRAWTEXT(KA2,40,'日線'),COLORRED;
DRAWTEXT(KA2,20,'有效'),COLORRED;

DRAWTEXT(KA3,80,'趨勢'),COLORYELLOW;
DRAWTEXT(KA3,60,'突破'),COLORYELLOW;
DRAWTEXT(KA3,40,'日線'),COLORRED;
DRAWTEXT(KA3,20,'有效'),COLORRED;

STICKLINE(下跌天數(shù)>30,0,2,4,0),COLORWHITE;
STICKLINE(上漲天數(shù)>30,98,100,4,0),COLORGREEN;
STICKLINE(KAAA AND KCCC AND KDDD,0,5,4,0),COLORYELLOW;
STICKLINE(KMMM,0,20,2,0),COLORWHITE;
STICKLINE(KMC,80,100,2,0),COLORGREEN;
STICKLINE(KMC AND 上漲天數(shù)>30,80,100,2,0),COLORRED;
反彈:KMMM,STICK,COLORWHITE;
短出:KMC,STICK,COLORGREEN;
中出:KMC AND 上漲天數(shù)>30,STICK,COLORRED;
蓄勢:KBBB,STICK,COLORFF00FF;
洗盤:=IF(KAAA AND KCCC AND KDDD,10,0),COLORYELLOW,LINETHICK2;
建倉:IF(下跌天數(shù)>30,5,0),COLORWHITE;
出貨:IF(上漲天數(shù)>30,95,100),COLORGREEN;

LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORGRAY;

B1

{界定超買區(qū)域}
230,COLOR888888;250,COLOR888888;
STICKLINE(C>0,-20,-20,6,0),COLOR0000aa;

{趨勢線};
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TTR);
MDI:=((DMM * 100) / TTR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
趨勢線:=LLV(階段底部,1),COLOR00FF00,NODRAW;
STICKLINE((階段底部 >= 0),0,階段底部,2,1),COLORBLUE;
底:STICKLINE(C>0,20,0,8,0),COLOR000066;
STICKLINE((階段底部 <20),20,階段底部,2,1),COLOR000088;

{買入條件};
F:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
TTJ:=CROSS(F,MA15);
上:=EMA(C,3),COLORBLUE,LINETHICK1;
中:=EMA(C,5),COLORWHITE,LINETHICK1;
下:=EMA(中,5),COLOR00FF00,LINETHICK1;
QQ:= C<中;
MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2>0,MA2,MA2);
MA5:=MA(CLOSE,5),COLOR888899;
MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C>=REF(C,1) AND C>=REF(C,2);
{收盤價=4日內(nèi)收盤價的最高值 AND 昨收>=2日前的收盤價}
VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
{收盤價=4日內(nèi)收盤價的最高值 AND 昨收=4日內(nèi)收盤價的最低值}
VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND
C<REF(C,1) AND C<REF(C,2);
{收盤價=4日內(nèi)收盤價的最低值 AND (昨收<2日前的收盤價}
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
{昨收=4日內(nèi)收盤價的最低值 AND 收盤價>=2日前的收盤價}
VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND
REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
REF(C,2)>=REF(C,4) AND C<REF(C,1);
{昨收=4日內(nèi)收盤價的最高值 AND 收盤價<2日前的收盤價}
VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
{今日V5向上形成拐點}
VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
VAR08:=VAR07 AND COUNT(VAR06,2);
VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR10:=EMA(MA(C,13),13);
VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND
CROSS(VAR09,MA(VAR09,2)))=1,5);
VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND
CROSS(MA(VAR09,2),VAR09))=1,1);
VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VAR16:=VAR08 AND NOT(REF(VAR08,1));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
買1:=(VAR14 OR VAR15) AND VAR11;
買2:=(VAR14 OR VAR15) AND VAR04;
買3:=(VAR14 OR VAR15) AND VAR02;
買4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
TTJ0:=VAR16;
TTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM;
XG0:=TTJ AND TTJ0;
XG1:=TTJ AND TTJ1;
XG11:=XG0 OR XG1;

{以下波浪理論浪底重疊'買底'選股原碼}
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),1) AND REF(ZIG(3,5),1)>=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),1) AND REF(ZIG(3,10),1)>=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),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走強1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走強2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走強3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
TJ11:=EN2 AND ZTJZ5=1;
TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
TJ33:=EN2 AND DTJZ10=1;
TJ44:=EN3 AND ZTJZ10=1;
TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;
XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;
{以下二者結合共同選股}
XG:=XG11 OR XG22;
W18:=EXIST(XG,1);

{漲跌比};
跌家數(shù):=INDEXDEC,COLOR00FF00,NODRAW;
漲家數(shù):=INDEXADV,COLORFF00FF,NODRAW;
漲跌比:=漲家數(shù)/跌家數(shù),COLORFFFFFF,NODRAW;

{圖象輸出};
波:MA(趨勢線,5),COLORRED,LINETHICK1;
浪:趨勢線,COLORFF6600,NODRAW;
買入:=DRAWICON(FILTER((趨勢線>REF(趨勢線,1) AND 趨勢線<30 ) AND CROSS(趨勢線,0),3),-15,1);
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
幅:MA(TR1,14) ,NODRAW,COLORWHITE;

{起爆點};
倍量:IF(V/REF(V,1)>=2,-12,-20),COLOR000088;
MV3:=EMA(V,3);
MA3A:=EMA(C,3);
MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;
MA3角度:=ATAN((MA3A/REF(MA3A,1)-1)*100)*180/3.1416;
MV5:=EMA(V,5);
MA5A:=EMA(C,5);
MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;
MA5角度:=ATAN((MA5A/REF(MA5A,1)-1)*100)*180/3.1416;
MV10:=EMA(V,10);
MA10:=EMA(C,10);
MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;
MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
強弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;
QBD:=CROSS(強弱度,50) AND COUNT(強弱度>50,7)<=3;
啟爆:IF(QBD AND COUNT(QBD,4)=1,240,DRAWNULL),COLOR00FFFF,CIRCLEDOT,LINETHICK3;

{視窗};
MFI:=(H-L)*100000/V,NODRAW,COLOR33FF33;
A1:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1;
A2:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9;
A3:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9;
A4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1;
綠窗:IF(A1=1,240,DRAWNULL),COLORGREEN,CIRCLEDOT;
衰退:IF(A2=1,240,DRAWNULL),COLORRED,CIRCLEDOT;
偽裝:IF(A3=1,240,DRAWNULL),COLORCC6600,CIRCLEDOT;
蟄伏:IF(A4=1,240,DRAWNULL),COLORFF00FF,CIRCLEDOT;

{買入信號};
STICKLINE(W18 AND 趨勢線<110,0,-20,2,0),COLOR0077AA;
STICKLINE(W18 AND 趨勢線<110,0,-20,1,0),COLOR0099CC;
STICKLINE(W18 AND 趨勢線<110,0,-20,0.5,0),COLOR00AAEE;
STICKLINE(W18 AND 趨勢線<110,0,-20,0,0),COLOR00CCFF;
STICKLINE(C>0,200,200,6,0),COLOR000088;
STICKLINE(趨勢線>230,200,201,13,0),COLORCYAN;
 
B2

230,COLOR888888;250,COLOR888888;
倍量:IF(V/REF(V,1)>=2,210,200),COLOR0000FF;
STICKLINE(C>0,200,200,6,0),COLOR0000AA;
STICKLINE(C>0,-20,-20,5,0),COLOR0000AA;

{底部信號}
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*600;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
MMM:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;
SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;
GG:=MA(HHH,5),LINETHICK1,COLORGREEN;
MM1:=MA(CCC,5),LINETHICK1,COLORGREEN;
WW:=IF(MMM<GG ,SS,MM1),LINETHICK1, COLORCYAN;
EE:=IF(SS<MM1 ,GG,MMM),COLORFFFFCC,LINETHICK1;
M1:=EE-WW,COLORYELLOW;
底部:=IF(EE-WW<0.26,200,0),COLOR0000FF,STICK;

{RSI畫線}
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TTR);
MDI:=((DMM * 100) / TTR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
趨勢線:=LLV(階段底部,1),COLOR00FF00,NODRAW;
DB:=IF(FILTER((趨勢線>REF(趨勢線,1) AND 趨勢線<20) AND CROSS(趨勢線,0),3),200,0),STICK,COLORRED;

{買底條件}
F:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
TTJ:=CROSS(F,MA15);
上:=EMA(C,3),COLORBLUE,LINETHICK1;
中:=EMA(C,5),COLORWHITE,LINETHICK1;
下:=EMA(中,5),COLOR00FF00,LINETHICK1;
QQ:= C<中;
MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2>0,MA2,MA2);
MA5:=MA(CLOSE,5),COLOR888899;
MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C>=REF(C,1) AND C>=REF(C,2);
{收盤價=4日內(nèi)收盤價的最高值 AND 昨收>=2日前的收盤價}
VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
{收盤價=4日內(nèi)收盤價的最高值 AND 昨收=4日內(nèi)收盤價的最低值}
VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND
C<REF(C,1) AND C<REF(C,2);
{收盤價=4日內(nèi)收盤價的最低值 AND (昨收<2日前的收盤價}
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
{昨收=4日內(nèi)收盤價的最低值 AND 收盤價>=2日前的收盤價}
VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND
REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
REF(C,2)>=REF(C,4) AND C<REF(C,1);
{昨收=4日內(nèi)收盤價的最高值 AND 收盤價<2日前的收盤價}
VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
{今日V5向上形成拐點}
VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
VAR08:=VAR07 AND COUNT(VAR06,2);
VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR10:=EMA(MA(C,13),13);
VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND
CROSS(VAR09,MA(VAR09,2)))=1,5);
VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND
CROSS(MA(VAR09,2),VAR09))=1,1);
VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VAR16:=VAR08 AND NOT(REF(VAR08,1));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
買1:=(VAR14 OR VAR15) AND VAR11;
買2:=(VAR14 OR VAR15) AND VAR04;
買3:=(VAR14 OR VAR15) AND VAR02;
買4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
TTJ0:=VAR16;
TTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM;
XG0:=TTJ AND TTJ0;
XG1:=TTJ AND TTJ1;
XG11:=XG0 OR XG1;

{以下波浪理論浪底重疊'買底'選股原碼}
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),1) AND REF(ZIG(3,5),1)>=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),1) AND REF(ZIG(3,10),1)>=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),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走強1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走強2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走強3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
TJ11:=EN2 AND ZTJZ5=1;
TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
TJ33:=EN2 AND DTJZ10=1;
TJ44:=EN3 AND ZTJZ10=1;
TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;
XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;
{以下二者結合共同選股}
XG:=XG11 OR XG22;
W18:=EXIST(XG,1);

STICKLINE(C>0,0,20,6,0),COLOR000088;
DRAWBAND(階段底部,RGB(100,10,15),0,RGB(255,0,0));
DRAWBAND(階段底部,RGB(0,0,255),20,RGB(255,0,0));
STICKLINE(趨勢線>230,202,200,9,0),COLORCYAN;
波:MA( 趨勢線,5),COLORRED,LINETHICK1;
浪:IF(趨勢線>0,趨勢線,DRAWNULL),COLORFF3100,LINETHICK1;

TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
幅:MA(TR1,14),NODRAW,COLORFF3100;

{起爆點};
MV3:=EMA(V,3);
MA3A:=EMA(C,3);
MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;
MA3角度:=ATAN((MA3A/REF(MA3A,1)-1)*100)*180/3.1416;
MV5:=EMA(V,5);
MA5A:=EMA(C,5);
MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;
MA5角度:=ATAN((MA5A/REF(MA5A,1)-1)*100)*180/3.1416;
MV10:=EMA(V,10);
MA10:=EMA(C,10);
MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;
MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
強弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;
QBD:=CROSS(強弱度,50) AND COUNT(強弱度>50,7)<=3;
啟爆:IF(QBD AND COUNT(QBD,4)=1,240,DRAWNULL),COLOR00FFFF,LINETHICK1,CIRCLEDOT;

{視窗};
MFI:=(H-L)*100000/V,NODRAW,COLOR33FF33;
A1:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1;
A2:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9;
A3:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9;
A4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1;
綠窗:IF(A1=1,240,DRAWNULL),COLORGREEN,CIRCLEDOT;
衰退:IF(A2=1,240,DRAWNULL),COLORRED,CIRCLEDOT;
偽裝:IF(A3=1,240,DRAWNULL),COLORCC6600,CIRCLEDOT;
蟄伏:IF(A4=1,240,DRAWNULL),COLORFF00FF,CIRCLEDOT;

{買入信號};
JJ:=DRAWICON(W18 AND 趨勢線<80,0,1);
STICKLINE(W18 AND 趨勢線<110,0,-20,3,0),COLOR0099FF;
STICKLINE(W18 AND 趨勢線<110,0,-20,2.5,0),COLOR00CCFF;
STICKLINE(W18 AND 趨勢線<110,0,-20,1,0),COLOR00EEFF;
STICKLINE(W18 AND 趨勢線<110,0,-20,0,0),COLOR00FFFF;


B3

LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TTR);
MDI:=((DMM * 100) / TTR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
STICKLINE((階段底部 >= 0),0,階段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((階段底部 < 0),0,階段底部,0.8,1),LINETHICK6,COLORRED;
趨勢線:=LLV(階段底部,1),COLORFFFFFF;
STICKLINE((趨勢線 >230 ),230,趨勢線,0.8,1),LINETHICK6,COLORGREEN;
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;
SS:=(MA(CCC,2)*3+CCC*13)/16;
GG:=MA(HHH,8),LINETHICK1,COLORGREEN;
MM:=MA(CCC,5);
WW:=IF(QQ<GG ,SS,MM);
EE:=IF(SS<MM ,GG,QQ);
買:IF(EE-WW<5.6,200,0),COLORRED,LINETHICK1;
QS:MA(階段底部,5),COLOR0000AA;


R7
{界定強弱區(qū)域的色帶};
STICKLINE(C>0,80,20,8,0),COLOR353535;
STICKLINE(C>0,30,70,8,0),COLORFF5800;
STICKLINE(ISLASTBAR,50,50,8,0),COLORLIGRAY;

{視窗};
MFI:=(H-L)*100000/V,NODRAW,COLOR33FF33;
視窗:=IF(C>0,16,DRAWNULL),CIRCLEDOT,COLORWHITE,LINETHICK2;
綠窗:IF(MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1,8,0),STICK,COLORGREEN,LINETHICK1;
衰退:IF(MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9,8,0),STICK,COLORRED,LINETHICK1;
偽裝:IF(MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9,8,0),STICK,COLOREE5500,LINETHICK1;
蟄伏:IF(MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1,8,0),STICK,COLORMAGENTA,LINETHICK1; 

{起爆點};
MV3:=EMA(V,3);
MA3:=EMA(C,3);
MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;
MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;
MV5:=EMA(V,5);
MA5:=EMA(C,5);
MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;
MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
MV10:=EMA(V,10);
MA10:=EMA(C,10);
MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;
MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
強弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;
QBD:=CROSS(強弱度,50) AND COUNT(強弱度>50,7)<=3;
啟爆:IF(QBD AND COUNT(QBD,4)=1,8,0),COLOR00FFFF,STICK,LINETHICK3;
倍量:IF(V/REF(V,1)>=2,8,0),COLORFFFFFF,STICK,LINETHICK1;

{信號顯示區(qū)域};
STICKLINE(C>0,10,8,6,0),COLOR30808A;
STICKLINE(C>0,-1,1,6,0),COLOR308060;

{相對強弱值};
LC :=REF(C,1);
RSI1:=SMA(MAX(C-LC,0),9,1)/SMA(ABS(C-LC),9,1)*100;

{壓力和支撐};
HIGHN:=3;
LOWN:=HIGHN;
AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1);
賣出:=DRAWICON(CC,RSI1*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{頂部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
上軌:=DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1) COLORAAAAAA,LINETHICK2;
峰1:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,ISLASTBAR,REF(RSI1,GDCS2-1),1),
COLOR00FF00,POINTDOT,LINETHICK3;
STICKLINE(峰1>70,峰1,峰1,9,0),COLORGREEN;
峰2:DRAWLINE(CURRBARSCOUNT=GDCS1,RSI1,ISLASTBAR,REF(RSI1,GDCS1-1),1),
COLORLIGRAY,POINTDOT,LINETHICK3;
STICKLINE(峰2>70,峰2,峰2,9,0),COLOREE3355;
AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND RSI1=LLV(RSI1,LOWN+1);
介入:=DRAWICON(CC1,RSI1*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(RSI1,DD1),RSI1); {底部}
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
下軌:=DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1) COLOR0000AA,LINETHICK2;
谷1:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBAR,REF(RSI1,DDCS2-1),1),
COLORYELLOW,POINTDOT,LINETHICK3;
STICKLINE(谷1<30,谷1,谷1,9,0),COLORYELLOW;
谷2:DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBAR,REF(RSI1,DDCS1-1),1),
COLORRED,POINTDOT,LINETHICK3;
STICKLINE(谷2<30,谷2,谷2,9,0),COLORRED;

{背離信號};
A3:=CC;
B3:=BARSLAST(REF(CC,1));
頂背離:=REF(CLOSE, B3+1)<CLOSE AND REF(RSI, B3+1)>RSI 
AND A3;
AB5:=CC1;BA5:=BARSLAST(REF(CC1,1));
底背離:=REF(CLOSE, BA5+1)>CLOSE AND REF(RSI, BA5+1)<RSI AND AB5;
U1:DRAWICON(頂背離>0 AND RSI>65,75,2);
U2:DRAWICON(底背離>0 AND RSI<35,25,1);
Z1:=DRAWTEXT(底背離 AND RSI<40,21,'抄'),COLORYELLOW;
Z2:=DRAWTEXT(頂背離 AND RSI>60,90,'逃'),COLORCYAN;

{副圖顯示};
強度:RSI1,COLORFF08FF;
均值:MA(RSI1,8),COLORGREEN,LINETHICK1;
IF(均值>=REF(均值,1),均值,DRAWNULL),COLORRED,LINETHICK1;

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
通達信主副圖指標集錦
紫買黃賣
【新提醒】多空博弈
只需2個指標(含未來數(shù)據(jù))
天龍主圖
實用技術指標
更多類似文章 >>
生活服務
熱點新聞
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服