Two rules to be met but with x bars between

Forums ProRealTime English forum ProOrder support Two rules to be met but with x bars between

Viewing 3 posts - 1 through 3 (of 3 total)
  • #90565

    Hello!

    I am in need of help for the following. I have two rules that has to be met before a trade. Lets say first a crossover of EMA and then an engulfing candle. The only problem is that I can only code this to happen at the exact same time for an order to be triggered. In the exampel above I want that my first rule (EMA crossover) to be met and then  there should be a time space (lets say within 10 candles) where next trigger can be formed (engulfing candle in this example).

    How do I code a triggered rule to be valid for a x time forward?

    #90566

    This might help:

    https://www.prorealcode.com/topic/2-conditions-for-order-how-many-bar-between-the-2/#post-69729

    There are lots of interesting code snippets to be found here with links to relevant threads. This one is in there.

    https://docs.google.com/spreadsheets/d/1rgboqj7sVwsP9ZRhOduOefye48QMWC07jWVXCl-KJPU/edit#gid=0

    1 user thanked author for this post.
    #90613

    Perfect!

    I found it, its working and its simple!

    Thanks!

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

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