Target profit

Viewing 7 posts - 1 through 7 (of 7 total)
  • #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

    #186795

    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)

    1 user thanked author for this post.
    #186808
    JS

    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.

    1 user thanked author for this post.
    #187094

    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

    #187095

    What’s the error reported?

     

    1 user thanked author for this post.
    #187096

    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.

    #187097

    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.

     

     

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login