设为首页收藏本站

 找回密码
 注册
查看: 2845|回复: 0
打印 上一主题 下一主题

3x2 System tb版 [复制链接]

Rank: 7Rank: 7Rank: 7

精华
0
UID
397
积分
4818
帖子
87
主题
13
阅读权限
80
注册时间
2007-9-22
最后登录
2021-6-8
跳转到指定楼层
1#
发表于 2008-9-19 01:22:06 |显示全部楼层 |倒序浏览
Wealth-Lab Pro 5.1 内置的一个系统
3x2 System
Can a Strategy as simple as buying after 3 down days, then selling after 2 up days, be profitable?  Open the 3x2 Strategy and you might be surprised by the result.


Begin

if(MarketPosition == 1)
{  
   If(close>close[1] and close[1]>close[2])  
   {
      Sell(0, NextOpen,True);
   }

}

if(MarketPosition == 0)
{
If(close<close[1] and close[1]<close[2]and close[2]<close[3])  
{
  Buy(0,NextOpen,True);

}
}
end

[ 本帖最后由 ilian 于 2008-9-19 01:36 编辑 ]
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-5-17 10:57

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部