Hi, Im trying to code something that I wil use as an exit.
I want to close the trade at the end of the day after the entry if its a profit. If not, the same on day 2, close at the end of day if profit. Same with day 3 and 4. At day 5 I want to close anyway.
I dont know how I should write to refer to the entry price? Can someone help me?