I want to ask please if it is possible to flatten everything (or close positions and cancel orders) when there is an error message or conflict message in log. Accurate example is that it is not possible to write and read same time in a file with stream writer/reader. (this is OK and clear, my question is not about this or why or how to avoid, no discussion about streamwriter/reader)
Because it occurred that NT7-script-strategy did not react anymore suddenly I was trying to find the reason for it and I saw a message in log tab concerning file access.
Therefore I made a workaround and now simply need to know please how one can close positions and cancel orders or flatten everything when there are issues showing up in log tab.
Thank you!
Tony
Comment