SHORT:=7;
LONG:=19;
T:=PERIOD;
D:=IF(T=0,30,
IF(T=1,25,
IF(T=8,25,
IF(T=2,20,
IF(T=3,20,
IF(T=4,20,
IF(T=5,10,
IF(T=6,10,
IF(T=7,10,
IF(T=9,10,
IF(T=10,10,10)))))))))));
RMA:EMA(CLOSE,SHORT),COLORGRAY;
NMA:EMA(CLOSE,LONG),COLORMAGENTA;
多:TRENDLINES(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H),NODRAW;
DRAWLINE1(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),COLOR0000FF,LINETHICK2;
空:TRENDLINES(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L),NODRAW;
DRAWLINE1(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,0),COLOR00FF00,LINETHICK2;
文华财经期货软件指标公式源码期货指标赢顺云指标多空指标 来自淘豆网m.daumloan.com转载请标明出处.