Re: Does this indicator repaint?

564
17MA wrote: Sun Sep 19, 2021 7:13 pm Hi can someone help me check if this indicator repaints?
using data from the actual bar (...trend[x] > 0...) but then plotting the arrows earlier (ArrUp[x+1] = ...) makes it repainting for at least 1 bar

Code: Select all

if  (trend[x+1] < 0 && trend[x] > 0)   ArrUp[x+1] = ExtMapBuffer[x+1] - Gap*Point;   else ArrUp[x+1] = EMPTY_VALUE; 
            if  (trend[x+1] > 0 && trend[x] < 0)   ArrDn[x+1] = ExtMapBuffer[x+1] + Gap*Point;   else ArrDn[x+1] = EMPTY_VALUE; 
These users thanked the author ionone for the post:
17MA

Re: Does this indicator repaint?

565
ionone wrote: Sun Sep 19, 2021 8:31 pm using data from the actual bar (...trend[x] > 0...) but then plotting the arrows earlier (ArrUp[x+1] = ...) makes it repainting for at least 1 bar

Code: Select all

if  (trend[x+1] < 0 && trend[x] > 0)   ArrUp[x+1] = ExtMapBuffer[x+1] - Gap*Point;   else ArrUp[x+1] = EMPTY_VALUE; 
            if  (trend[x+1] > 0 && trend[x] < 0)   ArrDn[x+1] = ExtMapBuffer[x+1] + Gap*Point;   else ArrDn[x+1] = EMPTY_VALUE; 

Thanks does the line itself repaint too?


Re: Does this indicator repaint?

568
sal wrote: Mon Sep 20, 2021 2:08 am Mr.tools
I saw recent one post and i would like to know this indicator will repaint mainly the upper , lower & middle lines??
if its repaint, how many bars will affect. any idea!!
If causal = true, no recalculating/repainting and if causal = false the indicator is using centered calculation, which means it can and will recalculate/repaint.
These users thanked the author mrtools for the post (total 2):
sal, Krunal Gajjar

Re: Does this indicator repaint?

569
sal wrote: Mon Sep 20, 2021 2:08 am Mr.tools
I saw recent one post and i would like to know this indicator will repaint mainly the upper , lower & middle lines??
if its repaint, how many bars will affect. any idea!!
I am using with casual=false, Bands acts as a excellent support and resistance, trading up-down slope, expansion, narrowing, extension of line on trending side of band.


Who is online

Users browsing this forum: ChatGPT [Bot], Google [Bot], Grapeshot [Bot], jmb1, kvak, Narutopips, Ruby [Bot], Sutatong and 95 guests