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

2010.02.02 10:31

TradePad_Sample - expert for MetaTrader 5

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

votes: 48
classchart.mqh (11.24 KB)view

Here are some examples of objects implementation to build a table of trade symbols. By pressing the symbol on graphic object Chart (OBJ_CHART) the price data of this symbol are loaded. Each symbol panel has color that shows the current trend of the timeframe specified. The colors are:

  • Red color - downtrend (value of Stohastic > 80);
  • Green color - uptrend (value of Stohastic < 20);
  • Grey color - flat (the value of Stohastic between 20 and 80);
  • Sand color - the price data on the symbol are absent.

The trading functions for the buttons Buy and Sell is not implemented, you can do it yourself as you need. The function for trend determination GetColorOfSymbol () also can be rewritten as you like. The code was written long ago, and quite possibly not optimized (especially for access to the indicator and price data). All the classes used are included, put them in the same folder with TradePad_Sample.mq5 expert.


Translated from Russian by MetaQuotes Software Corp.
Original code:

ObjChartSample ObjChartSample

The script illustrates control of chart properties using the classes from the Standard Library (CChart).

SphereSample SphereSample

The script illustrates control of graphic objects using the classes from the Standard Library.

Fractal Adaptive Moving Average (FrAMA) Fractal Adaptive Moving Average (FrAMA)

The advantage of FRAMA is the possibility to follow strong trend movements and to sufficiently slow down at the moments of price consolidation.

Double Exponential Moving Average (DEMA) Double Exponential Moving Average (DEMA)

It is used for smoothing price series and is applied directly on a price chart of a financial security.