【MultiCharts(MC)程序化(量化)网上培训学习系列】第280节:ATR出场法则之波动率出场法({atr volatility stop/exit m
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
【MultiCharts(MC)程序化(量化)网上培训学习系列】第280节:ATR出场法则之波动率出场法({atr volatility stop/exit m
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
程式码部分之一:{atr volatility stop/exit model}
本帖隐藏的内容需要回复才可以浏览
思路:计算一定周期的atr平均值,然后乘以特定倍数,构成波动范围。然后加或减到每天收盘价上面,形成一个跟随每天价格的第二天的止损盈订单。
程式码部分之二:四周进场规则{four week entry rule}- if marketposition = 0 then begin
- buy next bar at Highest(high,20) stop;
- sellshort next bar at Lowest(low,20) stop;
- end;
复制代码 |
|
|
|
|
|
|
  
- 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

|
简评:
经典的进场法则,经典的出玚法则。因为每一个期货品种,在某一个特定的时间段可能运行于不同的位面,所以使用价格时间框架不固定。有兴趣的可以思考一下如何找到特 定品种在特定时间运行在哪一个时间框架位面上。 |
|
|
|
|
|
|

- UID
- 21467
- 积分
- 3134
- 威望
- 1567 布
- 龙e币
- 1567 刀
- 在线时间
- 38 小时
- 注册时间
- 2020-11-28
- 最后登录
- 2025-1-23
|
|
好好
|
|
|
|
|

- UID
- 21467
- 积分
- 3134
- 威望
- 1567 布
- 龙e币
- 1567 刀
- 在线时间
- 38 小时
- 注册时间
- 2020-11-28
- 最后登录
- 2025-1-23
|
|
好好
|
|
|
|
|

- UID
- 21331
- 积分
- 772
- 威望
- 386 布
- 龙e币
- 386 刀
- 在线时间
- 42 小时
- 注册时间
- 2020-9-11
- 最后登录
- 2023-7-30
|
|
|
|
|
|
|
  
- UID
- 22568
- 积分
- 1220
- 威望
- 610 布
- 龙e币
- 610 刀
- 在线时间
- 272 小时
- 注册时间
- 2022-7-24
- 最后登录
- 2025-2-19
|
|
陈斌
|
|
|
|
|

- UID
- 22869
- 积分
- 1372
- 威望
- 686 布
- 龙e币
- 686 刀
- 在线时间
- 5 小时
- 注册时间
- 2023-3-18
- 最后登录
- 2023-5-28
|
|
|
|
|
|
|

- UID
- 23287
- 积分
- 290
- 威望
- 145 布
- 龙e币
- 145 刀
- 在线时间
- 1 小时
- 注册时间
- 2024-5-12
- 最后登录
- 2025-2-12
|
|
|
|
|
|
|