0
input: n(3,1,100); {输入参数,缺省为3}
curSumV:=sum(v,3); {3日量和}
preSumV:=ref(curSumV,3); {前3日量和}
Vrate:=curSumV/preSumV; {量比}
singal:Vrate>=n;
-----------------
不修改任何内容, 提示没有定义的标识符.
把2个n改成3以后,提示需要分号进行分隔.
0
谢谢. 今天晚上试下.
0
回SER34:没有积分,只好在这回你了。DZH应该是这样的格式
{1}
range1:=c/ref(c,1);
range2:=c/ref(c,2);
border1:=range1<=0.959 or range1>=1.041; {单日涨跌幅4%以上}
cond1:=range2>=0.989 and range2<=1.011;{三日涨跌幅1%以内}
cond2:=count(border1,3)=3; {3日内涨跌幅均超过4%}
singal:cond1 and cond2;
{2}
input: n(3,1,100); {输入参数,缺省为3}
curSumV:=sum(v,3); {3日量和}
preSumV:=ref(curSumV,3); {前3日量和}
Vrate:=curSumV/preSumV; {量比}
singal:Vrate>=n;
0
{2}
input: n(3,1,100); //输入参数
curSumV:=sum(v,3); //3日量和
preSumV:=ref(curSumV,3); //前3日量和
Vrate:=curSumV/preSumV; //量比
singal:Vrate>=n
0
{1}
range1:=c/ref(c,1);
range2:=c/ref(c,2);
border1:=range1<=0.959 or range1>=1.041; //单日涨跌幅4%以上
cond1:=range2>=0.989 and range2<=1.011;//三日涨跌幅1%以内
cond2:=count(border1,3)=3; //3日内涨跌幅均超过4%
singal:cond1 and cond2
上面的编的不对,这个应该差不多
0
{1}
range1:=c/ref(c,1);
range2:=c/ref(c,2);
border1:=range1>=0.959 and range1<=1.041; //单日涨跌幅4%以内
cond1:=range2>=0.989 and range2<=1.011;//三日涨跌幅1%以内
cond2:=count(border1,3)>0; //3日内出现过涨跌4%
singal:cond1 and cond2