at the moment iam developing a new stategy and i need your coding support.
i’m looking for the code snippet to define that my long position should sell after 4 days.
i only can found thinks like sell after x pipes or soething like this, but i only need the command to sell my long position after 4 days
If you are trading on a daily timeframe, you can test if the actual trade has 4 bars elapsed since its inception. You should look at TRADEINDEX in the documentation.
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.Ok