V1:=EMA(CLOSE,60)-EMA(CLOSE,300);V2:=EMA(V1,300);V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;V4:SMA(V3,2,1);V5:SMA(V4,2,1);V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=BACKSET(V6,3);买入:IF((V7 AND COUNT(V7,3)=1),30,0),LINETHICK2,COLORRED;DRAWTEXT(买入,32,'买入'),COLORRED;
公式源码示例:
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买入:V7 AND COUNT(V7,3)=1;