I have an array that I'm testing at each iteration in a backtest. I'd like to test the latest (newest) value in the array to see if it has crossed below or above a scalar number (say the number 50.0). Is there a good way of doing this built in? It seems the Cross() function tests an array against an array. I could build an array that has all values of 50.0, but that seems wasteful.
- [amibroker] How can you test to see if an array crossed a scal... potatosoupz