Replies

Monkey007
13 Mar 2020, 01:56

RE:

PanagiotisCharalampous said:

Hi Monkey007,

To check if there are any positions open, you can check the Positions collection. Regarding simultaneous opening, there is no straight forward general solution to this, it depends on your cBot's architecture. For example you can use a static variable as a flag.

Best Regards,

Panagiotis 

Join us on Telegram

Thank you very much. Please could you advise how I should initialise a static variable that is to be shared amongst multiple bots? If I have the initialisation in every bot, will it be ignored for all but the first bot that I run?


@Monkey007

Monkey007
05 Feb 2020, 01:47

RE:

PanagiotisCharalampous said:

Hi Monkey007,

Please try a clean installation and let me know if it resolves the problem.

Best Regards,

Panagiotis 

Join us on Telegram

 

Thanks for your help. CTrader is now working again for me. And somewhat surprisingly, all my charts were the same as I left them, despite uninstalling before doing the clean install.


@Monkey007