Max-Min custom indicator hangs up the Metatrader
Hi, I need help on the attached custom indicator. Every time I attach to a chart in hangs up the MetaTrader and I'm forced to close it. What is wrong with the codes??? The indicator is to determine the Maximum and Minimum price at a given number of bars.
- Indicators: BearNaked Pattern1
- How to attach a custom indicator in EA code
- How to calculate an indicator for Max number of Bars
Zaldy:
The indicator is to determine the Maximum and Minimum price at a given number of bars.
The indicator is to determine the Maximum and Minimum price at a given number of bars.
then use iHighest() & iLowest()
it's n endless loop
while(i>=0) // i is never gonna be 0