MQL5 Reference
http://www.mql5.com/en/docs
まず列挙型です。
Enumerations
http://www.mql5.com/en/docs/basis/types/integer/enumeration
使い方はC++と同じです。問題は、
•Unlike C++, the size of the internal representation of the enumerated type in MQL5 is always equal to 4 bytes. That is, sizeof (months) returns the value 4.
•Unlike C++, an anonymous enumeration can't be declared in MQL5. That is, a unique name must be always specified after the enum keyword.
サイズが4バイトなのはふーんって感じなんですが、enumの後に列挙型名がいつも必要となってます。anonymous enumeration(匿名列挙型?)は本当に使えないのかどうかだけ確認です。
enum { // enum 列挙型名{...}
USA = 1,
EURO,
GBR,
JPN,
AUS,
CHE,
CAN
};
printf("JPN = %d", JPN);
結果 JPN = 4
エラーもなく普通に使えました。なんか違うのかな?
よく分かりませんが、使えないというものは使わない方がいいですね。

