九毛八公式指标
MA1:MA(CLOSE,P1); MA21:REF(MA1,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; b:=if(CROSS(K,D),h,0); a:=if(ref(cross(k,d),1),h,0);;(显示0 错了) DRAWTEXT( cross(k,d) ,h*1.01 ,'这次金叉B高点价'+b),colorwhite; DRAWTEXT( cross(k,d) ,h*1.02 ,'上次金叉A高点价'+a),colorwhite;(显示0 错了) DRAWTEXT(b,h,NUMTOSTR(b)),Color00FFFF,LINETHICK2,ALIGN2;
公式模块:
a:=if(ref(cross(k,d),1),ref(ref(h,barslast(cross(k,d))),2),0);