Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 494

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
The closing of the weekly 1st bar can only be detected at the opening of the weekly 0th bar.
iBarShift() to help you
The calculation of the sum of movements of zero bars will start only after they open is understood, and I know, and I know that I should specify closing of the weekly bar in the line - int BarShift = iBarShift(SymbolName[j], 0, Time[i], true); but I can guess it, and how to do it? Because it's not a weekly bar but weekly period size and it doesn't remain, it keeps changing with every new bar (depending on the timeframe), i tried Friday close (DayOfWeek())==5), also it fails - the whole story breaks, because the indicator sees only last Friday close. i tried to use DayOfWeek(==5), but it breaks the story because the indicator sees only Friday's close .
...unexpexted token
how do I do it now ?
that's not the point... :-))) how has this line become wrong from the point of view of updated MQL4 ?
that's not the point... :-))) how has this line become wrong from the point of view of updated MQL4 ?
In terms of the new MQL4, "char" is, like "string", a variable type.
а... semyon Semyonych... :-))) i.e. reserved word
I know, and I know , that I should specify weekly bar close in string int BarShift = iBarShift(SymbolName[j], 0, Time[i], true); but how to do it? Because it's not a weekly bar but weekly period size and it doesn't remain, it keeps changing with every new bar (depending on the timeframe), i tried Friday close (DayOfWeek())==5), also it fails - the whole story breaks, because the indicator sees only last Friday close. i tried to use DayOfWeek(==5), but it breaks the story because the indicator sees only Friday's close .
What's stopping you from doing this?
Or don't you? ..... won't do?
reposted..... zoritch sorry.
а... semyon semyonych... :-))) i.e. reserved word
What's stopping you from doing this?
Or don't you? ..... won't do?
rearranged..... zoritch sorry.
PERIOD_W1 . Это выражение дает не понятие недельного бара который отображен на графике .а всего лиш размер недели . и при возникновении нового бара например на н1 происжодит перемещение этого размера на час вперед . так что это все не то .
Vitek2010:
Itseems to be a simple requirement - to determine the weekly close at lower timeframes.
The terminal has updated from 509 to 600 and the EA gives this warning on compilation:
declaration of 'ErrNum' hides global declaration at line 81
and a part of the code:
Can you please tell me what the problem is?