@sankarjayaram please follow the forum rules and properly post your codes using the tags (I personally find it disappointing that you seem to have joined the forum months ago and yet you don't know how to properly post code).
Second, I had a brief look at your code at it is full of mistakes and errors. Try to tidy up and recode so that it is useable.
Third, please explain in words what your low and high crossbars are supposed to be?
Thank you for the feedback. I would have not got the output if the code is full of errors and mistakes. I will take your feedback and verify again. Would be happy if you can refer me to certain standards and procedures , so that i can be in sync.
Like to pick the first bar, where the price crosses previous days high , or previous days low.
suppose the 10th bar is crossing the previous days high, like to pick that number 10,
so that i can avoid the bars before that in my reports.
require only the first cross over, subsequent ones, we can ignore.
@sankarjayaram It's very disappointing, that even now - after @quantboy remarks, you don't obey the rules of this forum. 3 months on the forum and you still don't know how a properly formatted code looks like? In this way you show disrespect to other forum members from whom you expect help ...