Questions from Beginners MQL5 MT5 MetaTrader 5 - page 515
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
Alternatively
if (StatTime==1)
{
Time=iTime(NULL,1440,0);
StatTime=0;
}
if(Time!=iTime(NULL,1440,0))
{
StatTime=1;
}
I think this would be more interesting
variant 1
version 2
Hello!
There is a code of functions "newt" and "dlt" which solve some algorithm. Please tell me, what is this algorithm? What problem do these functions solve?
I'm asking for help from the community.
What is the difference between the Ask value obtained in two MQL5 functions?
Which of these functions returns a value similar to Ask from MQL4?
I'm asking for help from the community.
What is the difference between the Ask value obtained in two MQL5 functions?
Which of these functions returns a value similar to Ask from MQL4 ?
Both examples work
I'm asking for help from the community.
What is the difference between the Ask value obtained in two MQL5 functions?
Which of these functions returns a value similar to Ask from MQL4?
Before you write anything (in terms of code), think about the most resource-efficient and correct way to solve the problem. In the first case only current ask price is requested, in the second case the whole tick structure is requested. Most likely (it should be measured) the second case works much slower and if you need only ask price, there is no point in getting the structure.
I'm currently rewriting my Expert Advisor from MT4 to MT5. First of all I need to know how to get an Ask in MQL4. I will think about performance issues later. :)
Oh sorry I didn't understand your question right away, I wrote that both of these variants work in MT4, and in MT5 they are analogs of ask and MarketInfo(_Symbol,SYMBOL_ASK); from old MT4
There were two variants from MQL5 ...
And they are analogues of "ask and MarketInfo(_Symbol,SYMBOL_ASK)from old MT4", did I understand you correctly ?
There were two variants of MQL5 ...
And they are analogous to "ask and MarketInfo(_Symbol,SYMBOL_ASK)from old MT4", did I understand you correctly ?
Yes, that's right.
Oh sorry didn't understand your question right away, I wrote that these both work in MT4, but in MT5 they are analogs of ask and MarketInfo(_Symbol,SYMBOL_ASK); from old MT4