Hi,
Not sure how this link relates to my question.
What I would like to do is setting the lot size to some value, and the question is how can I do this?
For example, the MarketInfo() function can tell me values like the lot size (MODE_LOTSIZE), the maximum value for a lot (MODE_MAXLOT), and the step for changing lots (MODE_LOTSTEP).
All this information implies that there must be a way of changing the lot size.
I just couldn't find out how :-)
Best regards,
Levente
Not sure how this link relates to my question.
What I would like to do is setting the lot size to some value, and the question is how can I do this?
For example, the MarketInfo() function can tell me values like the lot size (MODE_LOTSIZE), the maximum value for a lot (MODE_MAXLOT), and the step for changing lots (MODE_LOTSTEP).
All this information implies that there must be a way of changing the lot size.
I just couldn't find out how :-)
Best regards,
Levente
Use minimal size in OrderSend(). "MQL4: MarketInfo"
MODE_MINLOT 23 Minimum permitted amount of a lot.
Just search it. On the MQL4.COMmunity. It's easy
https://championship.mql5.com/2012/en/2006
"MQL4: Automated increase of lots in EA"
"MQL4: Moving Average"
MQL4: My First "Grail"
https://championship.mql5.com/2012/en/2006
"MQL4: Automated increase of lots in EA"
"MQL4: Moving Average"
MQL4: My First "Grail"
If I'm reading your question correctly: A standard lot costs a fixed price, a mini lot a tenth of that. What you control for the lots you take in the position depends on your leverage. You can control how much you buy, and therefore how much you spend, but not what you pay for what you buy. The AccountFreeMargin() etc. basically tells you how much you have left to spend, and therefore how much you can buy, but you can't change the price of a lot. At least, this is how it was explained to me. If I'm wrong, let me know.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
When creating trades with the OrderSend() function, the volume of the trade is specified in lots.
Is there any way to control the size of one lot? I haven't found any function for this in the API.
Being able to use very small lot sizes would enable us to test out strategies in the real market without the risk of
Best regards,
Levente