Exit in given timeframe

Forums ProRealTime English forum ProOrder support Exit in given timeframe

Viewing 7 posts - 1 through 7 (of 7 total)
  • #130044

    Hi All,

    Can anyone help with a coding question?  I would like the also to exit the position after a certain time, ie on the 5 minutes chart, i would like the position to close 20 minutes after entry.

     

    thank you

     

    #130055

    20 minutes is 4 bars, si you can write:

     

    2 users thanked author for this post.
    #130056

    Hi Gokzma,

    Remember using the proper forum. ProBuilder is for indicators and ProOrder for strategies. I have already moved your topic to ProOrder. Read the forum rules in case you have any doubt.

    Regarding your question, I attached a piece of code that you can use:

    I hope it is ok,

    Juan

    1 user thanked author for this post.
    #130057

    Roberto,

    You are too fast for me :)))

    #130060

    Much appreciate, apologies for posting it in the wrong forum in the first place.

    #130067

    @Juan Salas

    it’s good to have two different working approaches!

     

    #130087

    ….and I would have done it like this:

    …so that’s three ways.

    2 users thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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