Hi there.
i use Ig trading platform. When I try to modify the target profit on the platform after being executed by the pro real time code, the code stops and I have to restart it again. How can I stop this? What can I add to the codes to allow me changing target profits/close positions without stoping code from running.
thanks
Hi abuanza,
It shouldn’t be allowed to change this by intervening manually. But when it can (per a bug somewhere) it conflicts (with data known at the broker) and that in itself is noticed by PRT. Now the code will stop running as a kind of protection.
I think you should make a technical report of this (see in Help), but if you work with the API from PRT this is not possible. Otherwise cause that again to happen and make that technical report right after it.
An awkward work around would be to change in Settings the behavior of the code quitting (you can set it to leave the positions be). In that case you could stop the running Strategy per means of the “Stop” button in the Autotrading window and from there you can safely move Limits etc. around. But then your code is stopped again.
(which even could be your situation (setting) in the first place)
JSParticipant
Senior
Hi Abuanza,
Your code (auto trading) is running on the servers of PRT and you can’t make changes when the code is running on this servers, so you must stop your code, make changes and restart.
I removed the target profit from my code however still stops working when I close it on Ig trading platform. Is there away around this?
thanks
What’s the error reported?
There is no error msg. I just get an email saying that my automated trading system has stopped working. This happens whenever I change the target profit on my the trading platform (not the code) or when I close my positions manually.
There’s always an error message in the autotrading panel.
If you mess with trades opened in autotrading, the involved strategy will always be interrupted and open trades will, or will not, be left open according to the specific setting you have chosen.
Manual and Automatc trading cannot be mixed.