使用方法:紅塊結(jié)速低吸準(zhǔn)備拉升
直接復(fù)制以下源代碼,在公式管理器中新建指標(biāo)公式,復(fù)制進(jìn)去就可以用了:
頂部:100,LINETHICK1,COLORYELLOW;
高風(fēng)險(xiǎn):90,POINTDOT,COLORMAGENTA;
高位區(qū):80,POINTDOT,COLORMAGENTA;
分界線:50,POINTDOT,COLORWHITE;
低位區(qū):20,POINTDOT,COLORBLUE;
低分險(xiǎn):10,POINTDOT,COLORBLUE;
零軸:0,LINETHICK1,COLORYELLOW;
VAR1:=HHV(HIGH,55);
VAR2:=LLV(LOW,55);
空倉:SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1)*100,COLORYELLOW,LINETHICK2;
持股:EMA(HHV(空倉,3),1),COLORRED,LINETHICK2;
DRAWICON((持股=空倉) AND(REF(持股-空倉,1)>0),50,1);
DRAWICON((持股>空倉) AND(REF(持股-空倉,1)=0),50,2);
{DRAWTEXT((持股>空倉) AND (持股-空倉)<(REF(持股-空倉,1)),45,'☆');}
{黃金買入}
VAR11:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);
VAR12:=SMA(VAR11,9,1);
安全線:=EMA(VAR12,3),COLORFFFFFF;
H1:=MAX(REF(C,1),HIGH);
L1:=MIN(REF(C,1),LOW);
P1:=H1-L1;
DF1:=L1+P1*7/8,COLORGREEN;
DF2:=L1+P1*0.5/8,COLORRED;
DF3:=(DF2+DF1)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì)線:=EMA(V11,3),LINETHICK,COLORLIBLUE;
RSV:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
支撐線:=SMA(RSV,5,1),COLORYELLOW;
MOV0:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);
MOV1:=SMA(MOV0,9,1),COLORGREEN;
MOV2:=EMA(MOV1,3),COLORLIRED;
MOV3:=EMA(MOV2,3),COLORFFCC66;
MOV4:=EMA(MOV3,3),COLORCC9966;
MOV5:=EMA(MOV4,3),COLORCC6666;
BB0:=IF(REF(趨勢(shì)線,1)<11 AND CROSS(趨勢(shì)線,11) AND C<DF3,50,0);
DD1:=REF(趨勢(shì)線,1)>89 AND REF(趨勢(shì)線,1)<94 AND CROSS(89,趨勢(shì)線);
DD0:=REF(趨勢(shì)線,1)>89 AND CROSS(89,趨勢(shì)線) AND C>MA(C,250);
DD2:=REF(趨勢(shì)線,1)>94 AND REF(趨勢(shì)線,1)<97 AND CROSS(94,趨勢(shì)線);
DD3:=REF(趨勢(shì)線,1)>97 AND REF(趨勢(shì)線,1)>99 AND CROSS(97,趨勢(shì)線);
DD4:=REF(趨勢(shì)線,1)>99 AND REF(趨勢(shì)線,1)<100 AND CROSS(99,趨勢(shì)線);
DD5:=REF(趨勢(shì)線,1)>100 AND CROSS(100,趨勢(shì)線);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
STICKLINE(趨勢(shì)線<11,0,-5,4,0),COLORRED;
STICKLINE(趨勢(shì)線>89,100,105,4,0),COLORGREEN;
DRAWICON(CROSS(MOV1,MOV2),50,1);
DRAWICON(CROSS(MOV2,MOV1),50,2);
買入:BB0,COLORRED;
DRAWTEXT(買入,50,'低位可以買入'),COLORRED;
DRAWTEXT(DD1,50,'高處注意風(fēng)險(xiǎn)'),COLORLIBLUE;
DRAWICON(買入,50,1);
{/*順勢(shì)而為*/}
R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
PERIODD:=7;
EMA1:=EMA(R,PERIODD);
EMA2:=EMA(EMA1,4);
DIFFERENCE:=EMA1-EMA2;
ZEROLAGEMA:=EMA1+DIFFERENCE;
看好了:=100-ABS(ZEROLAGEMA);
隨行線:=MA(看好了,4),COLORYELLOW,LINETHICK1;
K:=14;
FFILTER:=(K/100)*STD(看好了-REF(看好了,1),9);
XA:=IF(看好了<REF(看好了,1),看好了,0);
XN:=BARSLAST(XA>0 );
AMALOW:=REF(看好了,XN);
YA:=IF(看好了>REF(看好了,1),看好了,0);
YN:=BARSLAST(YA>0);
AMAHIGH:=REF(看好了,YN);
RR:=IF(AMAHIGH-看好了>FFILTER,-1,0);
TT:=IF(看好了-AMALOW>FFILTER,1,RR);
BYX:=看好了;
{FILLRGN(BYX,REF(BYX,1),BYX>REF(BYX,1),COLORLIRED,BYX<REF(BYX,1),COLORLIGREEN);}
{/*大盤趨勢(shì)*/}
VAR1D:=HHV(INDEXH,55);
VAR2D:=LLV(INDEXL,55);
VAR3D:=SMA((INDEXC-VAR2D)/(VAR1D-VAR2D),8,1)*100;
大盤趨勢(shì):EMA(HHV(VAR3D,3),1),COLORBLUE,LINETHICK2;
聯(lián)系客服