Forum

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

Including Indicators with a published EA

I'm writing an EA that I plan to publish. This EA includes my own versions with modifications of some indicators in the Indicators\Examples folder, including three that are not in this folder - SuperTrend, TSI and Keltner Channels. All the code is my own but the algorithm used is the same. Do I need

Prevent Chart Receiving Events when a Dialog is Open

How do I stop the main chart from receiving events when a dialog window is open? When a user click/drags over the dialog window, as they would to interact with controls on the panel the event gets passed to the chart behind. Obviously this is undesirable if the chart has chart objects on the chart

Grouping Controls on a CAppDialog

Hello I would like to have a group of controls on a CAppDialog that I can make visible/invisible and replace with another group of controls on the same CAppDialog. So, the main AppDialog would have a group of buttons below the caption that control which group of controls appear. AppDialog would also

CComboBox List Element Index

How do I retrieve the index of the currently selected list element? Thank you

DLL Library Dependencies File Location?

Hi I have written a .dll library for my EA, using Visual Studio 2019 that has a dependency on another dll, System.Text.Json.dll. Where should I place this dependency dll? I have tried copying it to MT5\Libraries, but get a File Not Found exception when attempting to use the main dll. Thanks for any