-
Notifications
You must be signed in to change notification settings - Fork 3
/
errors.json
802 lines (802 loc) · 16.6 KB
/
errors.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
[
{
"Code": 1,
"ID": "NoResult",
"Description": "No error returned, but the result is unknown"
},
{
"Code": 2,
"ID": "CommonError",
"Description": "Common error"
},
{
"Code": 3,
"ID": "InvalidTradeParameters",
"Description": "Invalid trade parameters"
},
{
"Code": 4,
"ID": "ServerBusy",
"Description": "Trade server is busy"
},
{
"Code": 5,
"ID": "OldVersion",
"Description": "Old version of the client terminal"
},
{
"Code": 6,
"ID": "NoConnection",
"Description": "No connection with trade server"
},
{
"Code": 7,
"ID": "NotEnoughRights",
"Description": "Not enough rights"
},
{
"Code": 8,
"ID": "TooFrequentRequests",
"Description": "Too frequent requests"
},
{
"Code": 9,
"ID": "MalfunctionalTrade",
"Description": "Malfunctional trade operation"
},
{
"Code": 64,
"ID": "AccountDisabled",
"Description": "Account disabled"
},
{
"Code": 65,
"ID": "InvalidAccount",
"Description": "Invalid account"
},
{
"Code": 128,
"ID": "TradeTimeout",
"Description": "Trade timeout"
},
{
"Code": 129,
"ID": "InvalidPrice",
"Description": "Invalid price"
},
{
"Code": 130,
"ID": "InvalidStops",
"Description": "Invalid stops"
},
{
"Code": 131,
"ID": "InvalidTradeVolume",
"Description": "Invalid trade volume"
},
{
"Code": 132,
"ID": "MarketClosed",
"Description": "Market is closed"
},
{
"Code": 133,
"ID": "TradeDisabled",
"Description": "Trade is disabled"
},
{
"Code": 134,
"ID": "NotEnoughMoney",
"Description": "Not enough money"
},
{
"Code": 135,
"ID": "PriceChanged",
"Description": "Price changed"
},
{
"Code": 136,
"ID": "OffQuotes",
"Description": "Off quotes"
},
{
"Code": 137,
"ID": "BrokerBusy",
"Description": "Broker is busy"
},
{
"Code": 138,
"ID": "Requote",
"Description": "Requote"
},
{
"Code": 139,
"ID": "OrderLocked",
"Description": "Order is locked"
},
{
"Code": 140,
"ID": "LongPositionsOnlyAllowed",
"Description": "Buy orders only allowed"
},
{
"Code": 141,
"ID": "TooManyRequests",
"Description": "Too many requests"
},
{
"Code": 145,
"ID": "TradeModifyDenied",
"Description": "Modification denied because order is too close to market"
},
{
"Code": 146,
"ID": "TradeContextBusy",
"Description": "Trade context is busy"
},
{
"Code": 147,
"ID": "TradeExpirationDenied",
"Description": "Expirations are denied by broker"
},
{
"Code": 148,
"ID": "TradeTooManyOrders",
"Description": "The amount of open and pending orders has reached the limit set by the broker"
},
{
"Code": 149,
"ID": "TradeHedgeProhibited",
"Description": "An attempt to open an order opposite to the existing one when hedging is disabled"
},
{
"Code": 150,
"ID": "TradeProhibitedByFifo",
"Description": "An attempt to close an order contravening the FIFO rule"
},
{
"Code": 4000,
"ID": "NoMqlerror",
"Description": "No error returned"
},
{
"Code": 4001,
"ID": "WrongFunctionPointer",
"Description": "Wrong function pointer"
},
{
"Code": 4002,
"ID": "ArrayIndexOutOfRange",
"Description": "Array index is out of range"
},
{
"Code": 4003,
"ID": "NoMemoryForCallStack",
"Description": "No memory for function call stack"
},
{
"Code": 4004,
"ID": "RecursiveStackOverflow",
"Description": "Recursive stack overflow"
},
{
"Code": 4005,
"ID": "NotEnoughStackForParam",
"Description": "Not enough stack for parameter"
},
{
"Code": 4006,
"ID": "NoMemoryForParamString",
"Description": "No memory for parameter string"
},
{
"Code": 4007,
"ID": "NoMemoryForTempString",
"Description": "No memory for temp string"
},
{
"Code": 4008,
"ID": "NotInitializedString",
"Description": "Not initialized string"
},
{
"Code": 4009,
"ID": "NotInitializedArraystring",
"Description": "Not initialized string in array"
},
{
"Code": 4010,
"ID": "NoMemoryForArraystring",
"Description": "No memory for array string"
},
{
"Code": 4011,
"ID": "TooLongString",
"Description": "Too long string"
},
{
"Code": 4012,
"ID": "RemainderFromZeroDivide",
"Description": "Remainder from zero divide"
},
{
"Code": 4013,
"ID": "ZeroDivide",
"Description": "Zero divide"
},
{
"Code": 4014,
"ID": "UnknownCommand",
"Description": "Unknown command"
},
{
"Code": 4015,
"ID": "WrongJump",
"Description": "Wrong jump (never generated error)"
},
{
"Code": 4016,
"ID": "NotInitializedArray",
"Description": "Not initialized array"
},
{
"Code": 4017,
"ID": "DllCallsNotAllowed",
"Description": "DLL calls are not allowed"
},
{
"Code": 4018,
"ID": "CannotLoadLibrary",
"Description": "Cannot load library"
},
{
"Code": 4019,
"ID": "CannotCallFunction",
"Description": "Cannot call function"
},
{
"Code": 4020,
"ID": "ExternalCallsNotAllowed",
"Description": "Expert function calls are not allowed"
},
{
"Code": 4021,
"ID": "NoMemoryForReturnedStr",
"Description": "Not enough memory for temp string returned from function"
},
{
"Code": 4022,
"ID": "SystemBusy",
"Description": "System is busy (never generated error)"
},
{
"Code": 4023,
"ID": "DllfuncCriticalerror",
"Description": "DLL-function call critical error"
},
{
"Code": 4024,
"ID": "InternalError",
"Description": "Internal error"
},
{
"Code": 4025,
"ID": "OutOfMemory",
"Description": "Out of memory"
},
{
"Code": 4026,
"ID": "InvalidPointer",
"Description": "Invalid pointer"
},
{
"Code": 4027,
"ID": "FormatTooManyFormatters",
"Description": "Too many formatters in the format function"
},
{
"Code": 4028,
"ID": "FormatTooManyParameters",
"Description": "Parameters count exceeds formatters count"
},
{
"Code": 4029,
"ID": "ArrayInvalid",
"Description": "Invalid array"
},
{
"Code": 4030,
"ID": "ChartNoreply",
"Description": "No reply from chart"
},
{
"Code": 4050,
"ID": "InvalidFunctionParamscnt",
"Description": "Invalid function parameters count"
},
{
"Code": 4051,
"ID": "InvalidFunctionParamvalue",
"Description": "Invalid function parameter value"
},
{
"Code": 4052,
"ID": "StringFunctionInternal",
"Description": "String function internal error"
},
{
"Code": 4053,
"ID": "SomeArrayError",
"Description": "Some array error"
},
{
"Code": 4054,
"ID": "IncorrectSeriesarrayUsing",
"Description": "Incorrect series array using"
},
{
"Code": 4055,
"ID": "CustomIndicatorError",
"Description": "Custom indicator error"
},
{
"Code": 4056,
"ID": "IncompatibleArrays",
"Description": "Arrays are incompatible"
},
{
"Code": 4057,
"ID": "GlobalVariablesProcessing",
"Description": "Global variables processing error"
},
{
"Code": 4058,
"ID": "GlobalVariableNotFound",
"Description": "Global variable not found"
},
{
"Code": 4059,
"ID": "FuncNotAllowedInTesting",
"Description": "Function is not allowed in testing mode"
},
{
"Code": 4060,
"ID": "FunctionNotConfirmed",
"Description": "Function is not allowed for call"
},
{
"Code": 4061,
"ID": "SendMailError",
"Description": "Send mail error"
},
{
"Code": 4062,
"ID": "StringParameterExpected",
"Description": "String parameter expected"
},
{
"Code": 4063,
"ID": "IntegerParameterExpected",
"Description": "Integer parameter expected"
},
{
"Code": 4064,
"ID": "DoubleParameterExpected",
"Description": "Double parameter expected"
},
{
"Code": 4065,
"ID": "ArrayAsParameterExpected",
"Description": "Array as parameter expected"
},
{
"Code": 4066,
"ID": "HistoryWillUpdated",
"Description": "Requested history data is in updating state"
},
{
"Code": 4067,
"ID": "TradeError",
"Description": "Internal trade error"
},
{
"Code": 4068,
"ID": "ResourceNotFound",
"Description": "Resource not found"
},
{
"Code": 4069,
"ID": "ResourceNotSupported",
"Description": "Resource not supported"
},
{
"Code": 4070,
"ID": "ResourceDuplicated",
"Description": "Duplicate resource"
},
{
"Code": 4071,
"ID": "IndicatorCannotInit",
"Description": "Custom indicator cannot initialize"
},
{
"Code": 4072,
"ID": "IndicatorCannotLoad",
"Description": "Cannot load custom indicator"
},
{
"Code": 4073,
"ID": "NoHistoryData",
"Description": "No history data"
},
{
"Code": 4074,
"ID": "NoMemoryForHistory",
"Description": "No memory for history data"
},
{
"Code": 4075,
"ID": "NoMemoryForIndicator",
"Description": "Not enough memory for indicator calculation"
},
{
"Code": 4099,
"ID": "EndOfFile",
"Description": "End of file"
},
{
"Code": 4100,
"ID": "SomeFileError",
"Description": "Some file error"
},
{
"Code": 4101,
"ID": "WrongFileName",
"Description": "Wrong file name"
},
{
"Code": 4102,
"ID": "TooManyOpenedFiles",
"Description": "Too many opened files"
},
{
"Code": 4103,
"ID": "CannotOpenFile",
"Description": "Cannot open file"
},
{
"Code": 4104,
"ID": "IncompatibleFileaccess",
"Description": "Incompatible access to a file"
},
{
"Code": 4105,
"ID": "NoOrderSelected",
"Description": "No order selected"
},
{
"Code": 4106,
"ID": "UnknownSymbol",
"Description": "Unknown symbol"
},
{
"Code": 4107,
"ID": "InvalidPriceParam",
"Description": "Invalid price"
},
{
"Code": 4108,
"ID": "InvalidTicket",
"Description": "Invalid ticket"
},
{
"Code": 4109,
"ID": "TradeNotAllowed",
"Description": "Trade is not allowed. Enable checkbox"
},
{
"Code": 4110,
"ID": "LongsNotAllowed",
"Description": "Longs are not allowed. Check the Expert Advisor properties"
},
{
"Code": 4111,
"ID": "ShortsNotAllowedException",
"Description": "Shorts are not allowed. Check the Expert Advisor properties"
},
{
"Code": 4112,
"ID": "TradeExpertDisabledByServer",
"Description": "Automated trading by Expert Advisors/Scripts disabled by trade server"
},
{
"Code": 4200,
"ID": "ObjectAlreadyExists",
"Description": "Object already exists"
},
{
"Code": 4201,
"ID": "UnknownObjectProperty",
"Description": "Unknown object property"
},
{
"Code": 4202,
"ID": "ObjectDoesNotExist",
"Description": "Object does not exist"
},
{
"Code": 4203,
"ID": "UnknownObjectType",
"Description": "Unknown object type"
},
{
"Code": 4204,
"ID": "NoObjectName",
"Description": "No object name"
},
{
"Code": 4205,
"ID": "ObjectCoordinatesError",
"Description": "Object coordinates error"
},
{
"Code": 4206,
"ID": "NoSpecifiedSubwindow",
"Description": "No specified subwindow"
},
{
"Code": 4207,
"ID": "SomeObjectError",
"Description": "Graphical object error"
},
{
"Code": 4210,
"ID": "ChartPropInvalid",
"Description": "Unknown chart property"
},
{
"Code": 4211,
"ID": "ChartNotFound",
"Description": "Chart not found"
},
{
"Code": 4212,
"ID": "ChartwindowNotFound",
"Description": "Chart subwindow not found"
},
{
"Code": 4213,
"ID": "ChartindicatorNotFound",
"Description": "Chart indicator not found"
},
{
"Code": 4220,
"ID": "SymbolSelect",
"Description": "Symbol select error"
},
{
"Code": 4250,
"ID": "NotificationError",
"Description": "Notification error"
},
{
"Code": 4251,
"ID": "NotificationParameter",
"Description": "Notification parameter error"
},
{
"Code": 4252,
"ID": "NotificationSettings",
"Description": "Notifications disabled"
},
{
"Code": 4253,
"ID": "NotificationTooFrequent",
"Description": "Notification send too frequent"
},
{
"Code": 4260,
"ID": "FtpNoserver",
"Description": "FTP server is not specified"
},
{
"Code": 4261,
"ID": "FtpNologin",
"Description": "FTP login is not specified"
},
{
"Code": 4262,
"ID": "FtpConnectFailed",
"Description": "FTP connection failed"
},
{
"Code": 4263,
"ID": "FtpClosed",
"Description": "FTP connection closed"
},
{
"Code": 4264,
"ID": "FtpChangedir",
"Description": "FTP path not found on server"
},
{
"Code": 4265,
"ID": "FtpFileError",
"Description": "File not found in the MQL4\\\\Files directory to send on FTP server"
},
{
"Code": 4266,
"ID": "FtpError",
"Description": "Common error during FTP data transmission"
},
{
"Code": 5001,
"ID": "FileTooManyOpened",
"Description": "Too many opened files"
},
{
"Code": 5002,
"ID": "FileWrongFilename",
"Description": "Wrong file name"
},
{
"Code": 5003,
"ID": "FileTooLongFilename",
"Description": "Too long file name"
},
{
"Code": 5004,
"ID": "FileCannotOpen",
"Description": "Cannot open file"
},
{
"Code": 5005,
"ID": "FileBufferAllocationError",
"Description": "Text file buffer allocation error"
},
{
"Code": 5006,
"ID": "FileCannotDelete",
"Description": "Cannot delete file"
},
{
"Code": 5007,
"ID": "FileInvalidHandle",
"Description": "Invalid file handle (file closed or was not opened)"
},
{
"Code": 5008,
"ID": "FileWrongHandle",
"Description": "Wrong file handle (handle index is out of handle table)"
},
{
"Code": 5009,
"ID": "FileNotTowrite",
"Description": "File must be opened with FILE_WRITE flag"
},
{
"Code": 5010,
"ID": "FileNotToread",
"Description": "File must be opened with FILE_READ flag"
},
{
"Code": 5011,
"ID": "FileNotBin",
"Description": "File must be opened with FILE_BIN flag"
},
{
"Code": 5012,
"ID": "FileNotTxt",
"Description": "File must be opened with FILE_TXT flag"
},
{
"Code": 5013,
"ID": "FileNotTxtorcsv",
"Description": "File must be opened with FILE_TXT or FILE_CSV flag"
},
{
"Code": 5014,
"ID": "FileNotCsv",
"Description": "File must be opened with FILE_CSV flag"
},
{
"Code": 5015,
"ID": "FileReadError",
"Description": "File read error"
},
{
"Code": 5016,
"ID": "FileWriteError",
"Description": "File write error"
},
{
"Code": 5017,
"ID": "FileBinStringsize",
"Description": "String size must be specified for binary file"
},
{
"Code": 5018,
"ID": "FileIncompatible",
"Description": "Incompatible file (for string arrays-TXT, for others-BIN)"
},
{
"Code": 5019,
"ID": "FileIsDirectory",
"Description": "File is directory not file"
},
{
"Code": 5020,
"ID": "FileNotExist",
"Description": "File does not exist"
},
{
"Code": 5021,
"ID": "FileCannotRewrite",
"Description": "File cannot be rewritten"
},
{
"Code": 5022,
"ID": "FileWrongDirectoryname",
"Description": "Wrong directory name"
},
{
"Code": 5023,
"ID": "FileDirectoryNotExist",
"Description": "Directory does not exist"
},
{
"Code": 5024,
"ID": "FileNotDirectory",
"Description": "Specified file is not directory"
},
{
"Code": 5025,
"ID": "FileCannotDeleteDirectory",
"Description": "Cannot delete directory"
},
{
"Code": 5026,
"ID": "FileCannotCleanDirectory",
"Description": "Cannot clean directory"
},
{
"Code": 5027,
"ID": "FileArrayresizeError",
"Description": "Array resize error"
},
{
"Code": 5028,
"ID": "FileStringresizeError",
"Description": "String resize error"
},
{
"Code": 5029,
"ID": "FileStructWithObjects",
"Description": "Structure contains strings or dynamic arrays"
},
{
"Code": 5200,
"ID": "WebrequestInvalidAddress",
"Description": "Invalid URL"
},
{
"Code": 5201,
"ID": "WebrequestConnectFailed",
"Description": "Failed to connect to specified URL"
},
{
"Code": 5202,
"ID": "WebrequestTimeout",
"Description": "Timeout exceeded"
},
{
"Code": 5203,
"ID": "WebrequestRequestFailed",
"Description": "HTTP request failed"
},
{
"Code": 65536,
"ID": "UserErrorFirst",
"Description": "User defined errors start with this code"
}
]