博弈大师指标如何转换为文华财经WH6(mytrader)指标?具体的内容如下
DEA:EMA(DIF,7),LINETHICK1,COLORFFFFFF;
MACD:=2*(DIF-DEA);
{QDIF:IF(DEA,DIF,0),COLORRED,LINETHICK2;}
QDIF:DIF,COLORRED,LINETHICK2;
D:=BACKSET(DIF<REF(DIF,1),2);
{RDIF:IF(D ,DIF,0),COLOR33FF33,LINETHICK2;}
PARTLINE(D,DIF),COLOR33FF33,LINETHICK2;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000FF;
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORFF99FF;
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;
金叉:=CROSS(DIF,DEA) AND DIF<0.3,COLOR0000FF;
DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,4); 展开
DEA:EMA(DIF,7);
MACD:=2*(DIF-DEA);
QDIF:DIF,COLORRED,LINETHICK2;
D:=BACKSET(DIF<REF(DIF,1),2);
PARTLINE(D,DIF,COLORCYAN);
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,COLORRED,0);
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,COLORGREEN,0);
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,COLORBLUE,0);
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,COLORRED,0);
JC:=CROSS(DIF,DEA) AND DIF<0.3;
DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,'ICO4');
线的颜色可以根据自己的需要修改
柱线粗细没有办法再细了,但其实我感觉这样挺清晰的,把指标线变色给你做出来了,柱线颜色你可以自己修改,STICKLINE那四行语句是柱线COLORRED这种是颜色函数。
DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:EMA(DIF,7);
MACD:=2*(DIF-DEA);
D:=BACKSET(DIF<REF(DIF,1),2);
DRAWCOLORLINE(D,DIF,COLORCYAN,COLORRED);
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,COLORRED,0);
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,COLORGREEN,0);
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,COLORBLUE,0);
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,COLORRED,0);
JC:=CROSS(DIF,DEA) AND DIF<0.3;
DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,'ICO4');