文华财经源码:主趋势线:EMA(EMA(C,9),9),COLORRED,LINETHICK2,NOTEXT;
B1:=主趋势线<REF(主趋势线,1);
PARTLINE1(B1,主趋势线),COLORGREEN,LINETHICK2;
AA:=EMA(C,5) > EMA(C,19);
BB:=EMA(C,5) < EMA(C,19);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<=OPEN;
DD1:=CLOSE>OPEN;
E:=EMA(EMA(C,10),10),COLORRED,LINETHICK2;
//PARTLINE(REF(E,1)>E,E,COLORWHITE),LINETHICK2;
//PARTLINE(REF(E,1)<E,E,COLORRED),LINETHICK2;
MM:=REF(AA AND CC1,1) OR REF(BB AND CC,1) AND AA AND (AA AND CC1)=0 AND (BB AND CC)=0;
NN:=REF(AA AND CC1,1) OR REF(BB AND CC,1) AND BB AND (AA AND CC1)=0 AND (BB AND CC)=0;
NN1:=REF(AA,1) AND BB;
MM1:=REF(BB,1) AND AA; |