Trading is done by several EAs, each with their own Magic. I'm reading the manual for this function but so far not a bum how to do it all in the function...
boolHistorySelect(
datetime from_date, // с датыdatetime to_date // по дату
);
I really need a FUNCTION in MQL5 that would check if a trade was made today. If yes, then true, if no, then false (with Magic set, of course). I use this function on MT4.
Suppose I have a custom indicator with parameters (external parameters for optimisation). The tester only sees the parameters in the Expert Advisor. How can I enumerate these parameters for optimization?
I took the indicator from the standard library as a test case and added this parameter there. If I declare input in the file with the Expert Advisor, I cannot drag this parameter to the indicator. As far as I understand, the Expert Advisor uses signals of the indicator, not the indicator itself.
Or where can I read the description of interaction of the components of the standard library?
P.S. How much we miss a good IDE with highlighting and parser. Maybe there is something better than the standard editor in MetaTrader?
Fixed)
This is in MQL5 itself
I will write a deal check in the evening with a filter on the symbol and magic
I really need a FUNCTION in MQL5 that would check if a trade was made today. If yes, then true, if no, then false (with Magic set, of course). I use this function on MT4.
Insert before function
and everything becomes crossplatform.
Insert before the function
and everything becomes cross-platform.
Hello!
Suppose I have a custom indicator with parameters (external parameters for optimisation). The tester only sees the parameters in the Expert Advisor. How can I enumerate these parameters for optimization?
I took the indicator from the standard library as a test case and added this parameter there. If I declare input in the file with the Expert Advisor, I cannot drag this parameter to the indicator. As far as I understand, the Expert Advisor uses signals of the indicator, not the indicator itself.
Or where can I read the description of interaction of the components of the standard library?
P.S. How much we miss a good IDE with highlighting and parser. Maybe there is something better than the standard editor in MetaTrader?
Thank you. Very helpful. Nice library after all)
Oops, didn't make it in time. Oh, well, never mind :)
Thank you. Very helpful. Nice library after all)
Under kim functions made.
can't work out what the result of 0 in the first printout means?
can't work out what the result of 0 in the first printout means?
It means that the function returned the first value in the list. The values are numbered as in all arrays from zero.