全球前十大一致性最好的交易系统之一Aberration(附源码) 外汇证券交易平台排名前十
下面是该策略在MC(MultiCharts)平台上的源码:
//rb.index,Daily,default param//i.index,Daily,param=35,0.5,1inputs: Len(35),Dev(2),type(0);variables: ma(0),std(0),up(0),down(0);ma = AverageFC(Close,Len);std = StandardDev(Close, Len,1); //StandardDev( Close, Period, 1 ) ;up = ma + Dev * std;down = ma - Dev * std;if(type=0) thenbegin if(marketposition=0 and close>up) then begin buy("b") next bar at market; end; if(marketposition=0 and close0 and close0) then sell("sp2") next bar at ma stop; if(marketposition
版权声明: 本站仅提供信息存储空间服务,旨在传递更多信息,不拥有所有权,不承担相关法律责任,不代表本网赞同其观点和对其真实性负责。如因作品内容、版权和其它问题需要同本网联系的,请发送邮件至 举报,一经查实,本站将立刻删除。