Hi, I want to be able to have my code buy/sell on a Moving average Cross but the stock must have been under 40/over 60 RSI in the last 3 candles. Any help as too how I can do this? M
To achieve this, we can make a loop in the past to see if the conditions were met in the last 3 candles. We can also make summation of the result of a condition that return 1 if its met, with the SUMMATION instruction.
Please find below your strategy modified accordingly to your needs:
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