MQL5 Algo Trading
392K subscribers
2.58K photos
2.59K 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
Analysing the intricacies involved in the coding language of Python is a task of no small import. This task aids in developing underlying knowledge of data structures, making it imperative amongst skilled developers. With a steady proficiency in this high-level language, a programmer can utilize its potential for building simple to complex functions, improving productivity multifold.

Furthermore, understand the implementation of Pythonโ€™s Object-Oriented Programming (OOP) aspects, to create clear and efficient code. Knowledge in advanced concepts like decorators and generators further broadens the dimension of one's programming potential.

Yet, it's not Python's semantics and syntax alone that's important. Furnish a deep understanding of how to debug and test Python applications to ensure the robustness of your code. These skills are vital for creating a scalable, maintainable, and ...

Read more...
๐Ÿ‘5๐Ÿ‘2โค1โšก1
The following post delineates the usage of trend indicators in Expert Advisors (EAs) and how to connect them, emphasizing indicators such as Adaptive Moving Average, Average Directional Movement Index, and Bollinger Bandsยฎ, among others. The process includes stages from initializing variables and creating an indicator handle to deinitializing and data retrieval. Each indicator is briefly described, together with their functions, methods of at initialization and deinitialization, data retrieval procedures, and methods of display on the dashboard. There is also instruction given on how to undertake the process of visualizing data on the panel and handling panel events. An understanding of these procedures can enhance the use of trend indicators in EAs while optimizing the benefits of custom programs for each indicator, concluding with a succinct code for connecting and using indicators ...

Read more...
๐Ÿ‘2๐Ÿ˜1
In a rapidly evolving field such as programming, keeping up with the latest trends and technologies is crucial. Current industry shifts indicate an increasing preference towards Python due to its simplicity, readability, and versatility. Interestingly, it's not only being utilized for web and software development, but is making strides in the realms of data analysis and machine learning as well.

Recent advancements in the field of AI have greatly benefited from Python, largely due to the availability of numerous libraries such as TensorFlow and PyTorch. These libraries facilitate the creation of solutions in neural networks, natural language processing and more.

Even in the field of data analysis, Python's role is substantial. Libraries such as Pandas, NumPy, and SciPy make it possible to manipulate and analyze largescale data with relative ease.

Make it a point to update your tool...

Read more...
โœ3๐Ÿ‘3๐Ÿ‘3๐Ÿ‘Œ1
The evolutionary computation, a niche in machine learning and artificial intelligence, has shown significant promise in solving optimization problems and tuning AI algorithms. Algorithms such as Mind Evolutionary Computation (MEC), proposed in 1998 by Chengai, model human behavior within societal dynamics. In this setup, each individual functions as an intelligent agent influenced by the larger group's action.

Here, achieving a higher societal position necessitates learning from group members. Additionally, all individuals must strive for the same principle for their group to outdo others. A facet worth noting in the MEC algorithm lies in the exchange of information between individuals within and between groups.

Moving on to the operation of this algorithm, it is treated as multi-population, consisting of leading and lagging groups. It uses group initialization, local competition, ...

Read more...
๐Ÿ‘3๐Ÿ‘2๐Ÿ‘Œ1
A valuable tool for every IT specialist and programmer has been developed - an indicator designed to calculate 14 types of moving averages based on close price. The calculations are predominantly founded on pine script libraries, stemming from vast in-depth research and programming expertise.

The 14 types software developers and IT professionals will appreciate include: SMA (Simple Moving Average), EMA (Exponential Moving Average), WMA (Weighted Moving Average), and VWMA (Volume Weighted Moving Average). Further types comprise RMA (Running Moving Average), DEMA (Double Exponential Moving Average), TEMA (Triple Exponential Moving Average), and ZLEMA (Zero Lag Exponential Moving Average).

The compilation also accommodates HMA (Hull Moving Average), ALMA (Arnaud Legoux Moving Average), and LSMA (Least Squares Moving Average). Alongside these, SWMA (Sine Weighted Moving Average), SMMA...

Read more...
๐Ÿ‘4โค3๐Ÿ‘2
Delve into the concept of volatility within the financial market alongside an exploration of how it interacts with the Keltner Channel technical indicator. This article presents vital test results from various trading systems, shedding light on how volatility can be capitalized upon in diverse market conditions. The article prompts a comprehensive exploration of the Keltner Channel indicator and how it can be customized and integrated within trading systems. Furthermore, it challenges readers to optimize their systems to align with trading preferences and goals.

The volatility definition, Keltner Channel definition, trading strategies centered around the Keltner Channel, the creation and testing of related trading systems, and conclusion make up the main themes of this enlightening piece. After a thorough read, traders should be equipped with the knowledge to build and test their Kel...

Read more...
In the context of fractal analysis, understanding the Generalized Hurst Exponent (GHE) and its application to financial markets plays a pivotal role. This article demonstrates an alternative approach to the Hurst Exponent, highlighting a practical use case in identifying Forex symbols suited for mean reversion trading.

The GHE's underpinnings, its comparison to the original Hurst Exponent, and the introduction of the Variance Ratio Test (VRT), used to confirm GHE analysis results, form the basis of the discussion. With the groundwork laid, the implementation of the GHE, in identifying potential Forex symbols for mean reversion trading, is examined.

This exploration of GHE leads to a discussion on the Hurst Exponent's role in measuring the scaling properties of time series. The GHE's application expands on this, analyzing how variation between consecutive points in a time series is ...

Read more...
๐Ÿ‘1
In the process of crafting high-frequency trading (HFT) algorithms, adopting the Candlestick Fitness concept can serve as a foundation for greater accuracy. This strategy is premised on the application of population optimization algorithms, wherein 'unfit' candlesticks are systematically concealed.

Unfit in this regard pertains to candlesticks whose body range - open-close for bears or close-open for bulls - is not 75% of the upper or lower wick range. The figure of 75% serves as the default parameter, however, it can be modified according to user preferences.

By selecting to exclude unfit candles, modelers can streamline the process of data analysis, facilitating improved grouping and shuffling of data. In turn, this can assist in developing more effective and efficient HFT algorithms.

Keep in mind the value of marginal gains - the aggregated benefit of making numerous small, ma...

Read more...
๐Ÿ‘2โœ1
The perceptron, a simple neural network developed by Frank Rosenblatt in 1957, has found wide application in various fields, including Forex market forecasting. It functions on the supervised learning principle, adjusting its neuronal weights to match historical data and making future predictions. The advantages of the perceptron approach include its adaptability to market changes, ability to handle large amounts of input data, and potential for more accurate forecast. However, it's important to be mindful of challenges like potential susceptibility to data errors, requirement of abundant historical data for training, and the possibility of overfitting. Regularization techniques can be applied to prevent overfitting.

Choosing the correct perceptron parameters plays a pivotal role. These parameters include the number of hidden layers, neurons per layer, the activation function, learn...

Read more...
๐Ÿ‘5๐Ÿ‘1
Developers and traders in the IT community, it's interesting to note that there's functionality available for an indicator that calculates gain or loss through two different modalities. This can be achieved by either analyzing the plain difference between the Open and Close of a candlestick, or the difference between the current Close and previous Close.

What's particularly convenient is the feature of setting minimum change limits. This can be done in both pip and percentage modes, which allows versatile means to measure market conditions. Furthermore, it's notable that there's also an option to modify font color of the output numbers to cater to usersโ€™ visibility preferences.

This indicator has been developed for the MT4 platform and presents an advantage of displaying the gains and losses for all candles surpassing a user-defined threshold. Calculations are facilitated in both p...

Read more...
๐Ÿ‘1
Delve into an alternative way of analyzing data from price quotes charts. Although most of us are familiar with analyzing data in the time domain, pushing this information into the frequency domain can spotlight intriguing traits of the series which are otherwise unnoticeable. The primary tool for this analysis is the Discrete Fourier Transform (DFT).

Applying DFT can break any complex series into common sine and cosine wave forms, simplifying the process by reducing multifaceted data into uncomplicated components. Bottom line, DFT can effectively translate time series into unique frequency domain representations. Moreover, the analysis of the power spectra of time series is an integral part of signal processing.

The power spectrum provides insight into the distribution of energy across diverse frequencies within the time series. For DFT analysis to yield accurate numbers, certain ...

Read more...
๐Ÿ‘5๐Ÿ‘1
The Voitto Tappio indicator effectively showcases the gains and losses of all candlesticks surpassing a specified threshold. Calculation of these gains/losses is executed in two aspects: points and percentage. What segregates this indicator from others is its dual calculation mode. It evaluates gain/loss either through a simple differential between candlestick Close and Open or through the contrast between the current Close and preceding Close.

In order to cater to specific analytical requirements, this indicator allows setting minimum change limits. These limits can be delineated for pips and percentage, giving user a greater control over the data analysis. Furthermore, there are options to modify modes and the font color of the resulting numbers.

To provide insight into the software's capability, a sample application can be observed on the XAAUSD Weekly chart. The indicator is p...

Read more...
โค7๐Ÿ‘2๐Ÿ”ฅ1๐Ÿ‘1
The world of algorithmic trading is fascinating, layered with complex mathematical structures that govern the operations of elements within data sets. One concept, the Monoid, forms a vital foundation in mathematics and computer science. Here, an object (a Monoid) comprises a set, a binary operation, and an identity element. This structured approach is pivotal for operations on sets of elements. The validity of the Monoid structure must be proven by satisfying essential axioms. Uncovering potential pitfalls can be achieved via thorough understanding of applications such as word frequency classification, sentiment analysis, image classification, customer segmentation, and time series classification. Remember, the semantics assigned must align with desired interpretations to support effective data analysis and decision-making. Data preprocessing and homogeneity are also critical. The ca...

Read more...
๐Ÿ‘8โค2๐Ÿ‘1
Introducing the Titik Impas Breakeven script, a user-friendly tool designed to automate the adjustments of the stop-loss to the breakeven point of one or multiple positions as determined by given parameters. Suitable for both MT4 and MT5 platforms, this script provides a practical solution for managing numerous trading positions simultaneously.

The concept of the Breakeven Point, or Titik Impas, signifies the price level where a trade's profit equals zero. By utilizing this technique, traders can ensure positions are set to breakeven hence aligning the stop-loss with the position's opening price. This method caters to the need to accumulate profits while safeguarding against the trade reverting to negative.

While adjusting the stop-loss of a single trade to correspond with its open price can be simple, managing multiple positions individually can pose a challenge due to its labori...

Read more...
๐Ÿ‘5๐Ÿ‘1
For all who meticulously monitor market trends and anomalies, this indicator, premised on the esteemed pine script library "TAExt by TheBacktestGuy", allows for the accurate computation of 4 unique types of ATR Weighted moving averages.

Further honing the precision of market analysis, encompassed types include ATRWSMA, ATRWEMA, ATRWRMA, and ATRWWMA. Each is designed to aid in rendering an in-depth understanding of market dynamics. Glean more insights and trends with this robust yet refined tool, ensuring no critical market activity slips past unnoticed. Let this innovative indicator aid in discerning the market's constantly oscillating movements. Start correlating market milestones with their respective ATR weighted moving averages today.

Achieve precision, and let the market unveil its secrets through our specialized, analytical tools.

Read more...
๐Ÿ‘7โค1โœ1๐Ÿ‘1
Discover how the Titik Impas Breakeven script can optimize trade management on MT4 and MT5 platforms. This robust tool, designed for simplicity and efficiency, allows traders to set multiple positions to a breakeven point in just a few clicks.

In financial trading, the term 'Breakeven Point' - or 'Titik Impas' - refers to the price level where profits from a particular trade are nullified. By setting this parameter, traders can ensure a position's stop-loss aligns with the opening price, thus allowing accumulated profits to persist while maintaining the security of the trade.

While adjusting the stop-loss of a single trade to its open price may seem straightforward, handling this process individually for an array of positions is considerably more arduous. The solution? The Titik Impas Breakeven script.

This script assists in automating this task on the MT4/MT5 platforms, saving ...

Read more...
๐Ÿ‘5โœ2๐Ÿ‘2โค1
In an alternative approach to reinforcement learning proposed by the Google team, the Decision Transformer method projects the learning problem into a model conditioned by a reward. Unlike the traditional approach, here sequential decision-making is viewed within the scope of language modeling. Just as language models structure sentences, so does the Decision Transformer build the agentโ€™s actions based on previously performed actions. This method leans on GPT (Generative Pre-trained Transformer) to enable autoregressive learning and generation. Furthermore, trained models can be tested by quantifying the reward desired and information regarding the initial environmental state.

Nevertheless, note that there could be possible downfalls. For instance, if the achieved level of total reward is surpassed, the Return-To-Go may receive a negative value, resulting in losses. In a bid to avoid...

Read more...
๐Ÿ‘2๐Ÿ”ฅ1
Attention to all professional currency traders out there! It's time to take a efficient step towards boosting the trading productivity thanks to the latest script file that's been developed.

This innovative script file has the capability to help traders swiftly open multiple sell orders, thereby enabling them to perform a large number of transactions through a single command. This can potentially prove beneficial for those who strive to leverage market conditions in an orderly and speedy manner.

Let's highlight an interesting point about this tool. It has preset values for take profit and stop loss in 5-digit broker format. However, for traders working with a 4-digit broker, these default values will need to be set to TP=40 and SL=20.

Have a specific number of trades in mind? Not an issue because the script allows users to determine the number of trades to execute with the feature...

Read more...
๐Ÿ‘3๐Ÿ”ฅ3โค1
Insights into refining the training performance of Expert Advisors: Emphasizing the significance of signals transmitted to neural networks for optimal analysis and future forecasting is fundamental. Improvements in this area could significantly impact system performance. Normalizing indicator data holds particular interest. Let's break it down.

Dealing with inputs normalization: A vital step in nurturing neural networks stems from data normalization. This process helps stabilize the inputs, speeding up training convergence. Knowing the 'why' and 'how' behind normalization is a game-changer.

Understanding input normalization: Transformed input data has specific value range, brought about by either z-normalization or min-max normalization. The former uses mean and standard deviation for centering and scaling, while the latter uses minimum and maximum values to scale data accordingly....

Read more...
๐Ÿ‘5๐Ÿ‘1๐Ÿ†1
In an effort to make multi-trading less complex, a script has been devised that aids traders in promptly opening multiple buy orders. It's aimed at executing high volumes of trades by single command input. As per most brokers' standards, the default specification of take profit (TP) and stop loss (SL) values are set in a 5-digit format. However, for those employing a 4-digit broker, the default expected should be TP=40 and SL=20.

The parameter Num_of_Buy dictates the desired number of trades the trader wishes to launch instantaneously. This script effectively mitigates time constraints and adds value for traders keen on optimal utilization of fluctuating market conditions. It simplifies the engagement with multiple buy orders and provides an opportunity to concentrate on varied facets of their trading strategies.

In essence, this innovative utility can lead to elevating the overall ...

Read more...
๐Ÿ‘8โค1๐Ÿ‘1