Silly Q exit x points after entry not working

Forums ProRealTime English forum ProOrder support Silly Q exit x points after entry not working

Viewing 15 posts - 1 through 15 (of 26 total)
  • #7876

     

    #7877

    Hmm i’m not sure what you want to do with this code. You are trying to close a short trade if the price is > to 25 and also if price is < 25 , so obviously your conditions are always met.

    What is the exact question please?

    #7885

    Sorry Nicolas, still learning.

    I want to close the trade if it either hits 25 points profit or 25 points loss from the entry price.

    #7886

    Ok, don’t be sorry, there is no stupid question 🙂

    So, just add these instructions to your code:

    You can have a look at all the Probacktest/ProOrder instruction here in the prorealtime documentation: http://www.prorealcode.com/documentation/category/probacktest/ , if you need more assistance to program your trading strategy, or just ask!

     

    #7888

    Thanks but I want to exit long positions at different targets and stops to short ones. What I’m after would come in handy for many strategy’s I’m testing.

    #7889

    Ok so test if you are in long or short conditions and then set your different values like this:

     

    #7896

    Aha so simple when you know how 🙂 Will test soon.

    #7899

    Still no dice?

     

    #7902

    I’m sorry? On what instrument do you test this automated strategy?

    #7903

    The major indices and it only takes one trade per day, sorry didn’t include that bit. Basically everything works the way I want it apart from the fact I can’t adjust the long and short, stop and limit separately.

     

    I could of course separate the code in to long and short positions but would be nice to have it in one code.

    #7910

    So you want to only let the current order go to profit or loss and avoid another one to initiate?

    #7914

    Sorry I have not been clear, been too long at the screen.

    This is working the way I want it, just need to achieve separate stops and limits for long and short positions.

     

     

    #8042

    Been playing around with this today but still no joy, any help appreciated 🙂

    #8050

     

    #8057

    Hi,

    Thanks for the reply but it doesn’t work unfortunately. Did it work for you? The results never come to any stop or limit on any trade when I test it.

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

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