MT4 Floating Charts Extension API
Access and/or extend MT4 Floating Charts functionality
Enumerations | Functions
fcerror.mqh File Reference

Error codes and error code conversion functions used in the FloatingCharts API and its extensions. More...

Enumerations

enum  FCErrorCode {
  FC_ERR_SUCCESS, FC_ERR_CHART_FLOATING, FC_ERR_CHART_NOT_FLOATING, FC_ERR_DLL_NOT_ALLOWED,
  FC_ERR_NOT_RUNNING, FC_ERR_INVALID_PARAMETER, FC_ERR_INVALID_HANDLE, FC_ERR_UNSUPPORTED_VERSION,
  FC_ERR_COMMAND_FAILED
}
 Enumeration of Floating Charts API error codes. More...
 

Functions

string FCErrorDescription (int error_code)
 Convert a Floating Charts API error code into a more descriptive string. More...
 

Detailed Description

Error codes and error code conversion functions used in the FloatingCharts API and its extensions.

License
This content is released under the terms of the MIT license. A copy of this license has been included with this project in LICENSE.txt

Enumeration Type Documentation

Enumeration of Floating Charts API error codes.

Enumerator
FC_ERR_SUCCESS 

No error.

FC_ERR_CHART_FLOATING 

Chart already floating.

Can only be applied to a docked chart.

FC_ERR_CHART_NOT_FLOATING 

Chart not floating (docked).

Can only be applied to a floating chart.

FC_ERR_DLL_NOT_ALLOWED 

DLL imports are not allowed.

FC_ERR_NOT_RUNNING 

MT4 Floating Charts is not attached to this instance of MetaTrader.

FC_ERR_INVALID_PARAMETER 

An invalid argument was encountered.

FC_ERR_INVALID_HANDLE 

A window handle is not set or failed to obtain a window handle(s).

FC_ERR_UNSUPPORTED_VERSION 

The running version of MT4 Floating Charts does not meet the minimum version required to continue.

FC_ERR_COMMAND_FAILED 

A command sent to MT4 Floating Charts failed.

This can usually be interpreted as FC_ERR_NOT_RUNNING because that is the most common cause of command failure

Function Documentation

string FCErrorDescription ( int  error_code)

Convert a Floating Charts API error code into a more descriptive string.

Parameters
interror_code
Returns
The named constant for the error code as a string.
"Invalid error code" if error_code is not a FCErrorCode.