Forum

Handle multiple ticks in OnTick for multiple symbos

Hello, I'm currently developing support for multiple Symbol experts and I'm facing the following problem: Given the expert is attached to a chart, the documentation for OnTick says: > The NewTick event is generated only for EAs upon receiving a new tick for a symbol of the chart the EA is attached

Does MetaTrader allow Multiple symbols for an Expert?

Hello, I'm trying to think in a way (If possible) of having an Expert which operates in multiple Symbols at a time, but I'd like to get your opinion on the best approach. I have seen this post https://www.mql5.com/en/forum/212858, which shed some light into the problem, but I would like to use the

MetaTester: Not enough free memory, even if there is plenty available

Hello, I have MetaTrader 5 installed on a Mac M1, and I think there is a problem with Wine configuration, because I', constantly getting an error about not enough memory being available, even when only metatrader is running (Without any experts) > not enough free memory (1896/16384Mb), skip

Programatically start optimisation Process

I was reading this article ( https://www.mql5.com/en/articles/3279 ) and I found it interesting, what I'm curious about is: How can one develop such a tool? I've read the developer documentation, but don't find anything related to running the optimization process programatically. I would like to

How to properly set CExpertSignal::BasePrice

Hello, I've been trying to write a signal which places stop orders instead of executing on market price. The problem I'm facing is, m_base_price is zeroed after each call to either CExpertSignal::CheckOpenShort CExpertSignal::CheckOpenLong Here: //--- zeroize the base price m_base_price=0.0; My idea