for(int i=0;i<31;i++) { datetime timee= TimeMonth(Time[i]); if(timee == curday) { bari= bari+1; } else { i = 24; }
This creates an endless loop. To exit from a loop, use the command break.
lippmaje:
This creates an endless loop. To exit from a loop, use the command break.
thanks man this is probably the most goofiest mistake i have made ............i forgot to change "i=24" to "i = 31"
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
i am trying to calculate where the period separator might appear on different timeframes ,
indicator itself works on h4 and below , but when i attach it to D1 , it just freezes my mt4 ,
altho the calculations arent correct at the moment which i can work on to make the calculation correct
right now its giving me results a few candles before or after the actual time but i can work on it
but the main issue is the freezing
here is my code :