Please don't create topics randomly in any section. It has been moved to the section: Expert Advisors and Automated Trading
int filterHighs = iHighest(_Symbol,PERIOD_M5,MODE_HIGH,endIndex,startIndex);
The forth field is the number of bars you want to count.
So you should use:
int filterHighs = iHighest(_Symbol,PERIOD_M5,MODE_HIGH,numBarsInRange,startIndex);
another thing is
for(int i = 0; i < DaystoDraw; i++)
The loop is meaningless. You are just doing the same thing over and over. And all the calculations are for today.
@sarzie can you please share the working code? I'm trying to do something similar.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Any help would be much appreciated!