Target profit

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #186779 quote
    abuanza
    Participant
    New

    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 quote
    PeterSt
    Participant
    Master

    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)

    abuanza thanked this post
    #186808 quote
    JS
    Participant
    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.

    abuanza thanked this post
    #187094 quote
    abuanza
    Participant
    New

    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 quote
    robertogozzi
    Moderator
    Master

    What’s the error reported?

    abuanza thanked this post
    #187096 quote
    abuanza
    Participant
    New

    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 quote
    robertogozzi
    Moderator
    Master

    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)
  • You must be logged in to reply to this topic.

Target profit


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
abuanza @abuanza Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by robertogozzi
4 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/28/2022
Status: Active
Attachments: No files
Logo Logo
Loading...