Avoid opening position if price went highly up or down before

Forums ProRealTime English forum ProOrder support Avoid opening position if price went highly up or down before

Viewing 6 posts - 1 through 6 (of 6 total)
  • #144569

    Hi guys, I would like to know if it’s possible to code something like this:

    The automatic system wants to open a position, but before doing it checks if (in a long position scenario and viceversa) the price of the asset went up (or down) “x” in the last “y” hours.

    If the price moved over the x and y settings, the systems avoids opening the position.

    Thanks 🙂

    #144571

    That’s what is ROC (Rate Of Change).

    https://www.prorealcode.com/documentation/roc/

    1 user thanked author for this post.
    #144616

    As often, Roc isn’t the best way.. Price may be reversed after, even if Roc has been analysed

    But I’m curious about your idea to explore that in a strategy.

    How to be sure to take or to stop before the next trade… ? 😉

    #144673

    Well basically MAKSIDE… did ever happened to you that your trading systems opened a position when you never would? For example a long during a weekly/monthly high or maybe a short after a -3% on the assett?

    I just would like to see if my strategies could perform better avoiding those “irrational” trades.

    #144678

    Sure Francesco, you are right…  i’m on the same wave lenght .. but there are no guarantess that works, even after roc analysing..

    that was my only point 🙂

     

    #144679

    ROC will tell you.. .> don’t take the next trade…  but you don’t know, the trend may can continue in the same direction… 🙂

     

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

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