project a pricelevel based on profits

Created at 13 Sep 2018, 09:44
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!
swingfish's avatar

swingfish

Joined 25.06.2016

project a pricelevel based on profits
13 Sep 2018, 09:44


i have a cBot that manages positions, so i already do know the drawdown and profit values in realtime,

but how can i project this to a price level in order to draw a line.

the idea is to have a "stop-line" based on the pre-set drawdown level.

as multiple positions can have multiple sizes on the same asset, this may be hard to calculate.

is there a way to do that via the API ?

 

 

 


@swingfish
Replies

PanagiotisCharalampous
17 Sep 2018, 12:14

Hi swingfish,

You cannot do this via the API. You will need to do the calculations in your cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous