- 精华
- 3
- 在线时间
- 12229 小时
- UID
- 5
- 积分
- 26584
- 帖子
- 12686
- 阅读权限
- 200
- 注册时间
- 2007-7-20
- 最后登录
- 2021-11-3
- 精华
- 3
- UID
- 5
- 积分
- 26584
- 帖子
- 12686
- 主题
- 49
- 阅读权限
- 200
- 注册时间
- 2007-7-20
- 最后登录
- 2021-11-3
|
- vars
- numeric aa;
- numeric bb;
- numericseries prehigh;
- numericseries prelow;
- begin
- aa = highest(high[1],4);
- bb = lowest(low[1],4);
- if(buycon )
- {
- buy;
- prelow = bb;
- }else if( sellshortcon)
- {
- sellshort;
- prehigh = aa;
- }
- if(marketposition ==1 && low<= prelow - 2*minmove*pricescale)
- {
- sell;
- }
- if(marketposition==-1 && high>= prehigh+2*minmove*pricescale)
- {
- buytocover;
- }
- end
复制代码 |
|