Forum

How to determine user choice of color/width/style as set in "Colors" tab?

I found a nice little *indicator* that allows the user to place horizontal lines on the chart as user-defined intervals (ie a grid type setup). However, the line color and style is hard coded and I want to change that so the use can choose the color, width and style of the lines from the inputs

Debugger error: Expression could not be evaluated.

When ever I try to debug any code I get this error with ALL watch attempts. Apparently this has been a bug as far back as 2014 - I can't believe it is still here. Does anyone know of a solution to this problem? A search on google revealed a support email reply that says:- Support Team 2014.05.06

Help: How to make 1 indicator query another's data?

I'm trying to write a indicator that makes use of another's data. The indicator I want to query is a Heiken Ashi indicator and I want to determine what type of bar it's painting at any given point along the chart. Looking through the code of the H/A indicator, I can see how to determine this

Can 1 EA monitor & trade multiple currency pairs from within one chart?

I am wondering is it's possible to have a single EA running on any currency pair , but have it monitor multiple currency pairs and respond to triggers as they arise in each pair. Essentially I want a EA that will poll all pairs of interest, test pre-configured criteria on each one and respond with

Allow DLL Imports - Option is unavailable in new empty EA.

I just created a default EA template via the wizard and added/removed nothing from the code. When I attach this empty EA to a chart, the option to "Allow DLL imports " is greyed out and cannot be changed by the user. Can someone tell me why this is happening and how to re-enable the option to

Can I halt/pause Tester in my Code?

Title says it all. I can't find anything in the docs that might allow me to place a sort of breakpoint while testing my code. It would be really nice if there was a way that I can tell tester to stop when a given condition (defined in my code) is met so I can examine the journals immediately

Confused about how MT4 calculates Profit.

I ran the strategy tester on an EA I'm trying to write and debug and upon looking at the "Results" table to see info about each trade, I found discrepancies between what was reported as "Profit/Balance" and how I thought it should be. In the attached image, you can see trades 2 to 26. Column D

Can some please clarify what this means in the documentation.

My apologies for this somewhat noob question but I'm not all that up to speed with MQL and reading through the documentation I see things like:- Parameters ticket [in] Order index or order ticket depending on the second parameter. select [in] Selecting flags. It can be any of the following values