I would like to know if it’s possible to close a position if it’s been open for a certain time and not met the takeprofit target.
I would also like to know if it’s possible to know if the position is in profit prior to closing it.
Many thanks
Robert
First question:
Close a position after 3 hours
Second question:
Take a look in the pathfinder code. It closes after a certain time if the position is a winner or a looser.