Questions from Beginners MQL5 MT5 MetaTrader 5 - page 965

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
Better not to be confused and use one approach: either trade classCSymbolInfo or system functions like SymbolInfoXXXX.
Yes, thank you. Can I also clarify.
Can it lead to errors or is it just a recommendation for coding culture?
Uh-huh, thank you. can I also clarify.
Can this lead to errors or is it just a recommendation for coding culture?
No one forbids to use vinaigrette, BUT: won't you confuse yourself with variable names over time, won't you remember whether you updated or didn't update data in the variable?
No one forbids the use of a vinaigrette, BUT: won't you confuse yourself with variable names over time and remember whether or not you updated the data in the variable?
Thank you, I see)
If you need to compare several timeseries of the same timeframe, work with an array ofMqlRates type-> and useCopyRates to fill this array.
It is convenient to store time in aMqlDateTime structure -> useTimeToStruct to convert time fromdatetime toMqlDateTime structure.
Now your example 1 will look like this:
Thanks for the illustrative answers. But there are questions...
1. What does ? and : Found only :: context.
2. Which entry element defines the [h] entry in MT4
Thanks for the illustrative answers. But there are questions...
1. What does it mean ? and : Found only :: context
-->
This is an abbreviated form. All the same:
2. Which entry element defines the [h] entry in MT4
-->
I think InpBarTime. What do you think?
What do you mean ? and : Found only :: context
https://www.mql5.com/ru/docs/basis/operators/ternary
this operator has become fashionable lately, it is being used more and more often
kopeyka2:
Thanks for the illustrative answers. But there are questions...
1. What does it mean ? and : Found only :: context
-->
This is an abbreviated form. All the same:
2. Which entry element defines the [h] entry in MT4
-->
I think InpBarTime. What do you think?
I hardly think at the moment, in the usual sense of that state.... I'm BLONDING with a jack in the hand)))
You have globally declaredInpBarTime=3; And in MT4 [h] is from here to there usually in a loop (for limit ......)
#property script_show_inputs //--- input parameters int InpBarTime=3; // Bar where we compare the time //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart()
Found the Market_Sessions Indicator There's an interesting design there.... Trying to get the rest of the internal dialogue in my head into it...))))
I'm hardly thinking now, in the usual sense of the term.... I'm blonde with a jack in the hand)))
And you wrote globally like this
Found the Market_Sessions Indicator There's an interesting construction there.... Trying to get the rest of the internal dialogue in my head into it...))))
Ah, sorry, should have written it that way:
What do you mean ? and : Found only :: context
https://www.mql5.com/ru/docs/basis/operators/ternary
this operator has become fashionable lately, more and more often used
OK !!!
Did I get it right ?
OK !!!
Did I get it right?
You haven't got it right. I gave you a working example. Run it. Forget the MQL4 style writing. Start studying the code and look at the help.