关于胜率统计的一个指标,有点小问题,请高手指点啊
如题附上源码,主要是为了统计demo时的历史订单的胜率和ea测试时的胜率,不知道怎么有问题,请大家指点一下啊。<div class="blockcode"><div id="code_QGz"><ol>#property indicator_chart_window int a,b,wpercent,lpercent; extern double ticket=1989; //自定义魔术号码 int start() { double free=AccountFreeMargin(); Comment("账户自由保证金 ",DoubleToStr(free,2),"n","胜率",DoubleToStr(wpercent,2),"%","n","败率",DoubleToStr(lpercent,2),"%", "n","Current time is ",TimeToStr(TimeCurrent())); //---------------------------------------- for(int i=0; i=0) {a++; } if(OrderSelect(ticket,SELECT_BY_POS,MODE_TRADES)==true &&OrderProfit() |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1