How to start with MQL5 - page 43

 

Forum on trading, automated trading systems and testing trading strategies

Moving Average

Sergey Golubev, 2024.07.14 18:04

Cascade Order Trading Strategy Based on EMA Crossovers for MetaTrader 5

Cascade Order Trading Strategy Based on EMA Crossovers for MetaTrader 5

In this article, we are demonstrating the Cascade Order Trading Strategy of Forex Trading Expert Advisor (EA) in MetaQuotes Language 5 (MQL5)  for MetaTrader 5. In this article of the MQL5 Expert Advisor using moving average crossovers as the basis for trading strategy, this MQL5 article automates trading choices on the MetaTrader 5 platform. This article incorporates essential features for position initialization, adjustment, and monitoring and makes use of the Trade.mqh library for effective order administration.


 

Introduction to MQL5 (Part 8): Beginner's Guide to Building Expert Advisors (II)

Having already studied the fundamentals of MQL5, you are now prepared to take on one of the most important tasks associated with algorithmic trading: creating a working Expert Advisor. As I indicated in the previous article, We will use a project-based approach for this series. This method helps in both comprehending abstract ideas and recognizing how they are used in practical situations. You will have a firm grasp of how to automate trading decisions based on candlestick patterns and predetermined conditions by the time you finish this guide.

In this article, we will focus on developing an EA that uses the candlestick analysis from the previous day to determine its trading direction. The EA will concentrate on selling for the day if the most recent daily candlestick is bearish and buying if it is bullish. The EA will also verify its trading signals by utilizing the close price of the day's first 1-hour candlestick. There won't be more than one open position at any given time, and the daily maximum of two trades will be enforced. It will function under stringent trade limits. Furthermore, its operation will be limited to the designated trading hours of Monday to Wednesday.
Introduction to MQL5 (Part 8): Beginner's Guide to Building Expert Advisors (II)
Introduction to MQL5 (Part 8): Beginner's Guide to Building Expert Advisors (II)
  • www.mql5.com
This article addresses common beginner questions from MQL5 forums and demonstrates practical solutions. Learn to perform essential tasks like buying and selling, obtaining candlestick prices, and managing automated trading aspects such as trade limits, trading periods, and profit/loss thresholds. Get step-by-step guidance to enhance your understanding and implementation of these concepts in MQL5.
 

Practicing the development of trading strategies 

A trading strategy is a fixed plan that is designed to achieve a profitable return by going long or short in markets. By combining various ideas, traders can develop their own strategies to meet their specific needs and style preferences.

The number of possible trading strategies is so large that even classifying them becomes a difficult task. However, there is a certain set of elements that most of trading strategies usually include.

An important step in creating a strategy is testing. Using the strategy tester, you can evaluate the features of a trading strategy, its advantages and disadvantages. If necessary, you make the necessary changes. In addition, the tester enables the selection of optimal strategy parameters that can improve trading results.
Strategy Testing - Algorithmic Trading, Trading Robots - MetaTrader 5 Help
  • www.metatrader5.com
The Strategy Tester allows you to test and optimize trading strategies ( Expert Advisors ) before using them for live trading. During testing, an...
 

Forum on trading, automated trading systems and testing trading strategies

Everything about RSI

Sergey Golubev, 2024.07.31 16:35

Creating a Dynamic Multi-Symbol, Multi-Period Relative Strength Indicator (RSI) Indicator Dashboard in MQL5 

Creating a Dynamic Multi-Symbol, Multi-Period Relative Strength Indicator (RSI) Indicator Dashboard in MQL5

In this article, we will guide you through the process of creating a dynamic multi-symbol, multi-period RSI (Relative Strength Index) indicator dashboard in MetaQuotes Language 5 (MQL5) for MetaTrader 5 (MT5). This comprehensive guide will explore the definition, functionality, and practical applications of a custom RSI dashboard, as well as the steps required to develop it using MetaQuotes Language 5 (MQL5).