58 lines
2.1 KiB
MQL4
58 lines
2.1 KiB
MQL4
|
//+------------------------------------------------------------------+
|
||
|
//| TestColor.mq5 |
|
||
|
//| Copyright 2019, MetaQuotes Software Corp. |
|
||
|
//| https://www.mql5.com |
|
||
|
//+------------------------------------------------------------------+
|
||
|
#property copyright "Thorsten Fischer Copyright 2019"
|
||
|
#property link "https://www.tfsystem.de"
|
||
|
#property version "1.00"
|
||
|
#property strict
|
||
|
|
||
|
#include "AppTestColor.mqh"
|
||
|
|
||
|
CAppTestColor apptestcolor;
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| 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)
|
||
|
{
|
||
|
//---
|
||
|
apptestcolor.OnEvent(id,lparam,dparam,sparam);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert deinitialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnDeinit(const int reason)
|
||
|
{
|
||
|
//---
|
||
|
apptestcolor.Destroy(reason);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert initialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
int OnInit()
|
||
|
{
|
||
|
//---
|
||
|
return(apptestcolor.OnInitEvent());
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|