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 use this...
Thanks man
I use this...
I had many problems using time as a variable and I was looking for a way to use variables bars
thank you, work!
Why not simply using something like this :
datetime lastTime[1];
if (CopyTime(_Symbol,_Period,0,1,lastTime)==1 && prevTime!=lastTime[0])
{
prevTime=lastTime[0];
// ...
}
thank you bro!
Why not simply using something like this :
datetime lastTime[1];
if (CopyTime(_Symbol,_Period,0,1,lastTime)==1 && prevTime!=lastTime[0])
{
prevTime=lastTime[0];
// ...
}
Perfect.
I was looking for the same thing.
God bless you
Thanks Leonard, really helpful.
Noticed a few issues when working with iHigh, iLow and iClose directy after so added a quick Sleep(10000) after calling.
I wrote this function, and I usually use it in optimization mood which can make a real difference if you want to call it a million times. I think this is as fast as you can get the new bar, and it's looks clean:
I wrote this function, and I usually use it in optimization mood which can make a real difference if you want to call it a million times. I think this is as fast as you can get the new bar, and it's looks clean:
Thanks!
Question, what means "Inline"?
In "C" and "C++", the "inline" keyword would recommend to the compiler to use inline expansion for optimisation.
However, in MQL, no such feature is documented even though the compiler accepts it and does not give an error during compilation. It may simple just be tolerated but have no effect.
Thanks!
Question, what means "Inline"?
12. MQL5: Added support for the inline, __inline and __forceinline specifiers when parsing code. The presence of the specifiers in the code causes no errors and does not affect the compilation. At the moment, this feature simplifies transferring С++ code to MQL5.
Find more information about specifiers in MSDN.