'ENUM_MARGIN_LOTS_MODE' - enumeration cannot have modifiers RSI_EA.mq5 16 12
AYMERIC75:
Hi,
In my EA I want to have an input which can be chosen from MARGIN_LOTS_ALL , MARGIN_LOTS_CALL or MARGIN_LOTS_STOPOUT
I have tried :
But I get:
Any idea ?
Ok I just found out...
enum ENUM_MARGIN_LOTS_MODE { MARGIN_LOTS_ALL, MARGIN_LOTS_CALL, MARGIN_LOTS_STOPOUT }; input ENUM_MARGIN_LOTS_MODE themode = MARGIN_LOTS_CALL;
Then use "themode" as a variable for the mode in your code
Hi,
In my EA I want to have an input which can be chosen from MARGIN_LOTS_ALL , MARGIN_LOTS_CALL or MARGIN_LOTS_STOPOUT
I have tried :
But I get:
Any idea ?