XG2:=CROSS(C ,支撑线) OR (L 支撑线 AND C 支撑线);
XG:=CROSS(C,工作线) AND XG1 AND XG2;
VAR444:=REF(CLOSE,1);
VAR555:=SMA(MAX(CLOSE-VAR444,0),7,1)/SMA(ABS(CLOSE-VAR444),7,1)*100;
VAR666:=CROSS(79,VAR555);
S4:=FILTER(VAR666,4);
{多头买入(买开)} ENTERLONG:XG ;
{多头卖出(卖平)} EXITLONG:S4;