Indicator restarting
Indicator restarting
27 Aug 2013, 21:35
I have an indicator that sends data out to another process on a network socket. It works throughout the day with no problems except occasionally when it gets busy (news, peak times etc) when the indicator restarts on its own (calls Initialize ) This of course break any socket connections which have to be remade
This happens when connecting to UK server from US cAlgo instance - i dont get the same problem when connecting from UK to UK server
- Is this an artefect of disconnections or comms issues ?
- Are variables initialised when the indicators restart?
- Why might the indicators being restarted
- The indicator has no graphical element - if it was a Robot would its lifecycle be more rebust - ie would it refrain from restarting or maintain instance variables and and any other state
There are no problems maintaining the sockets - i have many other process running in the same windows installtion and they have no problems - its just cAlgo - and it is without any interaction with the gui - it is just when the market gets very busy
cAlgo_Development
28 Aug 2013, 15:29
Indicator are recreated on reconnect, all internal variables are re-initialized. Robots have different life cycle, they are not restarted on disconnects. So in your case most probably it's better to use robots.
@cAlgo_Development