下面是一个博易大师的公式,帮我改成通达信的吧,谢谢了。通达信提示flag是未知字符。
MA3:=MA(CLOSE,3);MA7:=MA(CLOSE,7);MA14:=MA(CLOSE,14);RED:=CROSS(C,MA14);GREEN:=CROSS(...
MA3:=MA(CLOSE,3);
MA7:=MA(CLOSE,7);
MA14:=MA(CLOSE,14);
RED:=CROSS(C,MA14);
GREEN:=CROSS(MA14,C);
FLAG:=IF(BARSTATUS=1,0,IF(RED,1,IF(GREEN,-1,REF(FLAG,1))));
STICKLINE(FLAG>0,HIGH,MAX(C,O),0,1),COLORRED;
STICKLINE(FLAG>0,LOW,MIN(C,O),0,1),COLORRED;
STICKLINE(FLAG>0,C,O,4,1),COLORRED;
STICKLINE(FLAG<0,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(FLAG<0,LOW,MIN(C,O),0,0),COLORGREEN;
STICKLINE(FLAG<0,C,O,4,0),COLORGREEN;
STICKLINE(FLAG=0,HIGH,MAX(C,O),0,0),COLORYELLOW;
STICKLINE(FLAG=0,LOW,MIN(C,O),0,0),COLORYELLOW; 展开
MA7:=MA(CLOSE,7);
MA14:=MA(CLOSE,14);
RED:=CROSS(C,MA14);
GREEN:=CROSS(MA14,C);
FLAG:=IF(BARSTATUS=1,0,IF(RED,1,IF(GREEN,-1,REF(FLAG,1))));
STICKLINE(FLAG>0,HIGH,MAX(C,O),0,1),COLORRED;
STICKLINE(FLAG>0,LOW,MIN(C,O),0,1),COLORRED;
STICKLINE(FLAG>0,C,O,4,1),COLORRED;
STICKLINE(FLAG<0,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(FLAG<0,LOW,MIN(C,O),0,0),COLORGREEN;
STICKLINE(FLAG<0,C,O,4,0),COLORGREEN;
STICKLINE(FLAG=0,HIGH,MAX(C,O),0,0),COLORYELLOW;
STICKLINE(FLAG=0,LOW,MIN(C,O),0,0),COLORYELLOW; 展开
展开全部
MA3:MA(CLOSE,3);
MA7:MA(CLOSE,7);
MA14:MA(CLOSE,14);
RED:=CROSS(C,MA14);
GREEN:=CROSS(MA14,C);
STICKLINE(C>MA14,O,C,-1,1),COLORRED;
STICKLINE(C>MA14,HIGH,MAX(C,O),0,0),COLORRED;
STICKLINE(C>MA14,LOW,MIN(C,O),0,0),COLORRED;
STICKLINE(C<MA14,O,C,-1,0),COLORGREEN;
STICKLINE(C<MA14,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(C<MA14,LOW,MIN(C,O),0,0),COLORGREEN;
STICKLINE(RED,HIGH,MAX(C,O),0,0),COLORYELLOW;
STICKLINE(GREEN,LOW,MIN(C,O),0,0),COLORYELLOW;
MA7:MA(CLOSE,7);
MA14:MA(CLOSE,14);
RED:=CROSS(C,MA14);
GREEN:=CROSS(MA14,C);
STICKLINE(C>MA14,O,C,-1,1),COLORRED;
STICKLINE(C>MA14,HIGH,MAX(C,O),0,0),COLORRED;
STICKLINE(C>MA14,LOW,MIN(C,O),0,0),COLORRED;
STICKLINE(C<MA14,O,C,-1,0),COLORGREEN;
STICKLINE(C<MA14,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(C<MA14,LOW,MIN(C,O),0,0),COLORGREEN;
STICKLINE(RED,HIGH,MAX(C,O),0,0),COLORYELLOW;
STICKLINE(GREEN,LOW,MIN(C,O),0,0),COLORYELLOW;
追问
谢谢你 ,真聪明,再帮我编一个选出20日均线向上的股票的选股公式吧。
追答
上穿20日均线
CROSS(C,MA(C,20));
下穿20日均线
CROSS(MA(C,20),C);
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
改不了,BARSTATUS不知如何替代.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询