Hello good people,
on mql4.com article How to Evaluate the Expert Testing Results http://articles.mql4.com/127 have this beutifule script you built in you EA to write files of results (you may use as well for optimization ..)
anyway there is this thing i spent to know 3 hours on it and i cant figret out
the deference between
calculate profit & calculate profit in points!
by default the script/library calculate profit as normal buy un-commanding around line #89 it calculate profit in points!
the math for calculate profit normaly is
for calculate profit in points
my problem here and the thing that i can't figure it out
why some EA show + results as you calculate profit notmaly and then negative resutls as you calculate profit in points?
here some examples
example #1
>> as normal profit calculation
the same EA with same sittings but calculating profit in points
example #2 (same expert like above but with deferent settings )
normal profit calculation
profit in points
as you can see from the above examples some time profit and profit in points both give positive result some time give deference results (one positive one negative .. )
how come ? i mean how come you're making money but your not making points ? i can understand making points but not making money in case of swap, commission etc but how you can make money "profit" when you're losing point?? _as in ex #1 _
on mql4.com article How to Evaluate the Expert Testing Results http://articles.mql4.com/127 have this beutifule script you built in you EA to write files of results (you may use as well for optimization ..)
anyway there is this thing i spent to know 3 hours on it and i cant figret out
the deference between
calculate profit & calculate profit in points!
by default the script/library calculate profit as normal buy un-commanding around line #89 it calculate profit in points!
the math for calculate profit normaly is
Inserted Code
//---- calculate profit double profit=OrderProfit()+OrderCommission()+OrderSwap();
Inserted Code
//---- calculate profit in points profit=(OrderClosePrice()-OrderOpenPrice())/MarketInfo(OrderSymbol(),MODE_POINT);
why some EA show + results as you calculate profit notmaly and then negative resutls as you calculate profit in points?
here some examples
example #1
>> as normal profit calculation
Inserted Code
Initial deposit, 10000 Total net profit, 546.4 Gross profit, 1361.2 Gross loss, 814.8 Profit factor, 1.67059401 Expected payoff, 54.64 Absolute drawdown, 0 Maximal drawdown, 651.8 (5.9135%) Relative drawdown, 5.9135% (651.8) Trades total, 10 Short positions(won %), 3 (100%) Long positions(won %), 7 (71.4286%) Profit trades (% of total), 8 (80%) Loss trades (% of total), 2 (20%) Largest profit trade, 500 Largest loss trade, -408.1 Average profit trade, 170.15 Average loss trade, -407.4 Average consecutive wins, 3 Average consecutive losses, 1 Maximum consecutive wins (profit in money), 6 (1022.2) Maximum consecutive losses (loss in money), 1 (-408.1) Maximal consecutive profit (count of wins), 1022.2 (6) Maximal consecutive loss (count of losses), -408.1 (1) Ratio, 0.00876114
Inserted Code
Initial deposit, 10000 Total net profit, -225 Gross profit, 972 Gross loss, 1197 Profit factor, 0.81203008 Expected payoff, -22.5 Absolute drawdown, 0 Maximal drawdown, 657.8 (5.9734%) Relative drawdown, 5.9734% (657.8) Trades total, 10 Short positions(won %), 3 (0%) Long positions(won %), 7 (71.4286%) Profit trades (% of total), 5 (50%) Loss trades (% of total), 5 (50%) Largest profit trade, 500 Largest loss trade, -408 Average profit trade, 194.4 Average loss trade, -239.4 Average consecutive wins, 2 Average consecutive losses, 2 Maximum consecutive wins (profit in money), 2 (682) Maximum consecutive losses (loss in money), 3 (-977) Maximal consecutive profit (count of wins), 682 (2) Maximal consecutive loss (count of losses), -977 (3) Ratio, -0.00385342
normal profit calculation
Inserted Code
Initial deposit, 10000 Total net profit, 564.4 Gross profit, 1375.2 Gross loss, 810.8 Profit factor, 1.69610261 Expected payoff, 56.44 Absolute drawdown, 0 Maximal drawdown, 645.8 (5.8538%) Relative drawdown, 5.8538% (645.8) Trades total, 10 Short positions(won %), 3 (100%) Long positions(won %), 7 (71.4286%) Profit trades (% of total), 8 (80%) Loss trades (% of total), 2 (20%) Largest profit trade, 500 Largest loss trade, -406.1 Average profit trade, 171.9 Average loss trade, -405.4 Average consecutive wins, 3 Average consecutive losses, 1 Maximum consecutive wins (profit in money), 6 (1032.2) Maximum consecutive losses (loss in money), 1 (-406.1) Maximal consecutive profit (count of wins), 1032.2 (6) Maximal consecutive loss (count of losses), -406.1 (1) Ratio, 0.00912654
Inserted Code
Initial deposit, 10000 Total net profit, 1791 Gross profit, 1791 Gross loss, 0 Expected payoff, 199 Absolute drawdown, 0 Maximal drawdown, 410.1 (3.6615%) Relative drawdown, 3.6615% (410.1) Trades total, 9 Short positions(won %), 3 (100%) Long positions(won %), 6 (100%) Profit trades (% of total), 9 (100%) Largest profit trade, 500 Largest loss trade, 0 Average profit trade, 199 Average consecutive wins, 9 Average consecutive losses, 0 Maximum consecutive wins (profit in money), 9 (1791) Maximum consecutive losses (loss in money), 0 (0) Maximal consecutive profit (count of wins), 1791 (9) Maximal consecutive loss (count of losses), 0 (0) Ratio, 0.04148403
how come ? i mean how come you're making money but your not making points ? i can understand making points but not making money in case of swap, commission etc but how you can make money "profit" when you're losing point?? _as in ex #1 _