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
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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue