DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),colorFF;
DEA:EMA(DIFF,9),colorFFFF;
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
PARTLINE(DIFF<=REF(diff,1),DIFF),LINETHICK2,COLOR33FF33;
PARTLINE(DIFF>REF(diff,1),DIFF),LINETHICK2,COLORRED;
PARTLINE(DEA<=REF(DEA,1),DEA),LINETHICK1,colorFF9999;
PARTLINE(DEA>REF(DEA,1),DEA),LINETHICK1,color99FF;
DRAWICON(CROSS(DIFF,DEA),DIFF+0.1,4);
DRAWICON(CROSS(DEA,DIFF),diff,5);
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'○'),LINETHICK1, COLORYELLOW;
{红柱}
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,5,0),COLOR0000AA;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,2.7,0),COLOR0000BB;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,2.3,0),COLOR0000CC;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,2,0),COLOR0000CC;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,1.6,0),COLOR0000DD;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,1.2,0),COLOR0000EE;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,0.8,0),COLOR0000FF;
STICKLINE(macd>0 and macd>ref(macd,1),macd,0,0.5,0),COLORRED;
{黄柱}
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,5,0),color0090FF;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,2.7,0),color009FFF;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,2.3,0),color00a6FF;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,2,0),color00b5FF;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,1.6,0),color00c4FF;;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,1.2,0),Color00d3ff;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,0.8,0),color00e2FF;
STICKLINE(macd>0 and macd<ref(macd,1),macd,0,0.5,0),color00FFFF;
{蓝柱}
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,5,0),COLORFF0000;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,2.7,0),COLORFF3300;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,2.3,0),COLORFF5500;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,2,0),COLORFF7700;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,1.6,0),COLORFF9900;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,1.2,0),COLORFFBB00;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,0.8,0),COLORFFDD00;
STICKLINE(macd<0 and macd<ref(macd,1),macd,0,0.5,0),COLORFFFF00;
{粉柱}
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,5,0),ColorFF00a9;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,2.7,0),ColorFF00a1;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,2.3,0),ColorFF00aa;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,2,0),ColorFF00bb;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,1.6,0),ColorFF00cc;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,1.2,0),ColorFF00dd;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,0.8,0),ColorFF00ee;
STICKLINE(macd<0 and macd>ref(macd,1),macd,0,0.5,0),ColorFF00ff;
[ 本帖最后由 liu1972 于 2010-4-25 14:56 编辑 ] |