MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

A Quick Start Or a Short Guide for Beginners A Quick Start Or a Short Guide for Beginners Screenshot
USDTRY., H1
Demo
Subscribe to signal
Lubiana
56.21%, 6 997.65 USD
Ticks Indicator
Ticks
Author: MetaQuotes
AIIV USDCAD Active Index Inflection Values USDCADAIIV USDCAD Active Index Inflection Values USDCAD Try product
AIIV USDCAD Active Index Inflection Values USDCAD
Author: Aktiniy

CRect

CRect is a class of the rectangular area of the chart.

Description

CRect is a class of the area, it defined by coordinates of the upper-left and lower-right corners of a rectangle in Cartesian coordinates.

Declaration

   class CRect

Title

   #include <Controls\Rect.mqh>

Class Methods

Properties

 

Left

Gets/Sets the X coordinate of the upper-left corner

Top

Gets/Sets the Y coordinate of the upper-left corner

Right

Gets/Sets the X coordinate of the lower-right corner

Bottom

Gets/Sets the Y coordinate of the lower-right corner

Width

Gets/Sets the width

Height

Gets/Sets the height

SetBound

Sets new coordinates of using CRect class

Move

Sets new coordinates of the CRect class

Shift

Performs the relative shift of the CRect coordinates

Contains

Checks if the point is inside the CRect class area

Additional methods

 

Format

Gets the area coordinates as string

 


Updated: 2012.04.06