Contract size...

 

Can anyone explain me how to find contract size programmatically?

Like the one which is on MT4 contract specification...

Market Watch -> Right Click -> Specification -> Contract size -- 100,000 (for ex, for EURUSD=100,000, for Bitcoin it is 1, for XAUUSD=100, and so on)

It is used in formula for calculating pips, lots, etc...

is there any MQL4 function to find the contract size?


Thanks in advance...

Regards

Bahman

 
Bahman Asgarov:

Can anyone explain me how to find contract size programmatically?

Like the one which is on MT4 contract specification...

Market Watch -> Right Click -> Specification -> Contract size -- 100,000 (for ex, for EURUSD=100,000, for Bitcoin it is 1, for XAUUSD=100, and so on)

It is used in formula for calculating pips, lots, etc...

is there any MQL4 function to find the contract size?


Thanks in advance...

Regards

Bahman

Thanks, I have already found it in another message:

double dLotSize = MarketInfo(Symbol(), MODE_LOTSIZE);