Home System Trading Post

Building an Expert Advisor with MQL5: Morning/Evening Stars and RSI Trading Signals

Attachments
324.zip (6.47 KB, Download 0 times)

The MQL5 Wizard is a fantastic tool for creating ready-to-use Expert Advisors (EAs) based on the standard library classes that come with the MetaTrader 5 client terminal. If you're looking to put your trading ideas to the test quickly, all you need to do is create your own custom trading signals class. For more details, you can check out the article on creating a module of trading signals.

The fundamental concept here is simple: derive your trading signals class from CExpertSignal. Then, you'll want to override the LongCondition() and ShortCondition() virtual methods with your own implementations.

For those who are curious about trading strategies, there's a book titled "Strategies of Best Traders" (in Russian), which dives into various strategies, but here we will focus on reversal candlestick patterns confirmed by indicators like the Stochastic, CCI, MFI, and RSI oscillators.

The best practice is to create a separate class derived from CExpertSignal to check for the formation of candlestick patterns. To confirm the trading signals generated by these patterns, you can write a class derived from CCandlePattern and include the necessary features, such as confirmation by oscillators.

Let’s specifically look at the signals based on the "Morning Star" and "Evening Star" reversal candlestick patterns, validated by the RSI indicator. The module for these trading signals is built on the CCandlePattern class, which serves as a straightforward example for generating signals using candlestick patterns.


1. Understanding the

Related Posts

Comments (0)

All unauthorized reproduction, transmission, distribution, or scraping of information, content, and UI elements on this site is strictly prohibited.

DailyForexMap © 2011-2026. All Rights reserved.