you are looping in the while(true) statement. It never breaks. MT will hang under
this condition.
add something like if(i>Bars) break; statement to that loop.
add something like if(i>Bars) break; statement to that loop.
irusoh1:
you are looping in the while(true) statement. It never breaks. MT will hang under this condition.
add something like if(i>Bars) break; statement to that loop.
thank you for that. could you tell me where it should go here? i know nothing about
code, or how to write it. do i need to add any of these things } ?
you are looping in the while(true) statement. It never breaks. MT will hang under this condition.
add something like if(i>Bars) break; statement to that loop.
walrus:
did you change this row? seems like you did. as the code is looking for daily fibo
levels you should use it like this. or at least some bigger timeframe. right now
it looks 1 minute back and if this is low or high it will show you something. you
could make it look for longer terms (changing those lines to bigger number) or
change back original line to PERIOD_D1 (it was probably that). if you want to see
on minute timeframe change those lines:I adjusted it from the original to have it look at the MN1 time frame, and thats about it. It shows errors on compile, but works on the normal charts. ArrayCopyRates(Rates, Symbol(), PERIOD_MN1);
extern int daysBackForHigh = 1; extern int daysBackForLow = 1;use, for example 100 --> this means finding highest and lowest point in last 100 minutes...
the errors you get are rows 39 and 40
prevRange = 0; objectsExist = false;
you must delete them and allow those lines in init() part [delete "//" marks before those two lines there]
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