Structure have objects and cannot be copied
问题 I'm trying to start with my first MQL4 expert advisor, I've created a struct to handle my orders: struct Order { int pair; int command; double quantity; double entry; double stopLoss; double profit; int slippage; string comment; int magicNumber; datetime expire; }; but it seems I can't do this: Order a; Order b=a; the compiler hangs saying: '=' - structure have objects and cannot be copied How can I assign a struct ? 回答1: As MQL4 documentation says: Structures that do not contain strings or