If I used an array to log the bar index and price of a pair of MAs if they were to cross, is it possible to use the array function to find the price of the previous crossing, if so, how would I write it?
If you only want to know the price and barindex of the last crossing then you don’t need to use array variables. However if you want to store the price or barindex of all historical crosses then you do need to use array variables.
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.