/*DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK2;
DEA1:=EMA(DIF1,9),LINETHICK2;
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1<REF(MACD1,1)AND MACD1>0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1>REF(MACD1,1)AND MACD1<0,0,MACD1,1,0),COLORYELLOW;
STICKLINE(MACD1>REF(MACD1,1)AND MACD1>0,0,MACD1,1,0),COLORMAGENTA;
STICKLINE(MACD1<REF(MACD1,1)AND MACD1<0,0,MACD1,1,0),COLORFFCC33;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
低位金叉:CROSS(DIF1,DEA1) AND DIF1<-;
JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));
二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA1*,1) ;
DRAWTEXT(二次金叉,,' 二次金叉'),COLORYELLOW;
强度:IF(DIF1>=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);
STICKLINE(底背离,0,,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK4;
DRAWTEXT(底背离,,' 底背离'),COLORYELLOW;
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1)>DIF1 AND CROSS(DEA1,DIF1);
顶背:DRAWLINE(A2=0,DEA1,顶背离,DEA1,0),COLORGREEN,LINETHICK4;
DRAWTEXT(顶背离,,'顶背离'),COLORGREEN;
{OBV判势}
OBV:=DIF;
P:=5;
AA1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(AA1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
AA2:=REF(O
期货软件指标公式文期货至尊指标主图多空变色期货傻瓜式买卖指标 来自淘豆网m.daumloan.com转载请标明出处.