Forum

MT5 OrdersTotals() for active pending orders does't works in backtest strategy

Hello, i have a problem with pendings orders in backtest, this is my code int OrdiniApertiPending() { ulong ticket; int Magic; int Totale= 0 ; string type; int iOrders= OrdersTotal (), i; for (i=iOrders- 1 ; i>= 0 ; i--) { ticket= OrderGetTicket (i); if

Screenshot problem

Hi all, I have a problem when i make a screenshot in mt5 from ea, into screenshot don't appear label,label BMP. How can i do to fix this? Thanks

C# exported function Problem

Hi all, i create this simple function in c#: [DllExport("addminutes", CallingConvention = CallingConvention.StdCall)] public static string addminutes(int YY, int MM, int DD, int HH,int Mm, int Ss) { DateTime date = new DateTime(YY, MM, DD, HH, Mm, Ss); TimeSpan