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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////