MQL5 Algo Trading
390K subscribers
2.58K photos
2.58K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Understanding key mathematical concepts is critical for successful programming. One such imperative principle is the "Harmonic Mean". This numerical average is computed by the division of the total number of observations with the reciprocal of each respective figure in the series. It's noteworthy to state that the harmonic mean in itself is the reciprocal of the arithmetic mean of the reciprocals. It might sound complex, but once comprehended, it's a seamless tool in data structuring and manipulation.

Every budding and seasoned software developer should accustom themselves with this statistical tool as it's prevalent in algorithm efficiency evaluation and optimizing data query performances. Set a deliberate timer to study this fascinating concept to boost your software development expertise.

Read more...
πŸ‘7❀3πŸ‘2
Over the years, neural networks, particularly those using 'supervised learning' methods like backpropagation neural networks (BPNN), have become essential tools for traders. Various modifications of such algorithms form the base for deep, recurrent, and convolutional neural networks. Let's take a moment to appreciate the recent introduction of new API features on the MQL5 platform designed for matrix and vector operations. These new functions permit batch computations in neural networks, where data processing happens in blocks rather than element by element. The use of matrix operations noticeably streamlines program instructions, converting complex operations into single-line expressions.

Delving deeper, it's worth noting that neural networks are typically comprised of simple computing elementsβ€”neuronsβ€”grouped into layers and interconnected through synapses. The current state of a n...

Read more...
πŸ‘4
The application of a code block involves proficient use of a Stop Loss or its absence. The key facilitator is "Trade.mqh", a requisite for the CTrade class access. This class manages the interactions with positions and orders. Creating adjustable trailing distance invokes an input parameter, although not mandatory, it enhances convenience.

CTrade class needs an instance definition, with a non-specific naming convenience, and should be ideally set after the OnInt event handler. Validation for the presence of a running position initiates with an 'if' statement, further invoking the 'Check_TrailingStop()' function, applicable to each tick. This ensures an accurate and smooth trailing system.

Priority of the statement is highest at the commencement of the 'OnTick' event handler, ensuring optimal functionality. 'Check_TrailingStop()' is a user-centric function name that can be altered ...

Read more...
πŸ‘3❀1πŸ‘1
The code block provided facilitates a dynamic detection system for a new bar or candle upon receipt. Functioning on a simple principle, its initial action stores the time of the preceding bar or candle, followed by an addition of sixty seconds to that time. This results in a closing time value for the current bar or candle. Once the current time equals this newly calculated closing time, it signifies receipt of a new symbol or closure of the existing one.

An integral part of this code is the flag - a Boolean variable dubbed 'NewBarReceived'. This smartly prevents multiple calls to this block of code, ensuring its execution is limited to once per bar or candle. Comment(); alongside playsound("ok.wav"); act as tools to verify the code block's accuracy. These can be removed based on user preference.

A reset of the flag to a false state occurs once current Time surpasses the closing tim...

Read more...
πŸ‘4πŸ‘2❀1
Logarithmic Mean is a mathematical concept used for describing two non-negative values. In this equation, the disparity between two numbers is divided by the log of their quotient. This computation has valuable applications, notably in the field of engineering. It plays a pivotal role in resolving complex problems related to heat and mass transfer. Such a functional tool could be implemented as is, or could be refined further per the requirement of the task at hand. Remember, mathematics often provides the basis to navigate through intricate engineering conundrums and it's essential in various tech-oriented tasks and projects as well.

Read more...
πŸ‘2πŸ‘2❀1
Recently, the development team rolled out version 3 updates of the script. A new modification in this version allows the system to return a string that indicates whether the pip difference has gone up, stayed the same, or declined. One key feature of this version is that it now prints the price at the start and the end of each calculation.

Furthermore, it accurately calculates and displays the pip difference. The pip difference is computed as the difference between the prices during the commencement and the conclusion of the calculation. It is then converted into pips for comprehensive understanding.

One of the major enhancements added in this update is the direction of the pip difference. It can now indicate and print out the direction of the pip, providing more information for data analysis.

Version 3 also introduces a Point to Pip conversion factor. This function is added for s...

Read more...
πŸ‘3πŸ‘3
Reflecting the gravitational behavior of universal bodies, the Gravitational Search Algorithm (GSA) has been developed as a powerful tool to tackle optimization problems. Mirroring principles of Newton's law of gravitation, the algorithm uses an innovative approach dealing with particles as significant objects, creating a bridge between global physics and computational mathematics.

The algorithm highlights a massive natural force: gravity. While it is the weakest among all four fundamental forces, gravity is the force visible in most day-to-day events, like walking on Earth or the orbiting of planets around the Sun. Newton extrapolated the gravitational force's behavior into universal laws of motion, marking a cornerstone in classical mechanics. His laws have immense implications in the gravitational search algorithm.

The GSA, introduced in this in-depth article, operates on the ...

Read more...
❀2πŸ‘2πŸ‘1
Presenting a straightforward script designed to install a timing mechanism on the main graphics interface. This utility count downs to the commencement of the next data bar, delivering invaluable real-time trend details to the user. Efficiently utilizing time is critical in data visualization tasks. By integrating this tool with existing setups, users will gain the unique advantage of proactively monitoring activity. The primary benefit lies in the anticipation of subsequent trends, granting necessary preparations for the following phase of data movement. Guarantee the effective supervision of data flow with this uncomplicated, yet robust scripting solution.

Read more...
πŸ‘9πŸ‘4❀3
Latest article provides a deep understanding of OpenCL usage through DLL with MQL5. Detailed breakdown guides the audience through successful standalone test and abstraction process for OpenCL into DLL. Topics covered include the proper passing of string from DLL to MQL5 program, building DLL usable by MQL5, and utilizing key APIs offered by OpenCL C++ API.

The work moves into separating the existing codes into a simple DLL that can interact with MQL5, giving a strong idea of the project file structure. Functions like listall and compute are elaborately broken down and their functionalities are thoroughly explained. New concepts such as string conversions, DLOG utility, and handling errors are introduced.

Readers will understand how to manage log buffer, get information about all OpenCL platforms and devices, construct cl::Program::Sources and other OpenCL tasks. Also presented is a...

Read more...
πŸ‘6πŸ”₯2πŸ‘2
In recent technical updates, it has been observed that the execution function for the ONNX model requires explicit definition of input and output dimensions. Such dimensions can be set using the OnnxSetInputShape and OnnxSetOutputShape functions.

It's noteworthy to mention that not all models come with fixed data sizes for input and output. In the event of encountering such models, the script will return -1 as an output.

Further in the user interface experience, the FileSelectDialog function can be employed to choose a model from the MQL5\Files directory. This elucidates how the script handles such actions.

Lastly, a crucial update reveals changes made to the OnnxTypeInfo structure in build 3700 which prompts modifications in the source code of the script. This change facilitates improved performance in handling variable data sizes.

Stay informed about these key changes to stream...

Read more...
❀4πŸ†4πŸ‘3πŸ‘1
Andrews Pitchfork, featured in modern chart analysis software, offers a simplistic yet creative analysis methodology. However, potential users often question the necessity of a variety of pitchforks and how they aid trading. Consultation of Alan Andrew's original course reveals that supply and demand will maintain dynamic equilibrium, causing resources prices to fluctuate around a specific average line. This article attempts to decode the ideas behind the Andrews Pitchfork in an accessible manner.

The methodology begins by attempting to predict market behaviour. Notably in the years prior to computer and neural networks, market predictions were made, leading to the hypothesis that current analytical methods can also achieve forecast accuracy. The baseline belief centres were drawn on physics, more specifically, Newton's third law, which was theorized to be applicable to financial flo...

Read more...
⚑4πŸ‘Œ2πŸ‘1
Staying abreast of the latest technology trends is crucial in this fast-paced world. By mastering new technologies, developers enhance their knowledge, capacity, and competitiveness. Grand technology breakthroughs have dramatically transformed the world, opening new opportunities for businesses and individuals alike. Adopting the emerging technologies grants an edge in today's age.

Artificial Intelligence (AI) demonstrates its capabilities with self-driving cars and personal assistants. This powerful technology is revolutionizing many industries including healthcare, transport, and even space exploration. By its nature, AI has a significant impact on developers, who must keep themselves updated and proficient.

Besides AI, Blockchain technology is another innovation worth noting. Initially developed for the cryptocurrency, Bitcoin, the blockchain has found applications in various oth...

Read more...
πŸ‘4πŸ‘2
‼️Use MetaTrader VPS to ensure stable and predictable performance of your strategies. Starting from 10 USD per month.

Why our hosting is better:

⚑️ Ultra-low latency to trading servers
🌐 Reliable access points worldwide
πŸ’ͺ High-performance servers without overselling
☁️ Special lightweight versions of the trading platform
πŸ“Ά Data transmission security
πŸ’― % compatibility with MetaTrader

Your trades will be executed around the clock, without interruptions or delays, ensuring you don't miss out on a single pip of profit!πŸ’₯

Learn more...
Please open Telegram to view this post
VIEW IN TELEGRAM
❀5πŸ”₯5πŸ‘2πŸ‘Œ2πŸ‘1
Focused on the application of quantitative analysis in financial markets, this post delves into the historical usage, benefits and pitfalls of this popular analytical tool. Initially used as a rudimentary version of machine learning and statistical learning, it entered the scene when computers were fledgling devices occupying entire rooms and operating on punched cards. The aim was to utilize them for processing large datasets and statistics. The methods used were straightforward, chiefly linear computations to establish correlations within the data.

Quantitative analysis initially found its application in pairs trading or basket trading. Edward O. Thorp was a pioneering figure in this field. He was instrumental in analyzing the spread between a stock and its warrant to evaluate its overpricing or underpricing relative to its warrant. He set a precedent by employing computer-based q...

Read more...
πŸ‘4πŸ‘1
Unveiling an exclusive file that incorporates a range of moving averages. It comes with two distinct moving average groups - a sextet in PERIOD_W1 and another consisting of six in PERIOD_CURRENT. Notably, a moving average grouping signifies several period MA lines clustered in a double-dimensional array.

A standout feature is the MA_Direction function, adept at indicating the concurrent direction of the entire MA group within adjustable bars - an impressive performer indeed. Through object-oriented programming, integration of diverse strategies is simplified, with the allotment of a dedicated object to each strategy.

Comprehensive order management remains a fundamental entity, with order-specific comments easing the integration of varying strategies. A keen watch on inherent signals should not be compromised. The product thrives on its strategic aggregations and effective function...

Read more...
πŸ‘7πŸ‘1
Analyzing the Simulated Annealing (SA) algorithm, that finds the global optimum in complex problems, based on the techniques in metallurgy involving heating and slow cooling of materials. It helps avoid local optima by the usage of a 'cooling' function, reducing the probability of routing towards a worse decision.

The SA optimization algorithm applies randomness in changing the state of the solution and selecting the next state, enabling exploration of different regions of the search space. It allows room for accepting worse decisions with certain probabilities and gradually reduces this likelihood over time.

Metahueristics use the SA optimization algorithm as one of their methods for solving complex optimization problems. The algorithm belongs to a group of algorithms known as "stochastic optimization methods". Offshoots of the SA include Adaptive Simulated Annealing (ASA) and Quan...

Read more...
❀5πŸ‘5
The counter attack candlestick pattern, prominent in technical analysis, represents an important element to comprehend for those involved in market trading. Characterized by long bodies with opposing colors, this pattern signals a potential market reversal, indicating the conclusion of a trend.

Primarily observed in downward or upward trends, the counter attack candlestick reveals earlier passionate trading sentiments impeded by new, equally strong opposing perspectives. Making this pattern significantly valuable in identifying potential opportunities for traders to make an entry or an exit.

Awareness of such patterns equips market traders with an understanding of ongoing market sentiments which, when used effectively, could hold powerful implications on a trader's strategies. Understanding and leveraging such insights could prove crucial in navigating the ever-volatile market space...

Read more...
❀8πŸ‘3
Understanding the concept of Dominant Candle in the trading domain is integral for technicians and traders alike. Presented as a two-candlestick set, the unique characteristic lies in the intersection of their wicks within the body area. The relative positions of the candles can manifest in a 'gapped up', 'gapped down' or 'equal' state. It's part of a toolkit to optimize trading strategies and make nuanced decisions based on market trends and investor sentiment. Clearly, the complexity of the Dominant Candle lies not just in its illustration, but also in its interpretation and application. Through continuous research and practice, proficient reading of such nuanced signals is achievable.

Read more...
πŸ‘6πŸ”₯2😁2❀1
πŸ“ˆSubscribe to signals from successful traders and copy their deals on your accounts. Thousands of different options are already available to you.

‼️Before subscribing, read the step-by-step guide 'Tips for Selecting a Trading Signal to Subscribe', which will help you find a signal that fits your criteria of profitability, risk, trading activity, compatibility with different account types and financial instruments.🧐

Read...
πŸ‘3❀2πŸ‘2
The "CloseBasketPairs.mq4" script authored by " persinaru@gmail.com " and copyrighted by MetaQuotes Software Corp. in 2024 has been released in the version 1.01. Originally designed for application in foreign exchange markets, this script demonstrates an elegant method for managing investments across a variety of currency pairs.

The functional backbone of "CloseBasketPairs.mq4" lies in its risk management system. This script ensures investors' funds are protected by closing positions for a basket of currency pairs when pre-set profit or loss thresholds are reached. Each currency pair and its respective order type are meticulously defined in the script, which then conducts a systematic loop through all open positions. If a position correlates to a defined basket pair and meets the established criteria - either profit exceeding the defined threshold or loss falling below it - the scrip...

Read more...
πŸ‘5❀1πŸ‘1