源代码:
q1=(close-refBefore(close,1))/refBefore(close,1)*100;
q2=(close-lowest(low,18))/(highest(high,18)-lowest(low,18))*100;
q3=sma(q2,9,1);
q4=sma(q3,3,1);
aa=3*q3-2*q4;
draw(aa,color="#1010ff");
q5=aa>1*refBefore(aa,1);
q6=barsFromLowest(low,50);
q7=sum(vol,q6);
q8=barsFromHighest(high,50);
q9=sum(vol,q8);
q10=(close-refBefore(open,q8))/refBefore(open,q8)*100;
q11=highest(aa,5);
a1=ema(q3,3);
draw(a1,color="#ffddcc");
a2=ema(a1,3);
draw(a2,color="#ffbbcc");
a3=ema(a2,3);
draw(a3,color="#ff99cc");
a4=ema(a3,3);
draw(a4,color="#ff55cc");
a5=ema(a4,3);
draw(a5,color="#ff33cc");
a6=ema(a5,3);
draw(a6,color="#ff11cc");
a=ema(a4,3);
draw(a,color="#ff00cc");
drawText(isCrossUp(aa,20)&&q10<-13,10,"*大底",color="#00ff00");
drawText(isCrossUp(aa,a5)&&refBefore(aa,1)<34,refBefore(aa,1),"小",color="#00ff00");
drawText(isCrossUp(a1,aa)&&refBefore(aa,1)>80,refBefore(aa,3),"*顶",color="#00ff00");
drawText(isCrossUp(aa,a1)&&q5&&a1<20&&q1>9||a1>1*refBefore(a1,1)&&q1>4&&a1<60,30,"拉",color="#ffffcc");