【MultiCharts(MC)程序化(量化)网上培训学习系列】第289节:统计交易过程中净盈利以及在副图画出盈利曲线(cal netprofit plot c
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
【MultiCharts(MC)程序化(量化)网上培训学习系列】第289节:统计交易过程中净盈利以及在副图画出盈利曲线(cal netprofit plot c
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
程序码部分:需要做两部分,第一部分是将盈利亏损的数据加载到全局变量中,这个是信号部分的策略,另一部分是将盈利亏损输出到副图,这个是指标部分。
信号:netprofitcurve
本帖隐藏的内容需要回复才可以浏览
指标:netprofitcurve
本帖隐藏的内容需要回复才可以浏览
说明:因为上一节课中我们已经占用了gv01这个变量了,所以在这一节课中全局变量我就用gv02,都是为了方便,大家可以按自己的喜好设定这个全局变量的名称; |
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
显示效果:


为了平滑曲线,我加了一下净盈利的5周期平均,大家可以根据自己的喜好设置自己的显示效果。 |
|
|
|
|
|
|
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
做这个的意义:
1、能随时监控自己的交易情况,即策略运行情况。
2、可以挑时机开始启动策略,比方说连续亏损后多会再连续盈利,则在亏损连续出现后立马进场。 |
|
|
|
|
|
|

- UID
- 21650
- 积分
- 790
- 威望
- 395 布
- 龙e币
- 395 刀
- 在线时间
- 19 小时
- 注册时间
- 2021-3-4
- 最后登录
- 2024-10-7
|
|
|
|
|
|
|

- 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
|
|
|
|
|
|
|