Forum

BookEvent event calculation and Tester Genetic Algorithm

Hello there! 1) Could somebody tell me what exactly triggers BookEvent? Does it use volumes of buy vs sell orders and if yes how to obtain those programatically in real time? Is it fair to say that this event only relevant to current tick(time)? How often on average does this event occur? 2) Also, I

CustomSignal Object

Good Day, MQL5 Community! Could somebody, please, explain to me this macro? //+------------------------------------------------------------------+ //| Macro definitions. | //+------------------------------------------------------------------+ //--- check

Strategy Tester CustomMax on every trade

Hello, MQL Community! I have an idea of a CustomMax fitness function with its value to be adjusted on every trade . My question is: how to approach this problem? Do I need to design my own class/struct/enum and adjust the values of its members inside the OnTrade() function of every expert that I

MQL5 Code-Generating Capabilities

I've been researching the topic for some time now, but haven't been able to find the answers I was looking for. My question: Is it possible to control the features of the Visual Wizard programmatically? More broadly, my question relates to metaprogramming (code generating other code). There are

File Operations: Reading CSV

Good Day, MQL5 Community! I've encountered a problem in my attempt to read from .csv files using FileReadString() or FileReadInteger() functions . The functions work beautifully if I use MQL5 to write to a file, however, if the data is written to csv by other means (to be more specific, I'm using C#

Chart ID of SubChart

Hey guys I was wondering how it is possible to identify object SubChart on a chart? I wanna use some methods of a chart by my SubChart object, but for that I need its chart_id property . How can I get it? Upon creation I use chart_id of the main chart. Thank you for your help

Disappearing Graphical Objects

Hello there I chose to start my journey into the depths of object-oriented programming with mql5, so naturally I am facing many obstacles in my attempts to understand its inner-workings. I am trying to create a graphical interface for a panel that would have an ability to add graphical objects