J线100超买0超卖,短期上穿中期时买,配合MACD使用效果更佳。
顶A有未来函数不喜欢可以设置不使用。
高:84,COLORFFFF00,LINETHICK1;
卖:94,COLORFF0000,LINETHICK5;
低:13,COLOR208FFF,LINETHICK1;
0;
TJ1:=(C-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
TJF:=SMA(TJ1,13,8);
TJFF:=SMA(TJ1,13,4);
DRAWBAND(TJF,RGB(175,0,0),TJFF,RGB(70,100,50));
中轴:45,COLOR555555;
AR1:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
AR2:=SMA(AR1,3,1);
AR3:=SMA(AR2,3,1);
AR4:=SMA(AR3,3,1);
MMCD:=3*(AR3-AR4);
STICKLINE(MMCD>0,MMCD+45,45,0.0,0),COLOR0000DD;
STICKLINE(MMCD<0,MMCD+45,45,0.0,0),COLORDDDD00;
DRAWTEXT(ISLASTBAR AND TJF>REF(TJF,1),TJF,' '),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND TJF<REF(TJF,1),TJF,' '),colorcyan;
DRAWTEXT(ISLASTBAR,卖,''),COLORFFFF00;
DRAWTEXT(ISLASTBAR,低,''),COLOR208FFF;
DRAWICON(CROSS(TJF,89),TJF,4);
DRAWTEXT_FIX(1,0.01,0.82,0,),colorred;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
短期:3*Q3-2*Q4,colorwhite,LINETHICK3;
中期:EMA(Q3, 3),colorred,LINETHICK3;
DRAWTEXT(CROSS(中期, 短期) AND REF(短期,1)>80, REF(短期,3), '▼卖'), COLOR00FF00,LINETHICK5;
▲低: DRAWTEXT(REF(CROSS(中期,短期),82) AND 中期>1.3*短期,短期,'▲低'), COLOR00FFFF, LINETHICK1;
▲买: DRAWTEXT(REF(CROSS(短期,中期),1) AND 短期>1.3*中期,中期,'▲买'),colorblue,LINETHICK1;
VAR3:=PEAKBARS(3,5,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),colorgreen, LINETHICK2;
DRAWTEXT(顶A=50,45,'逃'),COLOR00FF00;
N=9;
M1=3;
M2=3;
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
K:a;
D:b;
J:e;