See article Forex Trading ABC

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I recently downloaded MT4 and started developing my own scripts.
I ran the Strategy tester on some simple expert adviser.Here are some lines from the report produced by MT4: (I removed some of the non relevant information)
I was wondering how did MT4 calculate the profit. After a short time I found the answer.
The formula MT4 uses for calculating the profit is: (sell - buy)*investment // where investment is lots*lotSize
For example:
As you can see with this formula I got the same results as MT4. This is the formula MT4 uses.
Now, lets try this formula on some simple examples:
It looks to me that these results are wrong.
Take cases 2 and 4 for example:
If you buy something at price 2 and sell the same thing for price 1
you should lose half of your investment not all of it. In this case your profit should be -5000 not -10000.
If I understand correctly, the correct formula for calculating the profit is: ((investment/buy)*sell) - investment
With this formula for the same cases we get:
As for my understanding these are the correct results and not the results we got from formula used by MT4.
If I use this formula on the lines from the MT4 report I get completely different results:
Is this a bug in MT4????
Am I missing something?
EP.