Download MetaTrader 5
To add comments, please log in or register
Post web links to paid signals. Receive the partner's share!
Andrew
7
Andrew 2015.03.24 12:18 

Hi

 I have coded an indicator which draws arrows and lines and it works. The problem is that when I scroll the chart to the outermost left part of the chart the arrows get distorted and appear in incorrect places.

When I keep scrolling in that direction the chart timeline extends and older dates as well as older bars appear. - older history is created?

I wrote a line which prints me the numer of counted bars (Indicatorcounted) in the terminal. When the above problem occurs the numer of counted bars goes down to zero which forces the indicator to

recalculate. 

Thanks for help

whroeder1
13610
whroeder1 2015.03.24 13:01  
John_70:

I have coded an indicator which draws arrows and lines and it works. The problem is that when I scroll the chart to the outermost left part of the chart the arrows get distorted and appear in incorrect places.

When I keep scrolling in that direction the chart timeline extends and older dates as well as older bars appear. - older history is created?

I wrote a line which prints me the numer of counted bars (Indicatorcounted) in the terminal. When the above problem occurs the numer of counted bars goes down to zero which forces the indicator to recalculate. 

Thanks for help

  1. So it does NOT work correctly. Fix it.
  2. Older history is downloaded.
  3. New bars, indicator must recalculate
  4. Welcome
Andrew
7
Andrew 2015.03.25 09:56  

"Problem" solved. it works ok when not downloading history. I reduced max numer of bars on the chart.

I shouldn't have called that a problem. 

/
To add comments, please log in or register