Forum

Limitations of a script.mql5

Hi there, I would like to write a service (not a expert advisor or something bound to a chart) that uses a AppDialog class. Is there some limitation on using windows and panels objects in service s ? I was trying to adapt this tutorial putting all I can on OnStart function (as you can see in the

MetaTrader5.symbols_get() returns always NoneType object (Python Integration)

The function symbols_get() of MetaTrader5 module in Python always return NoneType object. The initialize() function works properly and account_info too (I used them to test the general functional state of the machine/environment). In fact, I have tried to run the example script in reference without

Killing running OnStart function

Hi Community! Is it possible to kill the running OnStart script if it delays too much to finish? Would it be safe? I want to restart (call) the OnStart () after killing it in the case the work that must be done was not progressing in time as expected. Regards

Setting time for requesting data of "Copy* functions"

Hi ladies and gentlemen, I'm writing a code in which I need to work over a lot of assets (symbols), implying to a lot of interactions with the server. Some request performed by functions like CopyRates, CopyLow and CopyHigh aren't supplied and the functions keep trying retrieving data. CodeErrors

CopyLow and CopyHigh gives the same output for different datas (symbols)

Hi, I'm working on a script. It works over all available assets, filter them according to its name and process data, briefly saying. The problem is: the scripts gives good outputs (by terminal I verify them) and suddenly freezes. Stopping it, the lacking outputs quickly appear and, often, they

Getting symbols of all disponible assets to a account

Hi there, I search through reference, duckduckgo and google many times without sucess. There is a way to get all asset symbols disponible to a account in mql5? Thank you in advance! (symbol = first parameter of CopyRates function )