View Single Post
  #285 (permalink)  
Old 11-19-2008, 02:38 PM
ValeoFX's Avatar
ValeoFX ValeoFX is offline
Senior Member
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Posts: 1,370
ValeoFX is on a distinguished road
Quote:
Originally Posted by mladen View Post
Be careful with it.
PHP Code:
for (shift CountBarsshift>=0shift--) 

    
b4plusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_PLUSDI,shift-1);
    
nowplusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_PLUSDI,shift);
    
b4minusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_MINUSDI,shift-1);
    
nowminusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_MINUSDI,shift); 
if (
b4plusdi>b4minusdi && nowplusdi<nowminusdi)
{
    
val1[shift]=Low[shift]-5*Point;
}
if (
b4plusdi<b4minusdi && nowplusdi>nowminusdi
{
    
val2[shift]=High[shift]+5*Point;
}

It is looking for future values (the shift-1 parameter) to find out crossings

Mladen, would you mind being more explicit regarding the "warning"? It most certainly does not repaint, but if there is anything else to be aware of, I would like to know so that I can address it. It most certainly gives excellent signals.

Looking forward to hearing from you.

Best wishes.
__________________
"Risk comes from not knowing what you are doing" The Tao of Warren Buffett.

"Avoiding mistakes, makes people STUPID and having to be RIGHT, makes you OBSOLETE." Robert Kiyosaki.
Reply With Quote