- 精华
- 0
- 在线时间
- 53 小时
- UID
- 5345
- 积分
- 115
- 帖子
- 28
- 阅读权限
- 30
- 注册时间
- 2009-9-2
- 最后登录
- 2019-3-24
- 精华
- 0
- UID
- 5345
- 积分
- 115
- 帖子
- 28
- 主题
- 3
- 阅读权限
- 30
- 注册时间
- 2009-9-2
- 最后登录
- 2019-3-24
|
为何一点击“校验保存公式”就自动退出呢?
为何一点击“校验保存公式”就自动退出呢?谢谢老师
Params
Numeric fastlength(88);
Numeric slowlength(17);
Numeric canshu(2);
Vars
Numeric var1;
Numeric var2;
Numeric vol;
NumericSeries ma17;
NumericSeries bssm;
NumericSeries cgx;
Bool aa;
Bool bb;
Bool cc;
Begin
var1=vol*(Open+Close)/canshu;
bssm=Summation(Var1,fastlength)/Summation(vol,fastlength);
PlotNumeric("bssm",bssm);
cgx=Highest(Average(Close,slowlength),canshu);
PlotNumeric("cgx",cgx);
if(Average(Close,slowlength)<cgx)
{
(Average(Close,slowlength)-(cgx-Average(Close,slowlength)));
}
Else
{
cgx;
}
ma17=Average(Close,slowlength);
PlotNumeric("ma17",ma17);
var2=Average((OPEN+CLOSE+HIGH+LOW)/4,46);
aa=(CLOSE>var2 AND CLOSE>Average(CLOSE, 5)) or (Close<var2 and Close>Average(Close,5) and Close>cgx);
bb=(CLOSE<var2 and Close<Average(Close,5)) or (Close>var2 and Close<Average(Close,5));
cc=aa and bb;
If(aa);
Buy(2,Close);
If(cc);
sell(2,close);
if(bb);
sell(2,close);
If(cc);
buy(2,close);
End |
|