How about Enumerations ?
enum gv_type { gvt_buy=0,//Buy gvt_sell=1,//Sell gvt_buy_stop=2,//Buy Stop gvt_sell_stop=3,//Sell Stop gvt_buy_limit=4,//Buy Limit gvt_sell_limit=5,//Sell Limit gvt_deposit=6,//Deposit gvt_withdrawal=7//Withdrawal }; struct GV_PAIR { string Symbol; gv_type Type; double Lot; datetime OpenTime; double StopLoss; double TakeProfit; };
Hi,
Read the following https://www.mql5.com/en/forum/168741
It says that i cant have a nested struct. I wast trying something like the following.
Intending to use
The motive is to work easier with Global Variables. I do see the GlobalVariableXXXX() functions... but I am trying to understand if there are best practices / libraries for working with Global Variables.
Global Variables appears to be a method to have inter EA communication within same account. (Please enlighten if otherwise).
Any guidance?