There is a small issue with your code Roberto as it does not exit exactly ten hours after a trade is opened when used on a faster time frame than hourly. You would need to record the minute and/or second when a trade is opened and then count the hours and then check for the same minute and/or second in the tenth hour to work out when to precisely close the trade.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.