Errors, bugs, questions - page 1751

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
no. this feature displays the window at the top. but it does not check for a window in the top
https://www.mql5.com/ru/forum/42833#comment_1493908
there
the help hasn't changed yet, a year and a half is not a deadline :))
https://www.mql5.com/ru/forum/42833#comment_1493908
This is not the case at all. A chart may not be at the top but be visible. Or it can be at the top but invisible.
Drawing on a chart only makes sense or not if you know whether it is visible or not.
That's not the case at all. A chart may not be at the top but be visible. Or it can be at the top but not visible.
It only makes sense to draw on a chart if it is known whether it is visible or not.
That's not the case at all. A chart may not be at the top but be visible. Or it can be at the top but not visible.
Drawing on a chart only makes sense or not if you know whether it is visible or not.
There you can get coordinates and width of charts, plus their z-order - all windows of charts belong to the same WMIClient.
Try this.
WinApi is your help.
You can get chart coordinates and width there, plus their z-order - all chart windows belong to the same WMIClient.
I use a script to call up the period data. Starting with hourly figures, the numbers are incomprehensible. Or should it be like that?
{
Print("Period()=",Period());
}
2016.11.01 16:55:58.840 период (EURUSD,M30) Period()=30
2016.11.01 16:55:46.950 период (EURUSD,M1) Period()=1
I use a script to call up the period data. Starting with hourly figures, the numbers are incomprehensible. Or should it be like that?
{
Print("Period()=",Period());
}
2016.11.01 16:55:58.840 период (EURUSD,M30) Period()=30
2016.11.01 16:55:46.950 период (EURUSD,M1) Period()=1
Is it the right approach to measure full lap times in the current indicator flow?
#property indicator_buffers 0
#property indicator_plots 0
sinput int Amount = 100; // Количество циклов
void OnInit( void )
{
EventSetMillisecondTimer(1);
}
ulong ArrayMean( const ulong &Array[] )
{
const int Size = ArraySize(Array);
ulong Sum = 0;
for (int i = 0; i < Size; i++)
Sum += Array[i];
return((Size > 0) ? Sum / Size : 0);
}
ulong ArrayMin( const ulong &Array[] )
{
return(Array[ArrayMinimum(Array)]);
}
ulong ArrayMax( const ulong &Array[] )
{
return(Array[ArrayMaximum(Array)]);
}
#define TOSTRING(A) #A + " = " + (string)(Array##A(Cycles)) + " mcs. "
void CycleComment( void )
{
static ulong Cycles[];
static const int Size = ArrayResize(Cycles, Amount);
static ulong PrevTime = GetMicrosecondCount();
static int i = 0;
Cycles[i] = GetMicrosecondCount() - PrevTime;
i++;
i %= Size;
Comment(TOSTRING(Mean) + TOSTRING(Min) + TOSTRING(Max));
PrevTime = GetMicrosecondCount();
}
void OnTimer( void )
{
CycleComment();
}
int OnCalculate( const int rates_total, const int prev_calculated, const int begin, const double& price[] )
{
return(rates_total);
}
Something I get a lot on an empty chart (no indicators) - an average of 15ms, a minimum of 5ms. Why is this the case?