forked from kelmut/NeuroBook
91 lines
3.1 KiB
MQL5
91 lines
3.1 KiB
MQL5
//+------------------------------------------------------------------+
| |
//| KIYA.mq5 |
| |
//| Copyright 2024, MetaQuotes Ltd. |
| |
//| https://www.mql5.com |
| |
//+------------------------------------------------------------------+
| |
//+------------------------------------------------------------------+
| |
//| Expert initialization function |
| |
//+------------------------------------------------------------------+
| |
int OnInit()
| |
{
| |
//--- create timer
| |
EventSetTimer(60);
| |
| |
//---
| |
return(INIT_SUCCEEDED);
| |
}
| |
//+------------------------------------------------------------------+
| |
//| Expert deinitialization function |
| |
//+------------------------------------------------------------------+
| |
void OnDeinit(const int reason)
| |
{
| |
//--- destroy timer
| |
EventKillTimer();
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| 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);
| |
}
| |
//+------------------------------------------------------------------+
| |
//| ChartEvent function |
| |
//+------------------------------------------------------------------+
| |
void OnChartEvent(const int id,
| |
const long &lparam,
| |
const double &dparam,
| |
const string &sparam)
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
| |
//| BookEvent function |
| |
//+------------------------------------------------------------------+
| |
void OnBookEvent(const string &symbol)
| |
{
| |
//---
| |
| |
}
| |
//+------------------------------------------------------------------+
|