79 lines
2.9 KiB
MQL5
79 lines
2.9 KiB
MQL5
|
//+------------------------------------------------------------------+
|
||
|
//| Dumb5.mq5 |
|
||
|
//| Eduardo Zucarato |
|
||
|
//| zucarato@gmail.com |
|
||
|
//+------------------------------------------------------------------+
|
||
|
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Preprocessing statements |
|
||
|
//+------------------------------------------------------------------+
|
||
|
|
||
|
//--- metadata
|
||
|
#property copyright "Eduardo Zucarato"
|
||
|
#property link "zucarato@gmail.com"
|
||
|
#property version "1.00"
|
||
|
|
||
|
//--- included files
|
||
|
#include "Zucarato_Time_Operations.mqh" //Time operations custom
|
||
|
//functions
|
||
|
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Global variables declaration |
|
||
|
//+------------------------------------------------------------------+
|
||
|
datetime trade_entrance_time_limit=0;
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| 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)
|
||
|
{
|
||
|
//---
|
||
|
|
||
|
}
|
||
|
|
||
|
//+------------------------------------------------------------------+
|