this is such a simple question but I am looking at some old coding of mine and notice 2 things I’ve put in differently
HC = Highest [ 52 ] ( High ) [ 2 ]
HC = Highest [ 52 ] ( High ) [ 1 ]
What is the difference between the 1 and the 2, is it that the last 2 bars are high closes on the prevous 52 and the last 1 bar is a high close on the previous 52?
Both find the highest high within the last 52 bars.
The difference is that [1] starts from the 1st bar preceding the current one (which is none or [0]), while [2] starts from the 2nd bar preceding the current bar. [1] will scan bars 1-52, [2] will scan bars 2-53.
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