How to calculate lot sizing from one market to another?

Created at 22 Nov 2024, 23:53
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
RI

rick2010

Joined 08.08.2024

How to calculate lot sizing from one market to another?
22 Nov 2024, 23:53


I'm trying to find some example code that shows how to calculate lot sizes when moving from say Forex to CFDs or Futures… or from one Instrument to another.

Basically I'm trying to use a single value setting of say 0.01 lot or 0.1 or 1.0, and depending what symbol is traded it will do a calculation to figure out the actual size.

Any help on what is available in the cBot API that I should look at would be great. I saw there is Symbol.LotSize but not sure if that is all I need?

TIA

 

 

 

 

 

 


@rick2010
Replies

PanagiotisCharalampous
23 Nov 2024, 09:01

Hi there,

I did not understand what calculation you are trying to do. Can you elaborate a bit more, providing us with some examples?

Best regards,

Panagiotis


@PanagiotisCharalampous

rick2010
26 Nov 2024, 00:07

RE: How to calculate lot sizing from one market to another?

PanagiotisCharalampous said: 

Hi there,

I did not understand what calculation you are trying to do. Can you elaborate a bit more, providing us with some examples?

Best regards,

Panagiotis

How can I find out the min lot size, max lot size, and lot step for a given symbol? 


@rick2010

PanagiotisCharalampous
26 Nov 2024, 06:41

RE: RE: How to calculate lot sizing from one market to another?

rick2010 said: 

PanagiotisCharalampous said: 

Hi there,

I did not understand what calculation you are trying to do. Can you elaborate a bit more, providing us with some examples?

Best regards,

Panagiotis

How can I find out the min lot size, max lot size, and lot step for a given symbol? 

Hi there,

You can use Symbol.VolumeInUnitsMin, Symbol.VolumeInUnitsMax and Symbol.VolumeInUnitsStep

Best regards,

Panagiotis


@PanagiotisCharalampous

rick2010
28 Nov 2024, 18:43

RE: RE: RE: How to calculate lot sizing from one market to another?

PanagiotisCharalampous said: 

rick2010 said: 

PanagiotisCharalampous said: 

Hi there,

I did not understand what calculation you are trying to do. Can you elaborate a bit more, providing us with some examples?

Best regards,

Panagiotis

How can I find out the min lot size, max lot size, and lot step for a given symbol? 

Hi there,

You can use Symbol.VolumeInUnitsMin, Symbol.VolumeInUnitsMax and Symbol.VolumeInUnitsStep

Best regards,

Panagiotis

Thanks


@rick2010