Chart.TryChangeTimeFrameAndSymbol always return false

Created at 03 Jun 2019, 21: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!
HO

HOMERUN

Joined 18.11.2015

Chart.TryChangeTimeFrameAndSymbol always return false
03 Jun 2019, 21:02


https://ctrader.com/api/reference/chart/trychangetimeframeandsymbol

Trying to use this method to change chart symbol when starting cbot

It always return false, not sure why.

 


@HOMERUN
Replies

PanagiotisCharalampous
04 Jun 2019, 09:42

Hi HOMERUN, 

Thanks for posting in our forum. This method can only be used in indicators. When cBots are running changing symbol and/or timeframe is not allowed.

Best Regards,

Panagiotis


@PanagiotisCharalampous

CharlieBrown
14 Nov 2020, 03:55

RE:

PanagiotisCharalampous said:

Hi HOMERUN, 

Thanks for posting in our forum. This method can only be used in indicators. When cBots are running changing symbol and/or timeframe is not allowed.

Best Regards,

Panagiotis

Hi Pana

Does this mean the following scenario on cBots will not work?

Open Position on MA crossover on H1 timeframe, followed by Close Position on opposite MA crossover on 5m timeframe.

Danke,


@CharlieBrown

PanagiotisCharalampous
16 Nov 2020, 10:20

Hi CharlieBrown,

This is about the ability of the user to change the timeframe on the chart. The cBot can retrieve information from any timeframe you want and use it accordingly.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous