How to calculate lot sizing from one market to another?

Created at 22 Nov 2024, 23:53
cTrader Discord
TO

TopTrades

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

 

 

 

 

 

 


@TopTrades
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

TopTrades
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? 


@TopTrades

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

TopTrades
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


@TopTrades