Add buttons to chart

Created at 26 Mar 2014, 16:37
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!
breakermind's avatar

breakermind

Joined 17.07.2013

Add buttons to chart
26 Mar 2014, 16:37


Hi,

it is possible to add additional buttons to the chart (like this x close positions) from robot?

 


@breakermind
Replies

Spotware
26 Mar 2014, 16:56 ( Updated at: 21 Dec 2023, 09:20 )

No, it is not possible.
For such semi-automated system you can add several cBots with OnStart handlers to the same chart and start them by clicking start buttons whenever you want.

In such case you will have one button per one cBot.


@Spotware

breakermind
26 Mar 2014, 17:21

RE:

Ok, Thanks


@breakermind

breakermind
27 Mar 2014, 12:00

How to change character in string

Hi,

How to change character in string ?

string

21312312_32323232

to this

21312312#32323232


@breakermind

Spotware
27 Mar 2014, 12:05

RE: How to change character in string

breakermind said:

Hi,

How to change character in string ?

string

21312312_32323232

to this

21312312#32323232

You can use string.Replace method.

var source = "21312312_32323232";
var result = source.Replace('_', '#');

 


@Spotware

dalinar
14 Apr 2019, 09:14

How do you add multiple robots to a chart? like in your example above?


@dalinar

PanagiotisCharalampous
14 Apr 2019, 20:09 ( Updated at: 21 Dec 2023, 09:21 )

Hi dalinar,

There is nothing special you need to do. Just add on the charts as many cBots as you want using the cBot button on the left of the chart.

Best Regards,

Panagiotis


@PanagiotisCharalampous