金牛:=(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1+EMA(EMA(H,25),25);
金钻趋势:=EMA(EMA(L,25),25)-(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1;
金牛2:=EMA(金钻趋势,25);
AA:=金钻趋势>LOW AND 金钻趋势<HIGH;
BB:=金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O);
CC:=金钻趋势>HIGH;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
TJ1:=AA AND 低位金叉;
TJ2:=BB AND 低位金叉;
TJ3:=CC AND 低位金叉;
XG:TJ1 OR TJ2 OR TJ3;