一个小的文化指标 麻烦老师修改一下 [博易POBO]
咨询内容:
一个小的文化指标 麻烦老师修改一下
//{当前面积}
DRAWNUMBER(BARSTATUS=2 AND MACD>0, -MACD*0.03, REF(红柱面积, 1), 0,COLORYELLOW);
DRAWNUMBER(BARSTATUS=2 AND MACD<=0, -MACD*0.03, REF(绿柱面积, 1), 0,COLORFFCC66);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
//{面积计算}
绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(MACD>0))*100,0),COLORBLUE;
红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(MACD<0))*100,0),COLORRED;
红显示:=CROSS(DEA,DIFF);
绿显示:=CROSS(DIFF,DEA);
DRAWNUMBER(红显示,DEA*1.03,REF(红柱面积,1),0,COLORRED);
DRAWNUMBER(绿显示,DEA*0.97,REF(绿柱面积,1),0,COLORGREEN);
DRAWNUMBER(BARSTATUS=2ANDMACD>0,-MACD*0.03, REF(红柱面积,1),0,COLORYELLOW);
DRAWNUMBER(BARSTATUS=2ANDMACD<=0, -MACD*0.03,REF(绿柱面积,1),0,COLORFFCC66);
STICKLINE1(MACD<0ANDMACD>=REF(MACD,1),0,MACD,0.5,0),COLORFFCC66;
STICKLINE1(MACD<0ANDMACD<REF(MACD,1),0,MACD,0.5,0),COLORGREEN;
STICKLINE1(MACD>=0ANDMACD>REF(MACD,1),0,MACD,0.5,0),COLORRED;
STICKLINE1(MACD>=0ANDMACD<=REF(MACD,1),0,MACD,0.5,0),COLORYELLOW;
来源 程序化久久网
DRAWNUMBER(BARSTATUS=2 AND MACD>0, -MACD*0.03, REF(红柱面积, 1), 0,COLORYELLOW);
DRAWNUMBER(BARSTATUS=2 AND MACD<=0, -MACD*0.03, REF(绿柱面积, 1), 0,COLORFFCC66);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 公式不全,不能修改 DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
//{面积计算}
绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(MACD>0))*100,0),COLORBLUE;
红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(MACD<0))*100,0),COLORRED;
红显示:=CROSS(DEA,DIFF);
绿显示:=CROSS(DIFF,DEA);
DRAWNUMBER(红显示,DEA*1.03,REF(红柱面积,1),0,COLORRED);
DRAWNUMBER(绿显示,DEA*0.97,REF(绿柱面积,1),0,COLORGREEN);
DRAWNUMBER(BARSTATUS=2ANDMACD>0,-MACD*0.03, REF(红柱面积,1),0,COLORYELLOW);
DRAWNUMBER(BARSTATUS=2ANDMACD<=0, -MACD*0.03,REF(绿柱面积,1),0,COLORFFCC66);
STICKLINE1(MACD<0ANDMACD>=REF(MACD,1),0,MACD,0.5,0),COLORFFCC66;
STICKLINE1(MACD<0ANDMACD<REF(MACD,1),0,MACD,0.5,0),COLORGREEN;
STICKLINE1(MACD>=0ANDMACD>REF(MACD,1),0,MACD,0.5,0),COLORRED;
STICKLINE1(MACD>=0ANDMACD<=REF(MACD,1),0,MACD,0.5,0),COLORYELLOW;
来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容