Download MetaTrader 5

How to get Contract size? - page 2

To add comments, please log in or register
Find out how to use widgets at MQL5.community
Tonny Obare
1019
Tonny Obare 2013.11.29 14:57  
RaptorUK:

Just let it go over your head is the best advice I can give . . . be the better person and don't assume any malicious intent. Maybe rocky is just having a bad, out of character, day . . .


Id say gumram is the one having today very violent man.
Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2013.11.29 15:01  
tonny:

Id say gumram is the one having today very violent man.
Tonny Obare
1019
Tonny Obare 2013.11.29 15:02  
I think the OP wants it in units like instead of 1 lot he wants something like 100,000 and something like 1,000 instead of 0.01 lot.
Tonny Obare
1019
Tonny Obare 2013.11.29 15:06  
rockyhoangdn:

I want to get Contract size value, how can i get it?

There is no Market information identifiers for this. MarketInfo()


For this you multiply the lot size by 100, 000 then by leverage. For example lot size of 0.25 will be 0.25*100,000*100 you get 2,500,000 in the case of 1:100 leverage. The contract size you see there in that table is the minimum required(i think). e.g. a broker where minimum is 0.01 lot then 0.01*100,000*100 you get 100,000.
Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2013.11.29 15:06  
tonny:
I think the OP wants it in units like instead of 1 lot he wants something like 100,000 and something like 1,000 instead of 0.01 lot.
And that is what he will get if he uses what he has been advised to use . . . have you tested it ?
Tonny Obare
1019
Tonny Obare 2013.11.29 15:13  
RaptorUK:
And that is what he will get if he uses what he has been advised to use . . . have you tested it ?


I updated my post above i think sexted forgot the leverage part.
ngoc thach
53
ngoc thach 2013.11.30 17:34  

Ok thanks.

ngoc thach
53
ngoc thach 2013.11.30 17:37  
easy to know how much for contract size with forex, but difficult with CFDs/Gold-Silver.
ngoc thach
53
ngoc thach 2013.11.30 17:41  
tonny:
I think the OP wants it in units like instead of 1 lot he wants something like 100,000 and something like 1,000 instead of 0.01 lot.

thats exactly what i want.

Gold. 0.01lot = 1 oz

EU 0.01 lot = 1,000Euro

but how about USShare,UKShare,Future?

hughbaker
3
hughbaker 2014.06.03 13:21  
rockyhoangdn:

thats exactly what i want.

Gold. 0.01lot = 1 oz

EU 0.01 lot = 1,000Euro

but how about USShare,UKShare,Future?




I use SymbolInfoDouble(Symbol(),SYMBOL_TRADE_CONTRACT_SIZE) to get the number you are referring to.
12
To add comments, please log in or register