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

Automated Trading Language Documentation

ProfessorFx FreeProfessorFx Free Try product
ProfessorFx Free
Author: achidayat
Screenshot
EURUSD, W1
Demo
Subscribe to signal
Alien 1
37.04%, 29.91 USD
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors MQL5 for Newbies: Guide to Using Technical Indicators in... Parabolic SAR Indicator
Parabolic SAR
Author: MetaQuotes

Mode (Get Method)

Gets the value of "Mode" property (bar, candle or line).

ENUM_CHART_MODE  Mode() const

Returned value

Value of "Mode" property of the object, assigned to the class instance. If there is no object assigned, it returns WRONG_VALUE.

Mode (Set Method)

Sets new value for "Mode" property (bar, candle or line).

bool  Mode(
   ENUM_CHART_MODE  mode      // new chart mode
   )

Parameters

mode

[in]  Chart mode (candle, bar or line) of ENUM_CHART_MODE enumeration.

Returned value

true if successful, false if mode hasn't changed.


Updated: 2010.12.15