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... |
![]() |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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
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








Linear Mode


