need help for conditional entry

Forums ProRealTime English forum ProOrder support need help for conditional entry

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

    hi! I am having difficulties to implement an index based strategy and need help. It’s not about the pattern, but about the conditional entry that I need help.

    Setup of the pattern could be like

    1. take any condition to be true for the pattern today, e.g. high-low > 5
    2. when the pattern is true today, enter long tomorrow (and only tomorrow), but only when tomorrow’s high is higher than today’s high.

    The condition under 2) is like a stop-entry.

    Would be thankful if any of you could guide me with a very short code structure given the info above. Thank you.

    #189264

    There you go:

    1 user thanked author for this post.
    #191154

    Dear Roberto,

    thank you for your reply. It worked well and I would like to enhance it.
    What do you need to add to:

    • trigger a buy only if the pattern happened in the last 3 bars
    • as the entry condition, take the high on the day when the pattern happened (which can be any of the 3 days)

    thank you ahead.

    #191188

    There you go:

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