Manual entry with Automated exit?

Forums ProRealTime English forum ProOrder support Manual entry with Automated exit?

Viewing 15 posts - 1 through 15 (of 21 total)
  • #70116

    Hi

    I am starting to get to grips with prorealtime, I am not at the stage where I want to do full automated trading but I would like to enter trades manually and then program an exit algorithm rather than rely on alerts that require me to get up in the middle of the night to exit trades, or I end up losing profit if I am indisposed.  For example if I am Long and the price crosses under the 50 Moving Average I want to exit Automatically.

    Programing an exit when the price gets near my guaranteed stop would also be nice so the stop is not triggered and I don’t have to pay the stop premium.

    Right now if I do not define an automated entry I get the msg “Trading systems must contain at least one instruction to enter the market” and it does not work.

    Any ideas?

    Thanks in Advance

     

     

    #70126

    <topic moved to automatic trading forum>

    Managing manual orders with automated trading program is still not possible. Would be a great improvement! I encourage everyone to post this suggestion with into the ProRealTime suggestion box right there: https://www.prorealtime.com/en/contact?suggestion=1

    #70130

    Hi Maze

    Have you tried using the Alert function with it’s associated trigger / trade function?

    You would need to leave your PC on overnight else Alerts are cancelled, but this is small beer compared to losing sleep? 🙂

    3 users thanked author for this post.
    #70132

    Also there is a Thread on here with Code to open an AutoTrade the instant the System starts and then of course you can have your exit Strategy coded into the System?

    But if you are anything like me, your exit strategy / levels  changes depending on what the candles look like (momentum-wise) prior to reaching levels … as in big fat red / green volume weighted candles or thin candles etc. But all this could be coded in of course

     

    #70145

    Thanks for the help.

    Correct me if I am wrong but doesn’t the “associated trigger” only allow you to enter a trade? There is a option to Sell or Buy but no option to Close a position.

    Entering a position when the strategy starts would be good workaround i guess, I did a search but could not find the thread in question, you have a link?

    I geuss it will just depend on a variable being true at the start but not at any other time.

    #70148

    Yeah you are prob correct re the Alert Function not able to close, I’ll have a think and a closer check etc.

    Re Alert, you could set up a text alert on the IG interface when a new position is opened (and new trade closes existing trade) so then you wake up and close that new position also … hopefully for the loss of  spread + a few points and maybe even a gain sometimes so it be swings and roundabouts?? Just an idea, maybe a daft idea but it may spark better idea in your / others minds?? 🙂

    Anyway, here is the link to my other suggestion …

    https://www.prorealcode.com/topic/how-do-i-open-a-position-in-the-first-bar-of-a-newly-started-trading-system/

     

    #70161

    Thanks for the help.

    Correct me if I am wrong but doesn’t the “associated trigger” only allow you to enter a trade? There is a option to Sell or Buy but no option to Close a position.

    Entering a position when the strategy starts would be good workaround i guess, I did a search but could not find the thread in question, you have a link?

    I geuss it will just depend on a variable being true at the start but not at any other time.

    about alerts with triggers
    you need to disable “force open” in settings

    if you have 1 buy open then sell 1 to close

    if you sell 2 then you should have 1 short open

     

    but also use a hard stop (on server) when using alerts to close trades

    1 user thanked author for this post.
    #70168

    Daedalus my understanding of your request is that you want to make 1 entry or start the system manually and then let the automation take over?

    I do this by:

     

     

    1 user thanked author for this post.
    #70224

    Yes David this is what i’m using now, thanks

    #70231

    I ended up using the code above because it does not seem to be possible to have an alert that is only triggered once. For example if I entered with buy 5 and set an alert that will sell 5 to close there is nothing to stop it from selling 5 again when the alert condition is true again (for example price crossing 50 moving average).

    At least with davids code I can quit so the condition is not triggered again.

    1 user thanked author for this post.
    #70319

    For some reason the code does not run when the automated system is started but when the first bar completes which means that if my system is configured to use 5 min bars I have to wait up to 5 minutes before it will place the trade which is unacceptable to me as the price may have moved to an undesirable entry point by that time.

    Is there a way to get the code to run before the first bar completes?

     

    #70341

    Code only runs / is read at the end of bars so run it on a 1 second TF and the code will execute after 1 second.

     

    #70342

    there is nothing to stop it from selling 5 again when the alert condition is true again

    You could set a second Alert related to time … see attached.

    #154975

    Is this feature available now? In 2020, i see that it was in 2018 that this thread was started.

    If this feature is not available, is there a work around for this?

    #154986

    I would say Yes, the feature is available on v11.

    Give it a go and let us know please?

Viewing 15 posts - 1 through 15 (of 21 total)

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