position time

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

    Hi everyone,
    I would like to insert in this code, that if after a certain amount of time i’m still in position, it is automatically closed,
    I have tried but have not succeeded until now
    if you can, thank you very much
    Alex

     

    #140881

    Just add this to your code

    Insert instead of “bar number” your desired quantity; keeping in mind that based on the timeframe of the strategy you have to calculate how many “bar numbers” you need to preset the position stop.

    i.e.: on a 5min strategy, 5 bar numbers will be equivalent to 25 minutes.

    #140894

    ok

    Thank you so much

     

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