- 精华
- 0
- 在线时间
- 291 小时
- UID
- 1263
- 积分
- 1151
- 帖子
- 199
- 阅读权限
- 60
- 注册时间
- 2008-3-3
- 最后登录
- 2008-7-21
- 精华
- 0
- UID
- 1263
- 积分
- 1151
- 帖子
- 199
- 主题
- 70
- 阅读权限
- 60
- 注册时间
- 2008-3-3
- 最后登录
- 2008-7-21
|
Params
Numeric nday(10);
Numeric nOverpoint(40);
Vars
Numeric nsjxvalue(0);
NumericSeries nMvValue1(0);
NumericSeries nMvValue2(0);
Begin
nsjxvalue=Average(Close,nday);
nMvValue1=nsjxvalue+nOverPoint;
nMvValue2=nsjxvalue-nOverPoint;
if(NthCon(CrossOver(close,nmvvalue1),1)>=0 And NthCon(CrossUnder(close,nmvvalue2),1)<0)
{
PlotNumeric(Text(nOverPoint)+"日均线值:",nsjxvalue,Red);
}
if(NthCon(NthCon(CrossUnder(close,nmvvalue2),1)>=0 and CrossOver(close,nmvvalue1),1)<0)
{
PlotNumeric(Text(nOverPoint)+"日均线值:",nsjxvalue,Green);
}
End |
|