Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:重复问题怎么解决?

1楼
mikael_luo 发表于:2020/6/23 13:06:29
RUNMODE:0;
MAN1:=MA(CLOSE,N1);
POS1:=BARSLAST(CROSS(CLOSE,MAN1));
IF POS1=0 THEN
STEP:1;
运行结果正确

如果增加2行,则显示”编译错误,变量名STEP重复“
RUNMODE:0;
MAN1:=MA(CLOSE,N1);
POS1:=BARSLAST(CROSS(CLOSE,MAN1));
IF POS1=0 THEN
STEP:1;
ELSE
STEP:0;
我怎么实现这个step变量的逻辑
2楼
wenarm 发表于:2020/6/23 13:09:27
RUNMODE:0;
MAN1:=MA(CLOSE,N1);
POS1:=BARSLAST(CROSS(CLOSE,MAN1));
IF POS1=0 THEN
STEP:=1;
ELSE
STEP:=0;
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in .20313 s, 3 queries.