Forum

Scrolling Dialog, Is this possible?

Is this possible? What I want to implement is a dialog, with a constant size similar to "B" , where I can scroll to see other options like in the Dialog such as "C" . The problem is attaching an object, to an area greater than the client Height, you get "C" . I felt maybe I could extend the

Get value from iBarShift().

Hello, How do you get a value from iBarShift() function for a timeframe other than the current at the start of the terminal (that is the first run)? It is always returning -1(or no bar) no matter what I have tried. I am creating a Multi-time Frame indicator that loops from the start date to the

A little help, Any idea

Please I am trying to replicate a feature, where if price is going up, the distance of the high to the open, is added from the low, bringing the low line upwards, but it should not be greater than the low of the day. If it should get to the low of the day, it would remain unchanged and send a

A way to set the Index Buffer to Regions without using &time[]

How do I get a region, lets say daily TF to display the same value for my index buffer, without having to use time[] array. I used iTime() to get the values of the various time to calculate for, but the index buffer is having different values for each candle and not the time frame regions. Thanks

Disable Selection, automatically enable

Hello, Good day, Please I wrote an indicator for MT5, the functions and everything is working well in my terminal, but the problem is, I sent it to someone, and he is complaining that the object e.g horizontal line when created on his chart, disable selection is automatically enable, preventing him

Question: Creating a Button, Panel or BmpLabel? Confused!

Please, I am trying to create something similar to what is in image below, I want a button or icon that would turn on/off the indicator, I have looked at the CButton CLabel classes etc Also studied https://www.mql5.com/en/articles/2296 but am comfused on what am suppose to do to create a button

Visualization of Objects created from current TF (<=) less than TF

The problem is having object created in a TF (e.g the 4H TF) to be displayed on the the 4H TF and lower TF, anything greater than the 4H TF it won't display. I know using OBJ_PERIOD_D1|OBJ_PERIOD_H4 // would get you to display the Object on only the 4H and Daily TF and nothing else but getting it to

Placing Object Description in a constant spot on the chart

Hello, So am trying to get the text description of an object created at a particular spot like in the image below, but the desired result is providing somewhat difficult to achieve, I don't know if there is a function for such or a special way to write the code to do such. The "OBJ_TEXT" moves with

Accessing time in a class function, Problem

Please, I am trying to access the "time" constant in a class. The idea was or is to create a function in the class that accepts the const, then pass it to a class variable "m_time" , which I would be able to use in the class for member functions that would require the time Array to run. class Run

Help, Problem in drawing Trend line at the Edges

Please, am having difficulty drawing from the edge of the chart, how do I go about it for point 1 and point 2 in picture below. Thanks