forked from nique_372/MQLArticles
120 lines
3.8 KiB
MQL4
120 lines
3.8 KiB
MQL4
//+------------------------------------------------------------------+
| |
//| Events.mqh |
| |
//| Niquel y Leo, Copyright 2025. |
| |
//| https://www.mql5.com |
| |
//+------------------------------------------------------------------+
| |
#property copyright "Niquel y Leo, Copyright 2025"
| |
#property link "https://www.mql5.com"
| |
#property strict
| |
| |
| |
/* ---------- Experts
| |
//+------------------------------------------------------------------+
| |
//| Expert initialization function |
| |
//+------------------------------------------------------------------+
| |
int OnInit()
| |
{
| |
//---
| |
| |
//---
| |
return(INIT_SUCCEEDED);
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Expert deinitialization function |
| |
//+------------------------------------------------------------------+
| |
void OnDeinit(const int reason)
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Expert tick function |
| |
//+------------------------------------------------------------------+
| |
void OnTick()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Timer function |
| |
//+------------------------------------------------------------------+
| |
void OnTimer()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Trade function |
| |
//+------------------------------------------------------------------+
| |
void OnTrade()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| TradeTransaction function |
| |
//+------------------------------------------------------------------+
| |
void OnTradeTransaction(const MqlTradeTransaction& trans,
| |
const MqlTradeRequest& request,
| |
const MqlTradeResult& result)
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Tester function |
| |
//+------------------------------------------------------------------+
| |
double OnTester()
| |
{
| |
//---
| |
double ret=0.0;
| |
//---
| |
| |
//---
| |
return(ret);
| |
}
| |
//+------------------------------------------------------------------+
| |
//| TesterInit function |
| |
//+------------------------------------------------------------------+
| |
void OnTesterInit()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| TesterPass function |
| |
//+------------------------------------------------------------------+
| |
void OnTesterPass()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| TesterDeinit function |
| |
//+------------------------------------------------------------------+
| |
void OnTesterDeinit()
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| ChartEvent function |
| |
//+------------------------------------------------------------------+
| |
void OnChartEvent(const int id,
| |
const long &lparam,
| |
const double &dparam,
| |
const string &sparam)
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| BookEvent function |
| |
//+------------------------------------------------------------------+
| |
void OnBookEvent(const string &symbol)
| |
{
| |
//---
| |
| |
}
| |
*/
| |
//+------------------------------------------------------------------+
|