I need to create a rectangle that sticking to one side of the window operations, so I thought of "OBJ_RECTANGLE_LABEL" but this does not leave me the option to put prices that define the height of the rectangle, since the documentation says
Anchor point coordinates are set in pixels. It is possible to recctangle label's anchoring corner from ENUM_BASE_CORNER enumeration. Rectangle label's border type can be selected from ENUM_BORDER_TYPE enumeration.
The object is used to create and design the custom graphical interface.
but I need something that allows me to create a box attached to the right side, but to let me the option to select the price for its height (width, should also be in pixels)
I tried testing the ChartXYToTimePrice and ChartTimePriceToXY functions (https://docs.mql4.com/chart_operations/chartxytotimeprice https://docs.mql4.com/en/chart_operations/charttimepricetoxy), to test and implement it, but it does not work me
I tested this in EURGBP
void CreateRectangle(const long chart_ID=0,
const string name="RectLabel" )
but does not work, can somebody help me