
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
The "problem" may be that the indicators use a limit, i.e. the IndicatorCounted() function
in order to not repaint bars.
Changing timeframe resets that, WindowRedraw() may not. Its function is to redraw objects, not indicator indexes.
I know I usually go ahead and recalculate 1000 bars or so on most of the things I write, and that is
kicked off by a right-click Refresh.
If you don't severely limit the loop for the indicator, you get an indicator refresh on every tick.
Thanks a lot,
Are you "hard of reading" ?
just after almost two months I got your last reply. I just don't know how I skipped that. I am still having trouble with "redrawing my indicator". now I will try to fix the issue with the information you gave me. thank you a lot,,,
Show your code...
hi phy,
just after almost two months I got your last reply. I just don't know how I skipped that. I am still having trouble with "redrawing my indicator". now I will try to fix the issue with the information you gave me. thank you a lot,,,
I guess I am trying to reset the indicator to force it to redraw all again from the beginning!? my issue is that I am using a function that changes the past data in function of the new data, and the result is that my chart becomes a mass over the time. I need to redraw my entire indicator periodically. lately, I've been changing the time frame, so that when I go back to the time frame I was, I get my chart windows clean (redrawn) . here is the schema of my code:
thanks a lot,,,
What is GV?
What I've been doing recently, is something like this:
for( int i = MathMax(WindowFirstVisibleBar(), Bars-IndicatorCounted()); i>= 0; i--){
It redraws the visible part of the indicator on every tick, but not the bars that are out of sight.
What is GV?
What I've been doing recently, is something like this:
for( int i = MathMax(WindowFirstVisibleBar(), Bars-IndicatorCounted()); i>= 0; i--){
It redraws the visible part of the indicator on every tick, but not the bars that are out of sight.
you guys are awesome!! I will implement this code this afternoon.
thanks for your generosity,,,