Awesome Donchian Channel trading bot in mql5! | MT5 programming
trustfultrading trustfultrading
9.28K subscribers
9,025 views
0

 Published On Feb 2, 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 Donchian channel trading bot for Metatrader 5. If you are new to mql5, just follow my steps and we will create a fully working Donchian channel Expert Advisor. In this part we will create the EA using our Donchian Channel custom indicator from the previous video.

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 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:28 Create new EA
01:22 Defines
02:02 Inputs
07:15 Global variables
08:23 Check user inputs
11:28 iCustom function
14:20 OnDeinit
15:43 IsNewBar function
17:04 OnTick function
20:10 Check indicator values
21:45 Signal conditions
23:38 Stop loss and take profit calculation
28:09 Cleanup
29:41 Visual test
34:03 First backtest
34:19 Adding a size filter
37:25 Optimization
38:39 Second backtest
38:50 Final backtest
39:34 Out of sample test
40:38 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