I'm using the Support Resistence Zones utility at
http://www.wealth-lab.com/Strategy/Details/65This utility draws multiple support/resistence lines at the same bar - i'm using this to create 2 DataSeries (Support and Resistence) that are closest to the price at any given bar, so i can Buy and Sell when the price touches these 2 series.
Having trouble creating this Series, as can be seen in the plot of these two series on the price chart - they don't overlap with the Support/Resistence boxes closest to the price. Please advise what i'm doing wrong with the code below (i've commented my code inserts as //my code) and how i could fix it.
CODE:
Please log in to see this code.