Sum of profit/loss of bot and display in bot

Created at 21 May 2021, 10:13
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!
CA

catmia500

Joined 21.05.2021

Sum of profit/loss of bot and display in bot
21 May 2021, 10:13


Hello,

how can I sum up the profit/loss in a bot over several trades (this I know how to do) and display the result in the chart window of the bot (or anywhere useful)?

Ideal would be an example :-)

Best wishes, 

Mia


@catmia500
Replies

firemyst
22 May 2021, 10:15

Use either the Chart.DrawText method or Chart.DrawStaticText method depending on where/how you want to display the text on the chart.

 


@firemyst