Quote:
Originally Posted by anamy
I can add whatever features you think will make it better, but I'm not quite sure what you're asking there. What the EA does it is will check for the highest high and the lowest low (of the past 3 bars) for the 15 minute chart, regardless of what the timeframe the EA is currently attached to. So if it is on a 5 Minute or a daily chart, it'll still be checking internally using the 15 minute bars, as per the strategy.
|
I want it to check a whole hour on the 5 minute chart instead of the 15 minute. Example 1400,1405,1410,1415 all the way up to 1455.
Would I just change the section like I have below?: (Just a crack at it because I would like to learn more about building EAs)
double highestHigh=0, lowestLow=1000;
int index=1;
// Determine the entry values for the upcoming set of orders
while (index != 4)
{
if (iHigh(NULL, 5, index)>highestHigh)
highestHigh=iHigh(NULL, 5, index);
if (iLow(NULL, 5, index)<lowestLow)
lowestLow=iLow(NULL, 5, index);
index++;
}