I just discovered this forum and I'm happy to see that such a community exists around this programming language.
I recently programmed a small script with an entry condition wich is the macd be green and the PSAR be below the prices (psar>close). I would now like to know how to make an exit condition so that the price reaches the position of the PSAR when entering, , I have no idea how to do it and I would like someone to offer me his help or advice.
Thank you very much!