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.
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