• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:02am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:02am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

What is the max lot size retail traders can trade? 7 replies

Max reasonable lot size 5 replies

Lot size, contract size, max position ? 1 reply

Max lot size tradable/practical 5 replies

Increase Lot Size As AccountBalance Increases 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Max Lot Size that i can execute based on AccountBalance (MQL4)
Exit Attachments
Tags: Max Lot Size that i can execute based on AccountBalance (MQL4)
Cancel

Max Lot Size that i can execute based on AccountBalance (MQL4)

  • Post #1
  • Quote
  • First Post: May 13, 2016 2:57pm May 13, 2016 2:57pm
  •  Karish
  • | Joined Jun 2013 | Status: Member | 73 Posts
Hello friends!,
How can i know / How can i build a function in MQL4 that will tell me what is the Maximum Lot Size that i can trade with based on my AccountBalance in MQL4?

i'm trying to backtest something but im getting the ERROR: "Error opening order: 134 : not enough money.",

That error happens when the EA trying to execute a trade with a much higher Lot Size that it should use,

the question is how can i avoid this error and still execute the trade but based on the maximum lot size that i can execute based on my account balance?..

that way it will still execute an order but with the maximum lot size it can pull, so i wont get this error and wont miss trades.

BTW the function must calculate the Leverage and Margin..

thank you i how you understand
  • Post #2
  • Quote
  • May 13, 2016 7:34pm May 13, 2016 7:34pm
  •  Supertrader9
  • Joined Jul 2012 | Status: Member | 595 Posts
It depends on the broker. Go to market watch and right click your instrument, say EURUSD then go to specification. There you can see maximal volume. Usually it will be 100 lots, some 1000 lots.
 
 
  • Post #3
  • Quote
  • May 14, 2016 1:52am May 14, 2016 1:52am
  •  Karish
  • | Joined Jun 2013 | Status: Member | 73 Posts
Quoting Supertrader9
Disliked
It depends on the broker. Go to market watch and right click your instrument, say EURUSD then go to specification. There you can see maximal volume. Usually it will be 100 lots, some 1000 lots.
Ignored
thanks but i need the mql4 code function that tells me what is the max lot i can open with my account balance with my margin, i know that my max lot size is 100 or 1000 with some brokers...,

please help..
 
1
  • Post #4
  • Quote
  • May 14, 2016 11:47am May 14, 2016 11:47am
  •  Karish
  • | Joined Jun 2013 | Status: Member | 73 Posts
NVM, FIXED , thanks
 
 
  • Post #5
  • Quote
  • Dec 16, 2016 9:10pm Dec 16, 2016 9:10pm
  •  loosemoose
  • | Joined Dec 2016 | Status: Junior Member | 1 Post
Hi Karish, I'm having the same issue. Can you share what you found to fix the problem?
 
1
  • Post #6
  • Quote
  • Last Post: Dec 18, 2016 8:10am Dec 18, 2016 8:10am
  •  GnWFx
  • | Joined Aug 2014 | Status: Member | 104 Posts
Probably the attached spreadsheet might help.

Don't forget to enable DDE Server ("Server" tab under Tools/Options menu on MT4) for updating spreadsheet in real time.
Attached File(s)
File Type: xls LotsCalc1.xls   20 KB | 675 downloads
 
1
  • Platform Tech
  • /
  • Max Lot Size that i can execute based on AccountBalance (MQL4)
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • X
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • X

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023