| / | Forum |
|
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. |
|
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. |
|
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. 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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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. 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 Sorry, there are no bugs with MT4. The swap is high when trade on a weekly line. No problems now. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||