MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Subscribe to signal
EASY DAILY
27.01%, 255.79 EUR
Redforex L2012Redforex L2012 Try product
Redforex L2012
Author: redmix
Three Line Break Indicator
Three Line Break
Author: Rone
Screenshot
AUDUSD, H4
Demo
MQL5 Cookbook: Position Properties on the Custom Info Panel MQL5 Cookbook: Position Properties on the Custom Info Panel

OnEvent

Chart event handler.

virtual bool  OnEvent(
   const int      id,         // ID
   const long&    lparam,     // event parameter of long type
   const double&  dparam,     // event parameter of double type
   const string&  sparam      // event parameter of string type
   )

Parameters

id

[in]  Event ID.

lparam

[in]  Event parameter of long type, passed by reference.

dparam

[in]  Event parameter of double type, passed by reference.

sparam

[in]  Event parameter of string type, passed by reference.

Returned value

true - if the event has been processed, otherwise false.


Updated: 2012.04.06