- 精华
- 0
- 在线时间
- 386 小时
- UID
- 15934
- 积分
- 681
- 帖子
- 188
- 阅读权限
- 60
- 注册时间
- 2010-9-9
- 最后登录
- 2021-9-1
- 精华
- 0
- UID
- 15934
- 积分
- 681
- 帖子
- 188
- 主题
- 70
- 阅读权限
- 60
- 注册时间
- 2010-9-9
- 最后登录
- 2021-9-1
|
Vars
NumericSeries shorttermhigh;
NumericSeries surelow;
NumericSeries afterhigh;
NumericSeries afterlow;
Begin
If(High>High[1]&&High>High[-1])
{
shorttermhigh=High;
surelow=low;
afterhigh=High[-1];
afterlow=low[-1];
}Else
{
shorttermhigh=shorttermhigh[1];
surelow=surelow[1];
afterhigh=afterhigh[1];
afterlow=afterlow[1];
}
Commentary("shorttermhigh"+Text(shorttermhigh));
Commentary("surelow"+Text(surelow));
Commentary("afterhigh"+Text(afterhigh));
Commentary("afterlow"+Text(afterlow));
后面出现的K线高点不大于shorttermhigh,低点小于surelow,标示true,如何编写? |
|