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:
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue