TF-altProjekte/Experts/Test TM/PTestC1.mqh
super.admin 84cd1a7ab0 convert
2025-05-30 16:31:33 +02:00

78 lines
2.9 KiB
MQL5

//+------------------------------------------------------------------+
//| PTestC1.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"
#include "PTestC4.mqh"
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class PTestC1
{
private:
PTestC2 *test1;
PTestC3 test13;
PTestC4 test14;
//PTestC2 *test19;
public:
PTestC1();
~PTestC1();
virtual void init(void);
virtual void deinit(void);
virtual void ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam);
};
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
PTestC1::PTestC1()
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
PTestC1::~PTestC1()
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void PTestC1::init(void)
{
//if(test1!=NULL)
// {
// delete test1;
// test1=NULL;
// }
//test1=new PTestC2();
if(test1==NULL)
test1=GetPointer(trade);
test13.init();
test14.init();
//test19.PTestC2(test1);
//GetPointer()
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void PTestC1::deinit(void)
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void PTestC1::ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
{
if(test1.GetText()=="")
test1.SetText("Test1 aus 1");
//Print(__FUNCTION__);
//test1.ChartEvent(id,lparam,dparam,sparam);
test13.ChartEvent(id,lparam,dparam,sparam);
test14.ChartEvent(id,lparam,dparam,sparam);
}
//+------------------------------------------------------------------+