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

65 lines
2.5 KiB
MQL5

//+------------------------------------------------------------------+
//| PTestC3.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"
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class PTestC3
{
private:
PTestC2 *test1;
//PTestC2 test3;
public:
PTestC3();
//PTestC3(PTestC2 *aPointer)
//{
// test1=aPointer;
//}
~PTestC3();
virtual void init(); //PTestC2 *atest);
virtual void deinit(void);
virtual void ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam);
};
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
PTestC3::PTestC3()
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
PTestC3::~PTestC3()
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void PTestC3::init() //PTestC2 *atest)
{
test1=GetPointer(trade);
//te
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void PTestC3::ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
{
//if(test1.GetText()=="")
test1.SetText("Test1 aus 3");
//if(test3.GetText()=="")
// test3.SetText("Test3 aus 3");
//Print(__FUNCTION__);
//test1.ChartEvent(id,lparam,dparam,sparam);
//test3.ChartEvent(id,lparam,dparam,sparam);
}
//+------------------------------------------------------------------+