Use Common Classes to Write MQL4 and MQL5 Experts
HTML-код
- Опубликовано: 1 окт 2024
- When I make videos about writing experts or indicators I usually make them for both MQL4 and MQL5. This naturally leads to some code that has to be conditional due to the differences. The conditional code that bothers me most is the difference in the way technical indicators are handled and I think dealing with the difference makes the videos more complicated.
I decided to create a toolbox, starting with the technical indicators, that would allow me to mostly write indicators and experts without worrying about the 4/5 differences.
This video introduces a base class to handle the inbuilt technical indicators and 2 child classes, MA and MACD.
I will be using all of these in the next video.
Next week: A complete expert for a classic MACD strategy
For other videos in this series see:
• Metatrader Common Toolbox
Downloading the code
The code shown in the video is available to our premium discord members. Premium membership is a monthly subscription. To join our discord server and download this and other code
orchardforex.c...
#metatrader #mql5 #mql4
Key concepts:
classes
inheritance
compiler directives #ifdef
technical indicators
Free downloads for Metatrader 4 and 5
MT4: www.orchardfor...
MT5: www.orchardfor...
Follow our regular market updates:
Web: www.orchardfor...
Twitter: / orchardforex
Facebook: / orchardforex-327549444...
Telegram: t.me/orchardforex