Codes

COLLECT ALL INDICATORS DATA for MetaTrader 5

This Script collects all MQL5 built-in indicators buffers and stores them in a CSV file for analysis purposes

Multiple dynamic logistic regression first unsuccessful attempt for MetaTrader 5

from the logistic regression Article, I welcome all the thoughts on how we can build multiple dynamic Logistic Regression

Close All Orders and Positions for MetaTrader 5

This is a simple script that Closes all Orders and Positions available

More Trade After Break Even for MetaTrader 4

Have you ever wanted to add another trade only after the previous has been modified by either trailing stop or even break even , This code will help you to be able to implement that

Articles

Data Science and ML (Part 22): Leveraging Autoencoders Neural Networks for Smarter Trades by Moving from Noise to Signal for MetaTrader 5

In the fast-paced world of financial markets, separating meaningful signals from the noise is crucial for successful trading. By employing sophisticated neural network architectures, autoencoders excel at uncovering hidden patterns within market data, transforming noisy input into actionable

Overcoming ONNX Integration Challenges for MetaTrader 5

ONNX is a great tool for integrating complex AI code between different platforms, it is a great tool that comes with some challenges that one must address to get the most out of it, In this article we discuss the common issues you might face and how to mitigate them

Data Science and Machine Learning(Part 21): Unlocking Neural Networks, Optimization algorithms demystified for MetaTrader 5

Dive into the heart of neural networks as we demystify the optimization algorithms used inside the neural network. In this article, discover the key techniques that unlock the full potential of neural networks, propelling your models to new heights of accuracy and efficiency

Data Science and Machine Learning (Part 20): Algorithmic Trading Insights, A Faceoff Between LDA and PCA in MQL5 for MetaTrader 5

Uncover the secrets behind these powerful dimensionality reduction techniques as we dissect their applications within the MQL5 trading environment. Delve into the nuances of Linear Discriminant Analysis (LDA) and Principal Component Analysis (PCA), gaining a profound understanding of their impact on

Data Science and Machine Learning (Part 19): Supercharge Your AI models with AdaBoost for MetaTrader 5

AdaBoost, a powerful boosting algorithm designed to elevate the performance of your AI models. AdaBoost, short for Adaptive Boosting, is a sophisticated ensemble learning technique that seamlessly integrates weak learners, enhancing their collective predictive strength

Data Science and Machine Learning (Part 18): The battle of Mastering Market Complexity, Truncated SVD Versus NMF for MetaTrader 5

Truncated Singular Value Decomposition (SVD) and Non-Negative Matrix Factorization (NMF) are dimensionality reduction techniques. They both play significant roles in shaping data-driven trading strategies. Discover the art of dimensionality reduction, unraveling insights, and optimizing quantitative

Data Science and Machine Learning (Part 17): Money in the Trees? The Art and Science of Random Forests in Forex Trading for MetaTrader 5

Discover the secrets of algorithmic alchemy as we guide you through the blend of artistry and precision in decoding financial landscapes. Unearth how Random Forests transform data into predictive prowess, offering a unique perspective on navigating the complex terrain of stock markets. Join us on

Data Science and Machine Learning (Part 16): A Refreshing Look at Decision Trees for MetaTrader 5

Dive into the intricate world of decision trees in the latest installment of our Data Science and Machine Learning series. Tailored for traders seeking strategic insights, this article serves as a comprehensive recap, shedding light on the powerful role decision trees play in the analysis of market

Data Science and Machine Learning (Part 15): SVM, A Must-Have Tool in Every Trader's Toolbox for MetaTrader 5

Discover the indispensable role of Support Vector Machines (SVM) in shaping the future of trading. This comprehensive guide explores how SVM can elevate your trading strategies, enhance decision-making, and unlock new opportunities in the financial markets. Dive into the world of SVM with real-world

Mastering ONNX: The Game-Changer for MQL5 Traders for MetaTrader 5

Dive into the world of ONNX, the powerful open-standard format for exchanging machine learning models. Discover how leveraging ONNX can revolutionize algorithmic trading in MQL5, allowing traders to seamlessly integrate cutting-edge AI models and elevate their strategies to new heights. Uncover the

Forum

Major Bug in matrix.eig method

While working on a machine learning model I noticed a weird behavior on the Eig built-in method. When given a matrix matrix SBSW = {{- 3.474589321704841 , 1.106384365940048 ,- 9.091976743274188 ,- 3.925227000397125 }, {- 5.522139525216183 , 2.366887770561694 ,- 15.162350848809 ,-

Detecting datatype from a string

Does anyone know a way to detect a datatype from a string value? This can be important when reading from a CSV file, as we all know mql5 reads a csv file as a data of one type it, for example reading the information from a CSV as strings which works better and gives you the option to convert the

Failed to decode JSON object Error

I have a JSON string that I'm trying to use to make a webrequest string json = "{\r\n" "\"time\": \"2023-06-06 10:00:00\",\r\n" "\"type\": 2,\r\n" "\"volume\": 0.02,\r\n" "\"stoploss\": 1.2000,\r\n" "\"takeprofit\"

Automated trading championships, Where did it go?

Hey, when I look at some old articles in this platform I notice that around 2007 and prior there were, Automated trading contests. Where are they currently

Has someone ever come though this Error ? VirtualAlloc failed in large allocator, size=34359738368

I am trying to run the script but I get these on the journal tab, I have tried removing the recent added code but nothing seems to change, I have also closed and opened both terminal and the MetaEditor, Same story, someone help

File read - File write - Acting weird in a binary file

I created a function that could read and write to a binary file, bool CNeuralNetwork::Bin( double &Arr1[], string flag) { int handle_w= 0 , handle_r, int_flag = 10 ; if (flag == "read" ) int_flag = 0 ; else if (flag == "write" ) int_flag= 1 ; switch (int_flag) { case 0

my computer turned off unexpectedly, I lost all the code in MQ5 file I was currently working with

I face this issue every once in a while, due to faulty electricity and some strange power problems in my pc the computer turns off after power up I found out that all the code on the mq5 file is completely gone Once I thought this was HDD errors which had troubles but now I have more reliable

Tick size vs Point(), can be a little tricky in Multicurrency EA

from my observations tick size SymbolInfoDouble (symbol, SYMBOL_TRADE_TICK_SIZE ); is the same as Point() for a specific symbol,100% though I'm not sure why they are being called and defined as different things on the docs, but the point I'm trying to make is that using Point() to calculate

someone help, to calculate the amount of money on certain stoploss or take profit(position size calculator)

anybody who knows the mechanism or the maths involved in the background that help the MT5 platform be able to indentify the amount that is going to be lost on a certain stoploss the other way to define this is how to know the amount of money that is going to be lost on a certain stoploss Let me be

I need help in constructing Fibonacci retracement using formula

Hello everyone, I'm trying to construct Fibonacci retracement using the formulas I learned on the internet, This is my code double FibonacciFunction( double High, double Low, double Level) { datetime OpenTimeHigh = iTime ( Symbol (),RSItf, iHighest ( Symbol (),RSItf, MODE_CLOSE ,Candles, 1 ));