N:=15;M1:=7;M2:=6;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
红军:SMA(RSV,M1,1),LINETHICK2,COLORMAGENTA;
白匪:SMA(红军,M2,1),LINETHICK3,COLORWHITE;
{ 爱约股_通达信股票指标公式}
股民:=3*红军-2*白匪;
瞄准:=CROSS(股民,白匪 )AND CROSS(股民,红军)AND 红军 <40 AND 白匪<50 AND 股民<50;
DRAWICON(瞄准=1,20,1);
DRAWTEXT(瞄准,30,'开炮'),COLORYELLOW;