The "Test_ChartEvent.mq4" Expert Advisor is an example demonstrating the various types of ChartEvent: keyboard keys events, mouse click & move events, custom events. You can press the 'H' key for help and press the 'M' key to enter the MOUSE_MOVE event mode.
The source code works both in MetaTrader 4 and MetaTrader 5.
Three types of custom events are defined:
This function creates the custom ChartEvent periodically. And the function randomly generates these three custom events (cMyEvent_1, cMyEvent_2 and cMyEvent_3_broadcast). In particular, the cMyEvent_3_broadcast event is generated for all open chart windows.
Class "CObjectMan" is created to handle the functionality for objects on a chart. Two instances (variables) of the class are declared: gObjectMan1 and gObjectMan2.
The names of the Graphic Objects linked to these two instances are respectively: "Green Button" and "Yellow Button".
The "CHARTEVENT_KEYDOWN" events:
Print information about these events. Especially for the MyEvent_3_broadcast event.
You can perform the following tests:
Trailing stop allows you to automatically protect the profits with your positions. It adjusts itself according to the current market rate and the amount of pips you give it to trail behind.Currency Strength EA
This EA opens Buy or Sell trades in strongest or weakest pair. It cannot be backtested.
Tipu MACD is one the popular indicators in the Market. The original code for Tipu MACD is modified by removing compatibility with Tipu Panel. This version of Tipu MACD is open for everyone who is interested in developing an Expert Advisor.Binary Options Simulated Trading Indicator for MT4
This is a binary options simulated trading indicator on MetaTrader 4 client, novice traders can use to practice trading strategies, program interface have simplified Chinese and English.