Path separator in #include: backslash or forward slash?
The first is not correct. A backslash must be properly escaped. Character Constants - Integer Types - Data Types - Language Basics - MQL5 Reference
Is this "more" correct?:
#include <Trade\Trade.mqh> #include <Trade\OrderInfo.mqh> #include <Trade\DealInfo.mqh> #include <Trade\HistoryOrderInfo.mqh>
(It works).
The first is not correct. A backslash must be properly escaped. Character Constants - Integer Types - Data Types - Language Basics - MQL5 Reference
This is interesting, thank you. Although the following code works (I checked), it doesn't look very cool.
#include "src\new.mqh"
Backslash:
Forward slash:
Both options compile. Are they equally correct, or is one of them "more" correct?
I would like to use forward slash (probably because it is used in Linux). However, I want to make sure this won’t cause any issues, as I haven’t seen forward slashes used in the documentation.
- www.mql5.com

Backslash:
Forward slash:
Both options compile. Are they equally correct, or is one of them "more" correct?
I would like to use forward slash (probably because it is used in Linux). However, I want to make sure this won’t cause any issues, as I haven’t seen forward slashes used in the documentation.