Target profit
Forums › ProRealTime English forum › ProOrder support › Target profit
- This topic has 6 replies, 4 voices, and was last updated 3 years ago by
robertogozzi.
-
-
01/28/2022 at 1:11 AM #186779
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
01/28/2022 at 6:29 AM #186795Hi 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)1 user thanked author for this post.
01/28/2022 at 9:27 AM #186808Hi 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.
1 user thanked author for this post.
01/30/2022 at 9:30 PM #18709401/30/2022 at 9:33 PM #18709501/30/2022 at 9:36 PM #187096There 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.
01/30/2022 at 9:41 PM #187097There’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.
-
AuthorPosts
Find exclusive trading pro-tools on