老师帮忙转换下通达信的指标 [博易POBO]
咨询内容:
T:=PERIOD;
D:=IF(T=0,30,IF(T=1,25,IF(T=8,25,IF(T=2,20,IF(T=3,20,IF(T=4,20,IF(T=5,10,IF(T=6,10,IF(T=7,10,IF(T=9,10,IF(T=10,10,10)))))))))));
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),LINETHICK2,COLORRED;
DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,0),LINETHICK2,COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,HYZSCODE);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
D:=IF(T=0,30,IF(T=1,25,IF(T=8,25,IF(T=2,20,IF(T=3,20,IF(T=4,20,IF(T=5,10,IF(T=6,10,IF(T=7,10,IF(T=9,10,IF(T=10,10,10)))))))))));
RMA:=EMA(CLOSE,5);
NMA:=EMA(CLOSE,10);
DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),LINETHICK2,COLORRED;
DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,0),LINETHICK2,COLORGREEN; 来源 程序化久久网
老师帮忙转换下通达信的指标
{参数:SHORT 最小5/最大30/缺省7 LONG 最小10/最大250/缺省19}T:=PERIOD;
D:=IF(T=0,30,IF(T=1,25,IF(T=8,25,IF(T=2,20,IF(T=3,20,IF(T=4,20,IF(T=5,10,IF(T=6,10,IF(T=7,10,IF(T=9,10,IF(T=10,10,10)))))))))));
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),LINETHICK2,COLORRED;
DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,0),LINETHICK2,COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,HYZSCODE);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: T:=DATAPERIOD;D:=IF(T=0,30,IF(T=1,25,IF(T=8,25,IF(T=2,20,IF(T=3,20,IF(T=4,20,IF(T=5,10,IF(T=6,10,IF(T=7,10,IF(T=9,10,IF(T=10,10,10)))))))))));
RMA:=EMA(CLOSE,5);
NMA:=EMA(CLOSE,10);
DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),LINETHICK2,COLORRED;
DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,0),LINETHICK2,COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容