close trade after candle close

Forums ProRealTime English forum ProOrder support close trade after candle close

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

    Good day,

    I would like to close a trade after a candle closes. For example:

    If the current candle breaks the high of previous candle, the trade would enter long at the broken high, but when the candle that entered closes, the trade should close with profit/loss. Basically the trade should last 1 candle only. I only need to know how to make it close at the end of the current candle period.

    Thank you,

    #160165

    LONG example.

    At the beginning of your code, just after DEFPARAM……. (if any), add these lines:

     

    1 user thanked author for this post.
    #160167

    Seems to be working thank you.

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