I would like to add a function in my bot to double the position, same feature as in double position button in ctrader

Created at 24 Jan 2025, 20:02
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!
MA

maakufx

Joined 24.01.2025

I would like to add a function in my bot to double the position, same feature as in double position button in ctrader
24 Jan 2025, 20:02


Hi,

I have tried searching for this API but cannot find it. Can anyone show me the code snippet?

 

TIA


@maakufx
Replies

firemyst
18 Feb 2025, 04:59

Position.ModifyVolume (current volume * 2)


@firemyst