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变量的逻辑
RUNMODE:0;
MAN1:=MA(CLOSE,N1);
POS1:=BARSLAST(CROSS(CLOSE,MAN1));
IF POS1=0 THEN
STEP:=1;
ELSE
STEP:=0;