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
- This topic has 5 replies, 3 voices, and was last updated 3 years ago by MAKSIDE.
-
-
09/17/2020 at 3:37 PM #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 🙂
09/17/2020 at 3:48 PM #144571That’s what is ROC (Rate Of Change).
https://www.prorealcode.com/documentation/roc/
1 user thanked author for this post.
09/18/2020 at 7:21 AM #14461609/18/2020 at 2:16 PM #144673Well 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.
09/18/2020 at 3:13 PM #14467809/18/2020 at 3:18 PM #144679 -
AuthorPosts