Robert Northen / Publications
Forum
Is there any way to control the screen position (X,Y) of chart windows in MQL5?
Hi all, I've been searching through the MQL5 documentation and forum, but I can't seem to find a way to programmatically control the screen position (X, Y) of chart windows in MetaTrader 5. I know that we can control the chart size using: ChartSetInteger(chart_id, CHART_WIDTH_IN_PIXELS, ...);
Does input group affect the params[] array in IndicatorCreate()?
Hi all, I'm programmatically loading a custom indicator using IndicatorCreate() and passing values for the indicator's input parameters via the params[] array. My custom indicator uses input group declarations like " " and "--- Tick Density" to visually organize input settings in the parameters
Graphic Objects Not Being Removed When Indicator Is Removed From Chart
Does anyone know any reason why my indicator's graphic objects do not get removed from the chart when the indicator is removed? After the indicator is removed, the objects appear in the chart's object list (CTRL-B). I'm using the latest build 4410 21.06.24 I'm calling ObjectDelete on all graphic
EA Custom Hot Keys
Hi I want to use dozen or so custom hot keys in my EA. Is there a recommended, or safe combination of shift, ctrl, alt, fn keys I can use that are not being used by the chart/platform? Thank you
EA Custom Hot Keys
Hi I want to use dozen or so custom hot keys in my EA. Is there a recommended, or safe combination of shift, ctrl, alt, fn keys I can use that are not being used by the chart/platform? Thank you
Detect Method of Loading an Indicator Onto a Chart?
Hello - I have written an indicator that uses the OnChartEvent event that draws lines onto the chart. When this indicator is loaded by an EA using IndicatorCreate, drawing the indicator on the chart is not required. Although not drawn on the chart, the function for drawing the lines is still run
Suggestions For MQL5's Lack Of Support for Array Pointers?
Hi If an indicator uses multiple classes and functions, as one might have if writing a non-simplistic indicator, then the lack of support for array pointers makes it necessary to pass references to data arrays from class to class and function to function for every class and function that needs to
Tester Takes Too Long During Publish Validation
Hi I have an indicator that processes a lot of data. It published successfully around a year to 18 months ago. Now I get Tester Takes Too Long during publish validation. The code is already highly optimised. Is there anything I can do to get it published? Thank you
Detecting method used to load an indicator onto a chart?
Hi In an indicator's OnInit() how can I detect if the indicator has been loaded as a result of IndicatorCreate()? Rob
How to detect Timeframe change/Program close if Indicator Handle is not closed?
Hi It appears that a program's OnInit() and OnDeinit() do not get called if there is an indicator handle opened with ChartIndicatorGet() and not yet released with IndicatorRelease(). My indicators and EAs need to retrieve indicators' buffer data whilst the main indicator/EA is running, hence