| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Help ... how to know broker's accepted volume ? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=753 |
Page 1 of 1 |
| Author: | giovanni [ Wed Aug 08, 2012 3:20 am ] |
| Post subject: | Help ... how to know broker's accepted volume ? |
Hi all, I'm a newbie, just learning to make an EA. I found "lot size" problem, please help me ...thanks before. I'm trying to get the "allowed trading volume" by a broker in MQL. If we trade manually, after we click at "NEW ORDER" using FxOpen Empty4 client, we will get : 0.10, 0.11, 0.12, 0.13, 0.14, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 as Volume (LotStep = 0.01, minLot = 0.1). If we do the same thing at FxPro Empty4 client, we will get 0.1, 0.2, 0.3, 0.4, 0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 (lotstep = 0.1, minLot = 0.1) (both are MINI account with 0.1 minimal lot). How to get this value in MQL ? Some time I got error for "unusual lotsize", like if the order (after lot compounding calculation) is 0.212 lot, I got : error 131 or 4051 message (I think it's a not recognize Lot value error). Then I tried to split it into 2 small Lots ( 2 X 0.1 Lot), It worked fine, without error. But if I tried to split a big lot like splitting 15.52 lots into 155 X 0.1 lot, I got error 148 message (order too much). I think I can use some big "broker well know lot" and some small lots, like splitting 15.5 lots into : 1 X 8 lot + 1 X 7 lot + 5 X 0.1 lot. But still don't know how to get the broker's accepted Volume .... Trying to use this : Code: Select all Below is the script I use to Split an "unusual" Lots into several minLots. Code: Select all Gio |
|
| Author: | giovanni [ Wed Aug 08, 2012 11:47 pm ] |
| Post subject: | Re: Help ... how to know criminal's accepted volume ? |
Hi, I found the answer here : http://forum.mql4.com/50626#675945 Thanks Gio |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|