need cBot to read from file that Indicator is writing to

Created at 28 Jun 2017, 08:24
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!
WP

wpwebsites

Joined 04.05.2017

need cBot to read from file that Indicator is writing to
28 Jun 2017, 08:24


Hi, I hope someone can please help me with this one.

I have an indicator that writes values to a file. The method used is exactly as per:

/forum/calgo-reference-samples/54

I also have a cbot that I need to be able to read the values from the same file. However, when I try to run the cbot simulatneously with the indicator, the cbot crashes with "The process cannot access the file because it is being used by another process".

How do I amend /forum/calgo-reference-samples/54 so that it does not block all access to the file, ie allows another process to read it?

Thanks very much for you help.

 


@wpwebsites
Replies

Spotware
17 Jul 2017, 14:47

Hi wpwebsites,

Thanks for posting your question in the forum. Can you please provide a code sample of your cBot so we can advise you on how to modify it? You can also follow the suggestions posted here

Best Regards,

cTrader Team


@Spotware

wpwebsites
18 Jul 2017, 13:41

Many thanks for your response. I will try those suggestions first, and get back to you if I still have no luck.

Best regards

 


@wpwebsites