I can't seem to find anything in the docs and searches on the internet don't answer my Q. I'd hate to leave it up to the user to go into the EA Properties dialog and configure whether their broker has FIFO requirements, but that's looking like my only option right now
With the frequent memory allocation, it is recommended to use a third parameter that sets a reserve to reduce the number of physical memory allocations. All the subsequent calls of ArrayResize do not lead to physical reallocation of memory, but only change the size of the first array dimension
I'm writing a dashboard that displays information from symbols across all other open charts. If a chart is deleted or added, I need to resize the dashboard and remove/add the missing symbol/timeframes. Rather than coding a resize, I figured it's better to just delete the panel and re-create it
For what it's worth, people are quoting me in the replies, but I never receive a notification. I do, however, receive notifications if they mention (@) me by my display name. Here are my notification settings
As you might know, whenever you call something like CopyRates or iHigh on a Symbol that doesn't have an open chart set to that Period, you will either get old data or an error value. However, MT4 will update the history data for that Symbol + Period and it can be accessed shortly thereafter. My
When using the Standard Libary to create ChartObjects, the objects are deleted upon calling the CChartObject deconstructor. Normally, this isn't a bad thing with indicators/experts/panels, or can be worked around if you call the Save/Load functions, but scripts are a run-once ordeal, so this won't
No matter how many times I deny the friend request, it'll always show up again. I tried searching but couldn't find an option for it. The most relevant thing I could find is that this is prohibited behavior
In MQL4, we're taught (for example) to use Time to access the array of datetimes for bars in the current period, and iTime to access the time of a bar for periods other than the one the user is currently looking at. However, in MQL5, there is no Time array, so we're forced to use iTime. This creates
Video demonstration: https://i.imgur.com/ee1JSo8.gif Issue: the color C'34,34,34' (and similar dark colors within that range) display differently on OBJ_BUTTON compared to other object types. In the video, the OBJ_EDIT is also using C'34,34,34' as the background color that the OBJ_BUTTON uses in the
I don't know about you guys, but I'd love for their to be official support for VS Code. It's clear that VS Code is superior to MetaEditor, but there's certain things that MetaEditor does that makes life easier for MT4/MT5 programming. What's currently lacking on VS Code (to the best of my knowledge)