62 lines
2.5 KiB
MQL5
62 lines
2.5 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| PTestC4.mqh |
|
|
//| Thorsten Fischer Copyright 2020 |
|
|
//| https://mql5.tfsystem.de |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "Thorsten Fischer Copyright 2020"
|
|
#property link "https://mql5.tfsystem.de"
|
|
#property version "1.00"
|
|
#include "PTestC2.mqh"
|
|
//#include "PTestC3.mqh"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
class PTestC4
|
|
{
|
|
private:
|
|
PTestC2 *test1;
|
|
//PTestC2 *test4;
|
|
//PTestC3 test3;
|
|
|
|
public:
|
|
PTestC4();
|
|
~PTestC4();
|
|
virtual void init(); //PTestC2 *atest);
|
|
virtual void deinit(void);
|
|
virtual void ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam);
|
|
};
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
PTestC4::PTestC4()
|
|
{
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
PTestC4::~PTestC4()
|
|
{
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
void PTestC4::init() //PTestC2 *atest)
|
|
{
|
|
test1=GetPointer(trade);
|
|
//test3.PTestC3(atest);
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
void PTestC4::ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
|
|
{
|
|
//if(test1.GetText()=="")
|
|
test1.SetText("Test1 aus 4");
|
|
//if(test4.GetText()=="")
|
|
// test4.SetText("Test4 aus 4");
|
|
//Print(__FUNCTION__);
|
|
//test1.ChartEvent(id,lparam,dparam,sparam);
|
|
//test4.ChartEvent(id,lparam,dparam,sparam);
|
|
}
|
|
//+------------------------------------------------------------------+
|