| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How to calculate profit in ea
Been looking around and did not find my answer for this question
i want to know how to calculate the profit/loss but i dont want it to calculate the totalprofit so using orderprofit will not work because it calculates the profit loss on all open pairs. here is an example i have the following open positions i want to calculate the profit/loss on this hedge Long gbpusd short eurusd and on this hedge long eurusd long usdchf the to hedges should be calculated seperatly zleepan |
|
||||
|
First selcect order that u want to count (by magic number or position , and currency)
And then: For long orders: Bid - OrderOpenPrice() - Spread; For short orders OrderOpenPrice - Bid;
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
||||
|
Quote:
Quote:
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to calculate average high | anthonyrae | Metatrader 4 | 2 | 02-22-2007 11:46 AM |
| How i calculate lots? | DooMGuarD | Questions | 4 | 05-29-2006 09:12 PM |
| Script to calculate Average Daily Range? | ycomp | Metatrader 4 | 10 | 02-28-2006 03:18 PM |
| profit Vs Profit factor | cardio | Metatrader 4 | 4 | 02-10-2006 06:24 PM |