- 精华
- 0
- 在线时间
- 116 小时
- UID
- 4783
- 积分
- 301
- 帖子
- 51
- 阅读权限
- 50
- 注册时间
- 2009-7-3
- 最后登录
- 2019-3-24
- 精华
- 0
- UID
- 4783
- 积分
- 301
- 帖子
- 51
- 主题
- 14
- 阅读权限
- 50
- 注册时间
- 2009-7-3
- 最后登录
- 2019-3-24
|
策略写成这样可以么
Params
Numeric AfStep( 0.02);
Numeric AfLimit( 0.2 ) ;
Vars
Numeric oParCl( 0 );
Numeric oParOp( 0 );
Numeric oPosition( 0 );
Numeric oTransition( 0 );
Begin
ParabolicSAR( AfStep, AfLimit, oParCl, oParOp, oPosition, oTransition ) ;
If(maketposition<>1 and h> oParCl)
Buy(0,c);
If(maketposition<>-1 and L< oParCl)
sellshort(0,c);
End
疑问:h> oParCl和L< oParCl这种条件的判断都是用当天的h和当天的oParCl比较么?oParCl用设置成numericSeries形式么? |
|