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
Here's a question.
Would it be correct in MQL5:In MQL4 the code is like this:
Here's a question.
Would it be correct in MQL5:The code in MQL4 is like this:
not quite correct.
it is desirable to call CopyTime once before the loop
not quite correct.
it is desirable to call CopyTime once before the loop
Right?
There is a variable Volume in the Data window. As far as I understand it means exchange (real) volume. I noticed today, on EUR/USD M1 (Alpari), if you put the mouse cursor over any bar, you can see volume values. I wonder if anyone knows how these values are calculated? Is this the trading volume on the pair for Alpari clients only, or is it just random numbers at all, or what... In the screenshot below you can see volume = 620m.
There is a variable Volume in the Data window. As far as I understand it means exchange (real) volume. I noticed today, on EUR/USD M1 (Alpari), if you put the mouse cursor over any bar, you can see volume values. I wonder if anyone knows how these values are calculated? Is this the trading volume on the pair for Alpari clients only, or is it just random numbers at all, or what... In the screenshot below you can see volume = 620m.
Strange glitch while the program is running
int TimeToCycleIndex(datetime lTime, ENUM_TIMEFRAMES lTimeFrame, int lDays)
{
int Resx;
MqlDateTime Struc;
TimeToStruct(lTime,Struc);
Resx=(MarketDayCycle(lTime,lDays)*60*24+Struc.hour*60+Struc.min)/(PeriodSeconds(lTimeFrame)/60);
Print("Resx = ",Resx," ResCalc = ",(MarketDayCycle(lTime,lDays)*60*24+Struc.hour*60+Struc.min)/(PeriodSeconds(lTimeFrame)/60));
return(Resx);
}
Count the same thing several times for comparison, a fragment of the log is shown below. The error is shown in red because it cannot be a negative number. It seems as if a variable is being corrupted. What is this problem related to and how to solve it? Thanks in advance for your help.
Alpari clients only. But the internal volumes of the big offices are very much correlated.
There are classes for building graphical interfaces in the standard library. This is a good thing.
The disappointing thing is that the dialogs are glitchy. It can be observed in the test example. If you double-click and with second click capture a "movable" element (e.g. scrolling bar or window title bar), they can be dragged to any place on the screen. The second frustrating feature is that when a dialog window is moved horizontally, the chart on the chart scrolls together with it. It is not fatal, but unpleasant, especially considering that the purpose of moving is often to look at the chart below the dialog. The third is unstable operation of controls (eg check-boxes) and generally light lags (which probably cannot be fixed in the current implementation of the terminal).
There are also architectural inconveniences (for example, an architecture tuned to static dialog assembling (early linking of elements)), but this is for gourmets. In principle, it is bearable.
There are also pluses and even beauties in the implementation, but about this in this thread is out of the question.
The bugs are fixable.
--
I would also like to have in the standard set of tools to implement multi-page dialogs (CTabBox or something like that).
Strange glitch while the program is running
int TimeToCycleIndex(datetime lTime, ENUM_TIMEFRAMES lTimeFrame, int lDays)
{
int Resx;
MqlDateTime Struc;
TimeToStruct(lTime,Struc);
Resx=(MarketDayCycle(lTime,lDays)*60*24+Struc.hour*60+Struc.min)/(PeriodSeconds(lTimeFrame)/60);
Print("Resx = ",Resx," ResCalc = ",(MarketDayCycle(lTime,lDays)*60*24+Struc.hour*60+Struc.min)/(PeriodSeconds(lTimeFrame)/60));
return(Resx);
}
Count the same thing several times for comparison, a fragment of the log is shown below. The error is shown in red because it cannot be a negative number. It seems as if a variable is being corrupted. What is this problem related to and how to solve it? Thanks in advance for your help.
1. Please paste the code correctly.
2. Can you give me the full source code, working example or MarketDayCycle function code.
There are no arrays in this piece of code and there is no way to work with arrays
when installing the new build 642, the Testing Finished sound does not work after the EA test is completed,
is this a bug or . not a bug ?