//Draw Candlesticks for ( _i = _LastBar; _i < _LastBar + _BarsCount; _i ++ ) {Repainting. Count down.
for ( _i = _LastBar + _BarsCount -1; _i >= _LastBar; _i -- ) {
Thanks! but the same problem.
Anything wrong with my count down?
Seem like the indicator is peg to the chart or something.
When zoom in or out, scrolling back and forth, it starts plotting and takes the value from where the chart begins - the left side of the chart window.
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
I realized that the value of the OverLay Chart vary as I zoom in and out on the chart.
So it can be above or below the overlay pair depending on where the chart begins (i believe)
or how much I zoom in and out. Is there anyway to overcome this tiny flaw???
How to make the value fixed like any other indicator,
i.e. moving average - no matter how you manipulate the chart, the current value remains fixed.
(Or do you know of any other Overlay Chart indicator that could do that?)
https://www.mql5.com/en/code/7933
https://www.mql5.com/ru/code/9401
Thanks!