Simple Indicator That Won't Update!
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

You agree to website policy and terms of use
It's time to appeal to smarter programmers than myself. I have been working on this ADR (Average Daily Range) indicator, which draws lines at the upper and lower levels of the daily range. I've been running it on 5-minute charts and although it paints the lines just fine when first dropped on the chart, it will not update the lines as new bars form! I have spent hours trying to figure out the problem and can't find it.
Will one of you crack programmers please tell me how to fix this? Here's the full code:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////