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

2015.08.26 10:54
CWndContainer Replacement

CWndContainer Replacement - library for MetaTrader 5

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

Published by:
Doerk Hilger
votes: 21

Real author:

Original by MetaQuotes Software Corp. Modifications by Doerk.


This file replaces the WndContainer.mqh original file. One new function and two small modifications prevent the chart from being affected, when you click and hold the mouse inside a container window, i.e. when you press a button which is placed inside a dialogue, move a slider or anything similar. The replacement works also with the CDialog class and should not affect anything in a negative way.

The easiest way is to replace the original file, but please create a backup from the original, just in case if you encounter any problems which I currently could not find.


  • Please backup your original WndContainer.mqh file first.
  • New function: VerifyMouseFocus() — private, called automatically.
  • Modified: OnEvent() and OnMouseEvent() which are used for any interactions.
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.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.