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

2011.09.22 10:26

MyComment - new comments added without deleting existing ones. - library for MetaTrader 5

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

votes: 12
mycomment.mqh (3.76 KB)view
example_2.mq5 (2.21 KB)view


This function outputs a comment in the top left corner of a chart.

New comments are added as a new line without deleting existing ones. Comments also show the current time and the script name. This function can be issued.

At the end only the comments of their own will be deleted.

Class variables

  • SHOW_MQL5ProgramName - if False shows no MQL5 Program Name(default True);
  • SHOW_CurrentLocalTime - if False shows no Current Local Time(default True);
  • chartID - handle to selected chart window(default current chart window).

Class Methods

  • Add_MyComment("Hello");
  • Del_MyComments().

Examples have been added.


Tested on: MetaTrader 5 Build 507 - Windows 7 x64


MyComment - new comments added without deleting existing ones

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.