MQL4 - automated forex trading   /  

Forum

It seems that there are bugs in MT4' Strategy Tester.

Back to topics list To post a new topic, please log in or register

avatar
163
valleyfir 2008.10.13 05:39 

When it calculates the profit, it has wrong result. When testing, my EA buy 0.1 lot EURGBP at 0.5064 and close it at 0.5127, the profit I get is -157.83.  It should be a value greater than 0 I think. I attach the testing result here. It is only one example, I met many times which the profit result is wrong. 


article

MQL4 Language for Newbies. Custom Indicators (Part 2)

This is the fifth article from the series "MQL4 Languages for Newbies". Today we will learn to use graphical objects - a very powerful development tool that allows to widen substantially possibilities of using indicators. Besides, they can be used in scripts and Expert Advisors. We will learn to create objects, change their parameters, check errors. Of course, I cannot describe in details all objects - there are a lot of them. But you will get all necessary knowledge to be able to study them yourself. This article also contains a step-by-step guide-example of creating a complex signal indicator. At that, many parameters will be adjustable which will make it possible to change easily the appearance of the indicator.


avatar
163
valleyfir 2008.10.13 05:42 
valleyfir wrote >>

When it calculates the profit, it has wrong result. When testing, my EA buy 0.1 lot EURGBP at 0.5064 and close it at 0.5127, the profit I get is -157.83.  It should be a value greater than 0 I think. I attach the testing result here. It is only one example, I met many times which the profit result is wrong. 


I couldn't attach a html file in my last post. So I copy the result here. Please help me to see this problem.

verageprofit trade734.79loss trade-244.35
Maximumconsecutive wins (profit in money)1 (1158.94)consecutive losses (loss in money)2 (-488.69)
Maximalconsecutive profit (count of wins)1158.94 (1)consecutive loss (count of losses)-488.69 (2)
Averageconsecutive wins1consecutive losses2

#TimeTypeOrderSizePriceS / LT / PProfitBalance
11982.11.15 00:00buy10.100.46070.00000.0000
21983.06.06 00:00close10.100.48640.00000.0000310.6410310.64

3

1984.02.13 00:00

buy

2

0.10

0.5064

0.0000

0.0000

4

1985.04.08 00:00

close

2

0.10

0.5127

0.0000

0.0000

-157.83

10152.81
51993.09.27 00:00buy30.100.79210.00000.0000
61993.11.22 00:00close30.100.77480.00000.0000-330.869821.95
71994.04.11 00:00buy40.100.77430.00000.0000
81996.03.04 00:00close40.100.86780.00000.00001158.9410980.89


avatar
163
valleyfir 2008.10.13 10:39 
valleyfir wrote >>

I couldn't attach a html file in my last post. So I copy the result here. Please help me to see this problem.

verageprofit trade734.79loss trade-244.35
Maximumconsecutive wins (profit in money)1 (1158.94)consecutive losses (loss in money)2 (-488.69)
Maximalconsecutive profit (count of wins)1158.94 (1)consecutive loss (count of losses)-488.69 (2)
Averageconsecutive wins1consecutive losses2

#TimeTypeOrderSizePriceS / LT / PProfitBalance
11982.11.15 00:00buy10.100.46070.00000.0000
21983.06.06 00:00close10.100.48640.00000.0000310.6410310.64

3

1984.02.13 00:00

buy

2

0.10

0.5064

0.0000

0.0000

4

1985.04.08 00:00

close

2

0.10

0.5127

0.0000

0.0000

-157.83

10152.81
51993.09.27 00:00buy30.100.79210.00000.0000
61993.11.22 00:00close30.100.77480.00000.0000-330.869821.95
71994.04.11 00:00buy40.100.77430.00000.0000
81996.03.04 00:00close40.100.86780.00000.00001158.9410980.89

Sorry, there are no bugs with MT4. The swap is high when trade on a weekly line. No problems now.

Back to topics list  

To add comments, please log in or register