Index mini lots (0.01 index) in cBots

Created at 30 Jan 2021, 08:07
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!
CT

ctid1373829

Joined 19.07.2019 Blocked

Index mini lots (0.01 index) in cBots
30 Jan 2021, 08:07


Hi Panagiotis,

 Please see if you could help here.  I might be missing some simple trick. 

 

I cannot use normal cBots to open Index mini-lots  "0.01 Index"

Blow code don't work

[Parameter("Volume", DefaultValue = 1000)]

Changed value to 1 and still don't work

[Parameter("Volume", DefaultValue = 1)]

 

Regards

 


       

 


Replies

PanagiotisCharalampous
01 Feb 2021, 07:57

Hi there,

Please provide some more information, like the source code and the exact error message you receive.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

ctid1373829
01 Feb 2021, 12:40 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi there,

Please provide some more information, like the source code and the exact error message you receive.

Best Regards,

Panagiotis 

Join us on Telegram

For example, using MACD Bot code in the link below, how to open a "0.01 Index Lot"   Thanks

https://ctrader.com/forum/cbot-support/9816

 


PanagiotisCharalampous
01 Feb 2021, 14:30

Hi again,

Change your volume to double and set it to 0.01

        [Parameter("Volume", DefaultValue = 0.01)]
        public double volume { get; set; }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

ctid1373829
01 Feb 2021, 14:57

RE:

 

Great help as expected.  Problem solved.  Thanks