老师好,帮忙改一下,谢谢 [博易POBO]
咨询内容:
EMA30:EMA(CLOSE,0);//定义30周期收盘价的指数平滑移动平均值。
TMP:=CLOSE-EMA2(CLOSE,30);
//PLAYSOUND(TMP>0.1&&REF(TMP<=0.1,1)||TMP<=0.1&&REF(TMP>0.1,1),'A');
DRAWLINE(TMP>0.1&&C<=O,LOW,TMP>0.1,HIGH,COLORRED);
DRAWLINE(TMP<=0.1&&C<=O,LOW,TMP<=0.1,HIGH,COLORGREEN);
STICKLINE(TMP>0&&C<=O,OPEN,CLOSE,COLORRED,0);
STICKLINE(TMP<=0&&C<=O,OPEN,CLOSE,COLORGREEN,0);
DRAWLINE(TMP>0.1&&C>=O,LOW,TMP>0.1,O,COLORRED);
DRAWLINE(TMP>0.1&&C>=O,H,TMP>0.1,C,COLORRED);
DRAWLINE(TMP<=0.1&&C>=O,LOW,TMP<=0.1,O,COLORGREEN);
DRAWLINE(TMP<=0.1&&C>=O,H,TMP<=0.1,C,COLORGREEN);
STICKLINE(TMP>0&&C>=O,OPEN,CLOSE,COLORRED,1);
STICKLINE(TMP<=0&&C>=O,OPEN,CLOSE,COLORGREEN,1);
TMP:=CLOSE-EMA2(CLOSE,30);
//PLAYSOUND(TMP>0.1&&REF(TMP<=0.1,1)||TMP<=0.1&&REF(TMP>0.1,1),'A');
DRAWLINE(TMP>0.1&&C<=O,LOW,TMP>0.1,HIGH,0),COLORRED;
DRAWLINE(TMP<=0.1&&C<=O,LOW,TMP<=0.1,HIGH,0),COLORGREEN;
STICKLINE(TMP>0&&C<=O,OPEN,CLOSE,10,0),COLORRED;
STICKLINE(TMP<=0&&C<=O,OPEN,CLOSE,10,0),COLORGREEN;
DRAWLINE(TMP>0.1&&C>=O,LOW,TMP>0.1,O,0),COLORRED;
DRAWLINE(TMP>0.1&&C>=O,H,TMP>0.1,C,0),COLORRED;
DRAWLINE(TMP<=0.1&&C>=O,LOW,TMP<=0.1,O,0),COLORGREEN;
DRAWLINE(TMP<=0.1&&C>=O,H,TMP<=0.1,C,0),COLORGREEN;
STICKLINE(TMP>0&&C>=O,OPEN,CLOSE,10,1),COLORRED;
STICKLINE(TMP<=0&&C>=O,OPEN,CLOSE,10,1),COLORGREEN; 来源 程序化久久网
老师好,帮忙改一下,谢谢
主图指标,能装上但不能用,麻烦老师修改一下,谢谢EMA30:EMA(CLOSE,0);//定义30周期收盘价的指数平滑移动平均值。
TMP:=CLOSE-EMA2(CLOSE,30);
//PLAYSOUND(TMP>0.1&&REF(TMP<=0.1,1)||TMP<=0.1&&REF(TMP>0.1,1),'A');
DRAWLINE(TMP>0.1&&C<=O,LOW,TMP>0.1,HIGH,COLORRED);
DRAWLINE(TMP<=0.1&&C<=O,LOW,TMP<=0.1,HIGH,COLORGREEN);
STICKLINE(TMP>0&&C<=O,OPEN,CLOSE,COLORRED,0);
STICKLINE(TMP<=0&&C<=O,OPEN,CLOSE,COLORGREEN,0);
DRAWLINE(TMP>0.1&&C>=O,LOW,TMP>0.1,O,COLORRED);
DRAWLINE(TMP>0.1&&C>=O,H,TMP>0.1,C,COLORRED);
DRAWLINE(TMP<=0.1&&C>=O,LOW,TMP<=0.1,O,COLORGREEN);
DRAWLINE(TMP<=0.1&&C>=O,H,TMP<=0.1,C,COLORGREEN);
STICKLINE(TMP>0&&C>=O,OPEN,CLOSE,COLORRED,1);
STICKLINE(TMP<=0&&C>=O,OPEN,CLOSE,COLORGREEN,1);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: EMA30:EMA(CLOSE,0);//定义30周期收盘价的指数平滑移动平均值。TMP:=CLOSE-EMA2(CLOSE,30);
//PLAYSOUND(TMP>0.1&&REF(TMP<=0.1,1)||TMP<=0.1&&REF(TMP>0.1,1),'A');
DRAWLINE(TMP>0.1&&C<=O,LOW,TMP>0.1,HIGH,0),COLORRED;
DRAWLINE(TMP<=0.1&&C<=O,LOW,TMP<=0.1,HIGH,0),COLORGREEN;
STICKLINE(TMP>0&&C<=O,OPEN,CLOSE,10,0),COLORRED;
STICKLINE(TMP<=0&&C<=O,OPEN,CLOSE,10,0),COLORGREEN;
DRAWLINE(TMP>0.1&&C>=O,LOW,TMP>0.1,O,0),COLORRED;
DRAWLINE(TMP>0.1&&C>=O,H,TMP>0.1,C,0),COLORRED;
DRAWLINE(TMP<=0.1&&C>=O,LOW,TMP<=0.1,O,0),COLORGREEN;
DRAWLINE(TMP<=0.1&&C>=O,H,TMP<=0.1,C,0),COLORGREEN;
STICKLINE(TMP>0&&C>=O,OPEN,CLOSE,10,1),COLORRED;
STICKLINE(TMP<=0&&C>=O,OPEN,CLOSE,10,1),COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容