Code a simple RSI EA in mql5 | MT5 Programming
trustfultrading trustfultrading
9.28K subscribers
29,068 views
0

 Published On Jan 8, 2023

MT5 programming course: https://trustfultrading.com/education/
MasterEA: https://www.mql5.com/en/market/produc...
SpreadRecorder: https://www.mql5.com/en/market/produc...
DataEditor: https://www.mql5.com/de/market/produc...

Today I will show you how to code a simple RSI EA for Metatrader 5. If you are new to mql5, just follow my steps and we will create a fully working RSI Expert Advisor.

As an algo trader I develop and trade strategies with metatrader 5.
Automated trading makes it possible to be consistently profitable in the forex market. With my own trading system, programmed in mql5, various strategies can be automated in metatrader. If you have any questions about algo trading, metatrader or programming trading systems (Expert Advisor or EA), just write a comment or visit my website. You can also join my discord server or write me on telegram.

►Broker
*Recommended broker: https://www.darwinex.com/register?ac=...
*These links are affiliate links . If you use this link you can support the channel because I will receive a commission form the company. You do not have any disadvantages.

►Contact
Website: https://trustfultrading.com/
Discord server:   / discord  
Telegram: https://t.me/trustfultrading

►Chapters
00:00 Intro
00:13 EA logic
01:10 Create new EA
02:04 Inputs
07:10 Global variables
08:43 Include CTrade class
09:50 Check user input
14:57 Set magicnumber
15:33 Create RSI handle
18:40 Release indicator handle
19:18 Get current tick
20:35 Get indicator values
25:20 Count open positions function
33:19 Normalize price function
35:53 Close positions function
41:20 Count open positions
42:00 Open buy position
49:50 Open sell position
51:58 Visual test
54:30 Backtests
55:43 Outro

►Risk instruction
Trading in derivative products such as futures, options, CFD's, forex and certificates contains significant risk. These products are not suitable for every investor. Investors could potentially lose all or more than the original investment. If anything, only money equal to personal risk capital should be used and can be lost without jeopardizing financial security or lifestyle. Partially or fully automated trading programs can be used to assist the trader only. Past performance is not an indication of future results. Our trading systems have been developed to the best of our knowledge and belief. Despite careful programming, errors may still exist. We do not assume any liability for errors in the programming of the trading systems. You use the trading systems on your own responsibility. You are responsible if losses occur due to the trading systems.
Total risk notice: https://trustfultrading.com/risk-notice/

show more

Share/Embed