Support Resistance DataSeries
Author: kbellare
Creation Date: 10/1/2014 8:26 PM
profile picture

kbellare

#1
I'm using the Support Resistence Zones utility at http://www.wealth-lab.com/Strategy/Details/65

This 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.
profile picture

Eugene

#2
Is this closer?

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).