93 lines
2.5 KiB
MQL5
93 lines
2.5 KiB
MQL5
|
//+------------------------------------------------------------------+
|
||
|
//| MultiEA.mq5 |
|
||
|
//| Copyright 2022, MetaQuotes Ltd. |
|
||
|
//| https://www.mql5.com |
|
||
|
//+------------------------------------------------------------------+
|
||
|
#include "FDSymbolInfo.mqh"
|
||
|
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| |
|
||
|
//+------------------------------------------------------------------+
|
||
|
int OnInit()
|
||
|
{
|
||
|
EventSetTimer(60);
|
||
|
return(INIT_SUCCEEDED);
|
||
|
}
|
||
|
|
||
|
void OnDeinit(const int reason)
|
||
|
{
|
||
|
EventKillTimer();
|
||
|
}
|
||
|
|
||
|
void OnTimer()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void OnTrade()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void OnTradeTransaction(const MqlTradeTransaction& trans,
|
||
|
const MqlTradeRequest& request,
|
||
|
const MqlTradeResult& result)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
double OnTester()
|
||
|
{
|
||
|
double ret = 0.0;
|
||
|
return(ret);
|
||
|
}
|
||
|
|
||
|
void OnTick()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| 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)
|
||
|
{
|
||
|
//---
|
||
|
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|