【MultiCharts(MC)程序化(量化)网上培训学习系列】第393节:经典策略范例利用“相关趋势 (The Correlation Trend Indicator)指标"设计量化策略、编写程式码、绩效展示及进行初步测试
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
【MultiCharts(MC)程序化(量化)网上培训学习系列】第393节:经典策略范例利用“相关趋势 (The Correlation Trend Indicator)指标"设计量化策略、编写程式码、绩效展示及进行初步测试
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
程式 码部分:- inputs: FastLength( 20 ), SlowLength( 40 ), BuyThreshold( 0.5 ), SellThreshold( 0 ) ;
- variables: CorrF( 0 ), CorrS( 0 ) ;
- CorrF = CorrelationTrend( FastLength ) ;
- CorrS = CorrelationTrend( SlowLength ) ;
- if CorrF crosses over BuyThreshold then Buy next bar at Market ;
-
- if CorrS crosses under SellThreshold then sellshort next bar at Market ;
复制代码 【CorrelationTrend】相关趋势指标公式计算:http://www.qhlt.cn/thread-160357-1-1.html;
研究专题:http://www.qhlt.cn/thread-159202-1-1.html; |
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
简评:
1、优化空间大。
2、思路好。
3、还是看品种下碟的策略,选好品种是关键。 |
|
|
|
|
|
|