ensark:
Hi this is my first Q. :) Thanks for sharing with your idea. Question is ;
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1
simple use function DayOfWeek()
for example:
if (DayOfWeek() == 2) {Print("Wtorek");}
ensark:
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1You ask for 2 but test for 1
for (i=0; TimeDayOfWeek(Time[i]) != 2; i++){}

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
Hi this is my first Q. :) Thanks for sharing with your idea. Question is ;
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1