How do i make a condition to enter a trade without it having a specific timeframe?
For example in this code when 5 ma crosses over 20 ma it will buy, buy only if the RSI is below 30 in the same time period.
How do i create a code that recognise that 5 ma has crossed over 20 ma and the first time RSI goes below 30 any time after that, if 5 ma is still over 20 ma it buys.