Finding Range over all bars in a chart for N periods...High to Lowest ???
  #1 (permalink)  
Old 01-27-2007, 09:44 AM
Freshman
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Digs is on a distinguished road
Default Finding Range over all bars in a chart for N periods...High to Lowest ???

int limit, records, N=2;
int counted_bars = IndicatorCounted();
limit = Bars - counted_bars;
if ( counted_bars < 0 ) return(0);
if ( counted_bars ==0 ) limit=Bars-1;
double EUR;

for(int i = 0; i < limit; i++)
{
EUR = (iHigh("EURUSD", 0, i) - Low[iLowest("EURUSD", 0, MODE_LOW, N, i )] );

}

I am trying to find the range from the current bar high to the lowest low over N periods, Including current bar,,,the above does seam to work ??

Any ideas...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
High/Low Breakout Scalper scorpion Trading Systems 58 05-22-2008 02:43 PM
MT4 Time frame - 10 M chart bnf Indicator Coding 1 03-16-2007 04:58 AM
High/Low Difference Indicator DoxAdon MetaTrader and ZeroCode 0 12-18-2006 11:46 PM
Looking for Williams Percentage Range %R chart11610 Indicators 0 09-12-2006 10:25 PM
daily HI Low to work on a D1 chart Village Fool Trading Systems 4 09-01-2006 09:16 AM


All times are GMT. The time now is 11:22 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now