
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an issue, could you please give me some hints on how to work around it?
"critical runtime error 502 in OnTester function (array out of range, module Experts\ea.ex5, file MT4Orders.mqh, line 626, col 40)"
It seems like this.Tickets's size only gets increased over time. I assume therefore it is meant to contain information on closed trades. Could you confirm this?
In case this is not necessary, is there a way to turn it off?
I have an issue, could you please give me some hints on how to work around it?
It seems like this.Tickets's size only gets increased over time. I assume therefore it is meant to contain information on closed trades. Could you confirm this?
In case this is not necessary, is there a way to turn it off?
Try the latest version. Copy-Paste.
Try the latest version. Copy-Paste.
Thank you fxsaber. It will take me some time to confirm, but so far the memory usage doesn't seem to be lower.
Out of curiosity, where is OrderSwap() defined? I can't seem to find it in the code.
so far the memory usage doesn't seem to be lower.
Need data to reproduce problem. Laconic code and investment access to the trading account where the problem occurs. Maybe in private messages.
Out of curiosity, where is OrderSwap() defined? I can't seem to find it in the code.
So I never got any problems with including this library/code in EAs for years.
Now when I'm compiling MT5 EA, it returns 3 errors from this code, they are all basically about 1 line: ( see code bellow )
in my EA I'm also including:
#import "kernel32.dll"
Do you have any idea what could be happening here ?
Library alone compiles without errors, no problems, as usual. Only when trying to compile EA, it throws those errors.
I found something suspicions in my EA :
so this union Price name overwrites the Price name in the GetDigits function ? this could be the problem ?
so this union Price name overwrites the Price name in the GetDigits function ? this could be the problem ?
This is the reason.
Hi,
Look like have a bug on OrderTicket()
It's not correct ticket from MT5's history
This is my code:
Look like have a bug on OrderTicket()
It's not correct ticket from MT5's history
Apparently you want to get it.
The reasons are detailed here.
Apparently you want to get it.
The reasons are detailed here.
Thanks you very much.
It's ok with
OrderTicketID()
Is it possible there is a memory leak or a more than necessary memory use? Maybe in this.tickets or in this.amount (::ArrayResize) or maybe somewhere else?
The size of the arrays only get increased over time. Is this a must? Is it possible to empty them or perhaps don't load all the previous trades?