- 精华
- 0
- 在线时间
- 21 小时
- UID
- 240899
- 积分
- 43
- 帖子
- 19
- 阅读权限
- 10
- 注册时间
- 2016-9-23
- 最后登录
- 2017-10-7
- 精华
- 0
- UID
- 240899
- 积分
- 43
- 帖子
- 19
- 主题
- 12
- 阅读权限
- 10
- 注册时间
- 2016-9-23
- 最后登录
- 2017-10-7
|
帮我看看下面的公式哪里出问题了 ,条件之一if(closeD(1)>openD(1)),昨天收盘价格大于昨天收盘价格,我在PP连续上测试,周期10秒 5月18 6月22号昨日K线都收阴线 不符合if(closeD(1)>openD(1)) 哪里错了呢?谢谢老师帮我看一下
Vars
NumericSeries myprice;
NumericSeries myprice1;
NumericSeries myprice2;
NumericSeries line;
Begin
If(time==0.145950)
myprice=Close;
If(time==0.092000)
myprice1=open;
If(time==0.093010)
myprice2=open;
If(time==0.093010 )
if(closeD(1)>openD(1))
{
If( myprice1> myprice&&myprice2>myprice1)
sellshort(1,myprice2);
}
If(time==0.100000)
buytocover(1,open-MinMove*PriceScale); |
附件: 你需要登录才可以下载或查看附件。没有帐号?注册
|