VAR1:=(EMA(CLOSE,60) - EMA(CLOSE,300));
VAR2:=EMA(VAR1,300);
VAR3:=(((CLOSE - LLV(LOW,8)) / (HHV(HIGH,8) - LLV(LOW,8))) * 100);
VAR4:=SMA(VAR3,2,1);{股票指标网}
VAR5:=SMA(VAR4,2,1);
VAR6:=((CLOSE / REF(CLOSE,3)) >= 1.1);
VAR7:=BACKSET(VAR6,3);
VV:=(VAR7 AND (COUNT(VAR7,3) = 1)),COLORFF00FF;
XG1:IF(VV,1,0);
XG2T:IF(COUNT(VV,2)>=1,1,0);
XG3T:IF(COUNT(VV,3)>=1,1,0);
{一,首先,对指标的各语句作用进行分析:}
{VAR1:=(EMA(CLOSE,60) - EMA(CLOSE,300));
VAR2:=EMA(VAR1,300);
VAR3:=(((CLOSE - LLV(LOW,8)) / (HHV(HIGH,8) - LLV(LOW,8))) * 100);
VAR4:=SMA(VAR3,2,1);
VAR5:=SMA(VAR4,2,1);
{上面5句不起作用,可不要!}
{VAR6:=((CLOSE / REF(CLOSE,3)) >= 1.1);
{定义VAR6表示 今日收盘价比3日前收盘价高出10% ;}
{VAR7:=BACKSET(VAR6,3);
{定义VAR7表示 从今日至前几日这3天内VAR7=1,再以前VAR7=0;}
{未来指标:(VAR7 AND (COUNT(VAR7,3) = 1)),COLORFF00FF;
{VAR7:即是VAR7=1--------从今日至前几日这3天满足条件;}
{(COUNT(VAR7,3) = 1):{即是3天内只有一天VAR7=1-------只有3日前这一天};