Emanuel Cavalcante Amorim Filho / Publications
Forum
MQL++: Interact with Metatrader5 directly via C++ code
We all know MQL5 is a great language. It provides a full set of functions to deal with the market data and to develop programs and automated strategies. But sometimes it may not attend to all of our needs. Imagine you want pass a double** ptr to a function. You can't do that in MQL5, because
SymbolsTotal() returns more symbols than those selected in the MarketWatch
I have a Trading Panel that, besides other stuff, has two buttons; the first sets the current chart to the next symbol in the MarketWatch, whilst the other sets the current chart to the previous symbol. The code of both functions starts like this: void OnClickNextBtn() { int total= SymbolsTotal
Bug/performance issue when running an optimization
So, I'd like to know if someone also faces a bug like this. I'm running an optimization where the cores of my computer are used: As you can see, the tasks sent to cores 1, 2 and 3 are finished. The tasks sent to the 4th core, however, are still being processed, but only because more tasks were
Please, Metaquotes, store our forward test results too!
This is a thread for Metaquotes. It's quite weird that the forward test results are not saved anywhere or at least is not displayed to the user under some probably unknown circumstances. If for some reason I need to go back to old tests to get the forward results, I need to run the optimization all
How does take profit really work on MT5?
Title. My question comes from the following situation: when a tp level is reached, it is commonly not executed at the price it was placed . Take the following as an example. We see that the take profit was reached (127,105) . However, the execution price was at 127,115 . In this market, this
How do I tell an indicator should be loaded in a separate window
Hey guys! Title says all. The thing is a want to load an indicator to the chart using ChartIndicatorAdd . Some of them are oscillators - but I don't know which ones I'm loading are oscillators and thus should be loaded on a subwindow. How can I do this? I looked into the documentation, but couldn't
Usages for TesterStop
Hey, guys! As the documentation well says, the function TesterStop can be used when the account reaches a pre-defined drawdown or when a certain amount of trades are executed to stop current testing. But I'm looking for other usages for it, since it drastically speeds up the optimization testing
CopyBuffer returns 0
Hey guys! I'm facing an issue with CopyBuffer specifically when using Strategy Tester on non-visual mode . Basically, in some occasions, it fills the target array with 0. This is no indicator problem - at least, that's what I think, because: 1 - On visual testing my EA works just fine; 2 - On