
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
OK, I'm going away for a while. If you're interested, you can take another close look at this post: https://www.mql5.com/ru/forum/6343/page55#comment_344431 and point out where it's wrong.
The second question to consider: in the standard iMA indicator the third argument must be of type int. In your code
The third argument is periodd(period). What type is this argument?Good day to all
In mql4, in ekspert it was enough to write Time[10] and the result was the time of the tenth bar of the current chart. How can i get this bar in mql5.
Thank you
Good day to all
In mql4, in ekspert it was enough to write Time[10] and the result was the time of the tenth bar of the current chart. How to get this bar in mql5.
Good day to you all
In mql4, in ekspert it was enough to write Time[10] and the result was the time of the tenth bar of the current chart. How to get this bar in mql5.
Thank you
for the future, there is a very interesting article:
https://www.mql5.com/ru/articles/81
I have already rewritten the mql4 indicator and am rewriting the expert.
Question about classes, I can't figure it out.
Let's say we have in the eexpert:
CExpert Myexpert;
int OnInit()
{
//--- Initializing expert
if(!Myexpert.Init(Symbol(),Period(),true,1))
{
//--- failed
printf(__FUNCTION__+": error initializing expert");
Myexpert.Deinit();
return(-1);
}
void OnTick()
{
datetime test=Myexpert.Time(10);
Print("test = ", test);
}
Should Myexpert.Time(10) return the time of the tenth bar on the chart? And how to write it correctly?
Thank you
Should Myexpert.Time(10) return the time of the tenth bar on the chart? And how to write it correctly?
What kind of function is this? Do you have its code?
if so, look into it and check it.
But I'll tell you a secret - but shhhh, don't tell anyone ... MQL5 has a debugger!