dd:=大单净差BBD;
DIFF:=EMA(大单净差BBD,6) - EMA(大单净差BBD,13),coloryellow;
DIFF2:=EMA(大单净差BBD,9) - EMA(大单净差BBD,20),coloryellow;
IF(diff 0 AND diff2 0 AND C*1.045 REF(C,1) AND REF(diff,1) 0 AND REF(diff2,1) 0)
RETURN ( buy
IF(diff 0 AND diff2 0 AND C*1.05 REF(C,2) AND REF(diff,1) 0 AND REF(diff2,1) 0)
RETURN ( buy
IF(diff 0 AND diff2 0)
RETURN ( colorRED
IF(diff 0 OR diff2 0)
RETURN ( colorpink
IF(diff 0 AND diff2 0)
RETURN ( colorgreen