Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.11.15 15:15

CSelectFile - library for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 24


CSelectFile is a file selection graphical interface class. The class is created based on the Standard Library.
Class methods.
1. Create - creation of a graphical interface.

bool  Create(long  chart,          // chart ID
                  string  name,        // graphical window name
                   int     x1,             // the X-coordinate value of the top left point
                   int     y1,             // the Y-coordinate value of the top left point.
                   int     x2,             // the X-coordinate value of the bottom right point.
                   int     y2)             // the Y-coordinate value of the bottom right point. 

2. ChartEvent - chart event handling, returns the status of pressed buttons: 0 - buttons are not pressed, 1 - ОК button is pressed, -1 - Cancel button is pressed.
3. Filename - getting the name of the selected file.
4. FileFlag - getting the flag of the file location.



1. Creation of a dynamic object CSelectFile *fs=new CSelectFile().
2. Creation of a graphical interface (fs.Create(...)).
3. Waiting for a file selection and pressing of the button on the interface panel fs.ChartEvent(...).
4. Getting the file name fs.Filename() and the file location flag fs.FileFlag().
5. Deleting the dynamic object (delete fs).

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.