凤翔MACD(源码副图贴图)

2011-03-05 10:24:00来源:本站整理浏览:99

有FINANCE函数,你弄明白后。害怕就不要用。
DIFF8 := EMA(CLOSE,25) - EMA(CLOSE,65),POINTDOT,LINETHICK2;
DEA8  := EMA(DIFF8,45),POINTDOT,LINETHICK2;
MACD8 := 2*(DIFF8-DEA8), COLORSTICK;
DRAWBAND(DEA8,RGB(0,24,224),DIFF8,RGB(160,20,30));
FIL:=IF(DIFF8<REF(DIFF8,1),DIFF8,DEA8)COLORWHITE;
DRAWBAND(FIL,RGB(0,24,224),DIFF8,RGB(200,100,0));
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW,LINETHICK2;
DEA  := EMA(DIFF,9)COLORGREEN,LINETHICK2;
MACD : 2*(DIFF-DEA), COLORSTICK,LINETHICK1;

STICKLINE(MACD<REF(MACD,1) AND DIFF>DEA,MACD,0,1,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND DIFF>DEA,MACD,0,3,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND DIFF>DEA,MACD,0,1,0),COLORYELLOW;
STICKLINE(DIFF>DEA AND  MACD<REF(MACD,1) ,MACD,0,3,0),COLORE500DD;
STICKLINE(DIFF>DEA AND MACD<REF(MACD,1),MACD,0,1,0),COLORYELLOW;
STICKLINE(DIFF<DEA ,MACD,0,8,0),COLOR005B0C;
STICKLINE(DIFF<DEA ,MACD,0,1,0),COLOR848284;
STICKLINE(DIFF<DEA AND  MACD>REF(MACD,1) ,MACD,0,3,0),COLOR7BA600;
STICKLINE(DIFF<DEA AND MACD>REF(MACD,1),MACD,0,1,0),COLORDDDDDD;
DIFFS : EMA(CLOSE,5) - EMA(CLOSE,12)COLORWHITE,LINETHICK1;
DEAS  : EMA(DIFFS,4)COLORGREEN,LINETHICK1;
MACDS := 2*(DIFFS-DEAS), COLORSTICK,LINETHICK1;
DRAWICON(CROSS(DEA8,DIFF8),DEA8,6);
DRAWICON(CROSS(DIFF8,DEA8),DEA8,5);
DRAWTEXT(CROSS(DIFF,DEA) AND MACD8>0 AND DIFFS>DEAS,DEA,'--卧槽马')COLORDDDDDD;
{{猎豹出击}
A2:=(CLOSE/REF(CLOSE,1)-1)*100;
A3:=AMOUNT/FINANCE(7)/1000;
{A2/A3;}
A4:=INDEXC/REF(INDEXC,1);
DRAWTEXT(A2/A4>9.5,DIFF8,'--猎豹出击82'),COLORYELLOW;
{猎鹰出击}
出击:=((C-O)/REF(C,1)),COLORMAGENTA;
DRAWTEXT(CROSS(出击,0.09) OR 出击>0.09,DEA8,'--猎鹰出击75')COLORYELLOW;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式