ADX Cross

 

Hi,

Can someone please help me?

I have an indicator attached and I am wondering if it repaints.

I have watched it on smaller time frames and it seems that it doesn't repaint but I still do not trust it.

I appreciate in advance any help.

Thank you.

Files:
adxcross.mq4  3 kb
 
for (shift = CountBars; shift>=0; shift--) 
{ 
    Comment("\n Repaintable bars = ", CountBars+1); // <<<<<<<<<<<<<<<<<<<< add this line
    b4plusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_PLUSDI,shift-1);
 

repaint slightly - yes; JR's little trick "before[i-1], now[i], after[i+1]" whrere i-1 in real life - bar in te future - not the cleanest way to clean-up history after itself

Phy, could you tell, please, how this line works (what happens inside)?

Comment("\n Repaintable bars = ", CountBars+1); // <<<<<<<<<<<<<<<<<<<< add this line

thank you

 
It prints the number of bars the indicator is going to re-process on each tick.
 
phy:
It prints the number of bars the indicator is going to re-process on each tick.

Thanks guys for your help.

Much appreciated.

Reason: