Open and Closing Information

 

How would I write the loop to capture the opening and closing values of a currency for the last 2 bars and display them each as a comment?

Please help!

Dave

<<
Reason: