Forum

Challenges implementing MT5 published example code for CPanelDialog example

Hello, I've reviewed and begun testing the code and suggestions in this article: https://www.mql5.com/en/articles/345 I'm using the panel with an indicator, exactly as the sample code. Before I try to expand upon this example for my own use, I need to resolve some major behavior problems. I've done

Making CPanel solution more pretty

Hello, I've worked through issues I was having with behavior of a subclass of CPanel used in a custom indicator of mine. My primary remaining issue was maintaining the maximized/minimized state of the panel when changing timeframes. I solved this (after implementing other solutions toward this goal)

Desperately seeking help on a CDialog problem -- mostly runs fine, but periodically becomes unusable

I have 30-40 hours studying and partially resolving this problem through ways that are not solving the problem, but trying to avoid it and/or reset it, with moderate but not complete success. Anyone with experience dealing with nuances of instances of CAppDialog (combined with CChart etc.) Please

Workable but nagging issue w/CDialog -- mouse events and drags flow through to the chart

I got my big issues with CDialog worked out thanks to Manuel Alejandro Cercos Perez -- appreciate the suggestion Manuel! A nagging issue is that when I click on a button on the dialog, if I move the mouse at all while clicking, it scrolls the chart behind it. Similarly, dragging within the body of

Question on good programming practices re: PositionSelectByTicket()

Hello, Quick question on good programming practices. I have a trade entry manager EA which, after the users clicks to buy/sell then tries to immediately select the ticket number (which was captured during the market order entry process). Sometimes, the EA selects it successfully (open position) with

Simple long-used calc for $ per pip (pip value) fails on only one symbol at new broker but has always worked on all symbols at several other brokers

Hello, Thank you in advance for ANY help I can get on this -- I'm not a newbie and this has me perplexed. I have a simple calculation I've always used to calculate dollars per pip (account funded in USD) and it has always worked on all forex and metal symbols at multiple other brokers. Now at a new

Problem with background objects interfering with OBJ_RECTANGLE_LABEL display

Hello, Somethings seems buggy with an OBJ_RECTANGLE_LABEL. I have the same problem whether the object is drawn manually in the trade station or created programmatically in an indicator. A background object from another indicator is causing the color of the rectangle to vary when it is overlaid on

Trouble with SQL Database query results.

Hello, I'm starting to work with Databases and I'm getting more records in a query in MQL than if I paste the exact same query in the database interface. I literally paste the SELECT statement from my MQL code into the database query interface. In the query interface I get six records. In the MQL I

Is it possible for an indicator to know if it was dropped on a chart vs. created by iCustom() from another indicator?

Hello all, I have an indicator #1 that uses iCustom() to call another indicator #2. Indicator #2 as part of its operation puts labels on the chart. I can use ChartIndicatorsGet() within indicator #2 to test if it actually exists on a chart and if not, then not draw the labels. No problem. However

I wrote a function so an indicator can send one pseudo-tick to chart if the market is closed, any way to improve it?

Hello, This code appears to work great when dropping an indicator on a chart when the market is closed. I've prevented recursive calls with a static variable. Hoping an expert might be willing to evaluate this code for: - Internal terminal behavior which makes this inadvisable? - Some cool idea how