源码
n:=6;
m1:=3;
m2:=2;
m3:=10;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1) ,LINETHICK1 , colorblue;
D:SMA(K,M2,1) ,LINETHICK1 , colorred;
SHELL:90 ,LINETHICK2 , colorred;
买点1:IF (LOW<=HHV(HIGH ,M3 )*0.905 AND D<=22,50,3),LINETHICK2 , colorred;
买点2:IF (LOW<=LLV(LOW ,M3) AND D<=40,30,0),LINETHICK2 , COLOR009933;
买点3:LOW<=LLV(LOW ,M3)*0.905*0.905+0.20 ,LINETHICK2 , colorred;
买点5:IF (LOW<=LLV(LOW ,M3)*0.86+0.20 AND D<=40,60,2),LINETHICK2 , COLOR009933;
卖点:IF (HIGH>=LLV(LOW ,M3)*1.1382 AND D>=70,90,0),LINETHICK2 , colorred;
卖点1:IF (HIGH>=LLV(LOW ,M3)*1.1382*1.1382 AND D>=76,95,0),LINETHICK2 , COLOR0099CC ;
卖点2:IF (HIGH>=LLV(LOW ,M3)*1.1382*1.1382*1.1382 AND D>=85,95,0),LINETHICK2 , COLOR0099CC ;
DRAWTEXT(LOW<=HHV(HIGH ,M3 )*0.905+0.1,买点1,'0') ,colorred;
DRAWTEXT(LOW<=HHV(HIGH ,M3 )*0.905*0.905+0.1,买点1,'0'),colorred;
DRAWTEXT(HIGH>=LLV(LOW ,M3)*1.1382+0.10 ,卖点,'m'),LINETHICK2 , color00ffff;
DRAWTEXT(HIGH>=LLV(LOW ,M3)*1.1382*1.1382-0.15 ,卖点1,'m'),LINETHICK2 , color00ff00;