i am trying to find atr of 14 years
if there is any working indicator do share, but if not then please suggest how to code this
if there is any working indicator do share, but if not then please suggest how to code this
QuoteDislikeddouble avgR, R[], H, L;
int Hi , Li ;
for ( int i = 0 ; i < 14 ; i ++ )
{
Hi = iHighest ( Symbol() , 43200 , MODE_HIGH , 12 , Month() + i ) ;
Li = iLowest( Symbol() , 43200 , MODE_LOW , 12 , Month() + i ) ;
H = iHigh ( Symbol() , 43200 , Hi ) ;
L = iLow ( Symbol() , 43200 , Hi ) ;
R[i] = H - L ;
}
abgR = averge of above array R ;
timepass is tough for a permanently bedridden person