Open reverse position when stopLoss reached

Forums ProRealTime English forum ProOrder support Open reverse position when stopLoss reached

Viewing 4 posts - 1 through 4 (of 4 total)
  • #149684

    Hey,

    I’ve tried coding a strategy found here (thank you btw), and I think I’ve managed to do it. (I’ve also used some BE and TS code designed by some users from the forum, thank you very much as well)

    However, I would like to go further and add a bit of code to open a reverse position as soon as the stopLoss of the previous position has been reached and if RSI is still below 31 (I’m only focusing on long positions for now, one step at a time lol). I thouhgt it would be very simple but it doesn’t seem to work. Here is the bit of code :

    I’ve also tried to create a variable that equals 1 when the stopLoss is reached and 0 when a long position is opened but it doesn’t seem to work either. I’ve tried using a “sell at market” order instead of the regular stopLoss but I can’t make it work either.

    Here’s the full original code (without the short reverse position snippet) :

    Any ideas ?

    BobOgden

    #149759

    Please… Interest.

    #149776

    And this???

     

    This is simply Code!!!

    #149792

    Hey @Fran55, I’m afraid I don’t understand what you mean…

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

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