Thread: How to code?
View Single Post
  #1053 (permalink)  
Old 06-30-2008, 02:28 AM
Ronald Raygun Ronald Raygun is offline
Member
 
Join Date: Sep 2007
Posts: 69
Ronald Raygun is on a distinguished road
Quote:
Originally Posted by Big Be View Post
I want to grab the highest and lowest values of an indicator over an entire chart. A while ago I tried what I thought should have worked, from within an EA, but it didn't.
(Sorry I don't have that attempt now to show you.)

Any ideas?

Big Be
using the iHighest function:

int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)

set the count to "Bars" so.

iHighest(NULL, 0, 3, Bars, 0);

At least that what I think would work. Just check in your chart settings how many bars you keep in history. Default I think is 52,000 bars.
Reply With Quote