使用说明:本指标属于中长线指标,零轴之上牛市零轴之下熊市,很好的能区分当前的市场状况,做到顺势而为。
源码如下,供大家参考:
博弈大师(澎博)指标源码:
Q:=(3*CLOSE+HIGH+LOW+OPEN)/6;
DIFF :=EMA(Q,36)-EMA(Q,81),COLORFF00FF,LINETHICK3;
DEA:=EMA(DIFF,17),COLORRED,LINETHICK3;
MACD :=2*(DIFF-DEA), COLORSTICK,LINETHICK7;
资金流量:=DIFF;
STICKLINE(DIFF>=0,0,DIFF,5,0),COLOR0000B3;
STICKLINE(DIFF>=0,0,DIFF,4,0),COLOR0000C8;
STICKLINE(DIFF>=0,0,DIFF,3,0),COLOR0000D7;
STICKLINE(DIFF>=0,0,DIFF,2,0),COLOR0000EA;
STICKLINE(DIFF>=0,0,DIFF,1,0),COLOR0000FF;{红柱消失卖出}
STICKLINE(DIFF<0,0,DIFF,5,0),COLOR00A600;
STICKLINE(DIFF<0,0,DIFF,4,0),COLOR00B500;
STICKLINE(DIFF<0,0,DIFF,3,0),COLOR00C600;
STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00D500;
STICKLINE(DIFF<0,0,DIFF,1,0),COLOR00E600;{绿柱消失买入}
STICKLINE(DEA>=0,0,DEA,5,0),COLORYELLOW;
STICKLINE(DEA>=0,0,DEA,4,0),COLORYELLOW;
STICKLINE(DEA>=0,0,DEA,3,0),COLORYELLOW;
STICKLINE(DEA>=0,0,DEA,2,0),COLORYELLOW;
STICKLINE(DEA>=0,0,DEA,1,0),COLORYELLOW;
STICKLINE(DEA<0,0,DEA,5,0),COLOR2266FF;
STICKLINE(DEA<0,0,DEA,4,0),COLOR2266FF;
STICKLINE(DEA<0,0,DEA,3,0),COLOR2266FF;
STICKLINE(DEA<0,0,DEA,2,0),COLOR2266FF;
STICKLINE(DEA<0,0,DEA,1,0),COLOR3388FF;
DRAWNUMBER(ISLASTBAR,资金流量,资金流量,2),COLORRED,ALIGN0;
复制上述代码码粘贴到到公式管理器