BalanceCurve
1. 这是什么
这是一个用于实时显示资金曲线的工具。MT5软件的历史订单只有表格的,当你的订单很多时,它看起来很麻烦。这个程序可以把你的历史交易订单以资金曲线图的形式画出来。这样你可以一目了然自己的交易水平怎么样,以及在哪里地方出的问题。
同时,MT5的策略回测虽然有资金曲线图,但是它并没有与价格一一匹配。所以使用起来非常麻烦。这个程序让价格曲线与资金曲线一一匹配,使用非常方便。
2. 特色
- 可以把你的历史交易订单以资金曲线图的形式画出来,它可以根据不同的时间框画出不同的资金曲线。
- 它可以用于策略回测,用于实时显示你的EA策略怎么样。
- 它分为三条资金曲线。一条为仅显示做多,一条为仅显示做空,一条为包括所有。
- 以指标形式编程,不影响叠加其他的EA或指标。
3. 参数说明
- InitDeposit = 5000; // Initial Deposit
- Inp_StartTime = 0; // History start time, 0 - all time
- Inp_ProfitNorm = false; // Is corrected position to 1.0 lots, default false.
- Inp_Symbol = NULL; // Select Symbol, default is all symbol.
4. 怎么使用
直接加载到图表上即可。
下面说下策略回测中怎么使用,以下两种方法都是:
- a. 加载下面一句代码到你的EA的OnInit()中,它会在历史测试中自动加载该指标。首先你要把下载的程序复制到Indicator目录下。
//---First you have to copy the program to the Indicator directory. iCustom(_Symbol, _Period, "BalanceCurve", 5000, 0, false);
- b. 把该指标保存到模板中,然后在策略回测中加载该模板即可。