Hello,
Is it possible to create a custom DLL function, which returns a class object, written in MQL5 ? For example I would like to be able to use Unmanaged Exports method (as explained in this article http://www.mql5.com/en/articles/249) to create a C# method, that returns a new instance of the following object in mql5:
Do you think this is possible to do ? Also if someone already have such or similar method I will be more than happy to pay for sharing the source code.
Is it possible to create a custom DLL function, which returns a class object, written in MQL5 ? For example I would like to be able to use Unmanaged Exports method (as explained in this article http://www.mql5.com/en/articles/249) to create a C# method, that returns a new instance of the following object in mql5:
Inserted Code
class Order { public: int Ticket; int Type; string Symbol; double OpenPrice; int OpenTime; double Size; double Stoploss; double Takeprofit; int SignalID; public: Order(int ticket, int type, string symbol, double openPrice, int openTime, double size, double stoploss, double takeprofit, int signalID) { Ticket = ticket; Type = type; Symbol = symbol; OpenPrice = openPrice; OpenTime = openTime; Size = size; Stoploss = stoploss; Takeprofit = takeprofit; SignalID = signalID; }; };
Do you think this is possible to do ? Also if someone already have such or similar method I will be more than happy to pay for sharing the source code.