How to make my program work constantly with setting accounts and sending orders?

Created at 20 Sep 2022, 17:56
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!
JY

jyri.gromyko2002

Joined 18.09.2022

How to make my program work constantly with setting accounts and sending orders?
20 Sep 2022, 17:56


Here I added the whole program 
that parses kind of forum and copies orders. So I want to put it in an infinite loop but it doesn't work correctly. As I understood, reactor is kind of processor that handles thw whole code in it after it was processed as background maybe idk.... Anyway I want to know how to make my program start once and work for all time. I also thought about starting the reactor and the whole api after a new trade was found, but then the reactor must be stopped and started again if there is a new trade, but it isn't restartable. 


@jyri.gromyko2002