| 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 |
|
|||
|
Automated increasing of lots in EA
Hello,
I am trying that my EA would calculate automatically the proper lots based on available margin. ContractSize=NormalizeDouble((((AccountFreeMargin( )*AccountLeverage())/Ask)/10000),1); I've placed this line after the start() and before the ordersend. Of course the ordersend takes the lot size from here. This is supposed to do it, but it doesn't works. Can anyone tell me WHY??? Txs |
|
|||
|
I don't know about your particular question but i found library file inside my computer (attached). Unzip it and place to /include folder. Don't compile.
And in your EA do the following: - place Code:
#include <b-Lots.mqh> - place Code:
Lots=GetSizeLot(); - delete this line in your EA: Code:
extern double Lots=1; LotsWayChoice = 1; // 0-fixed lot size. // 1-% from deposit, // 2-the other kind of MM // 3-different kind of MM |
|
||||
|
Quote:
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
|||
|
Quote:
|
|
|||
|
can´t make it work
Hí guys,
I did try to copy and paste the script in my EA...... well, I tried many ways but none seems to work. So this might sound very amateur..... could you pls indicate my where to paste it? And in the place for indicating the lots in the order send sentence, what should I write? dLot? Get...()? Thanks in advance |
|
||||
|
Quote:
If u still have a problem with that just post your ea here I will help u to combine it.
__________________
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 |
| Lots of $$ and lots of potential... | dukeofdents | Suggestions for Trading Systems | 5 | 04-08-2007 02:19 AM |
| Change Lots | hellkas | Questions | 5 | 10-08-2006 06:11 PM |
| How i calculate lots? | DooMGuarD | Questions | 4 | 05-29-2006 09:12 PM |
| Multi-Lots | Eric | Expert Advisors - Metatrader 4 | 14 | 03-31-2006 11:05 PM |
| Increasing lots with EA | Willis11of12 | Metatrader 4 | 1 | 03-28-2006 01:23 PM |