56 lines
2.1 KiB
MQL4
56 lines
2.1 KiB
MQL4
|
//+------------------------------------------------------------------+
|
||
|
//| ChartTest.mq5 |
|
||
|
//| Thorsten Fischer Copyright 2019 |
|
||
|
//| https://www.tfsystem.de |
|
||
|
//+------------------------------------------------------------------+
|
||
|
#property copyright "Thorsten Fischer Copyright 2019"
|
||
|
#property link "https://www.tfsystem.de"
|
||
|
#property version "1.00"
|
||
|
#property strict
|
||
|
#include "AppChartTest.mqh"
|
||
|
CAppChartTest appcharttest;
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert timer function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnTimer()
|
||
|
{
|
||
|
//---
|
||
|
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert tick function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnTick()
|
||
|
{
|
||
|
//---
|
||
|
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| ChartEvent function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnChartEvent(const int id,
|
||
|
const long &lparam,
|
||
|
const double &dparam,
|
||
|
const string &sparam)
|
||
|
{
|
||
|
//---
|
||
|
appcharttest.OnEvent(id,lparam,dparam,sparam);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert deinitialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnDeinit(const int reason)
|
||
|
{
|
||
|
//---
|
||
|
appcharttest.Destroy(reason);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert initialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
int OnInit()
|
||
|
{
|
||
|
//---
|
||
|
return(appcharttest.OnInitEvent());
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|