WorkflowsByLeo/Test/First/Main.mqh
Nique_372 270de4275a
2026-04-09 06:52:25 -05:00

39 satır
1,7 KiB
MQL5

//+------------------------------------------------------------------+
//| Main.mqh |
//| Copyright 2025, Niquel Mendoza. |
//| https://www.mql5.com/es/users/nique_372 |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, Niquel Mendoza."
#property link "https://www.mql5.com/es/users/nique_372"
#property strict
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include "..\\..\\Src\\Final\\Orquestador.mqh"
#include "..\\..\\Src\\Steps\\All.mqh"
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class CWfCallBack : public IWorkflowCallback
{
public:
CWfCallBack(void) {}
~CWfCallBack(void) {}
//---
inline uint8_t FlagsCall() const override final { return WORKFLOWBYLEO_CALLBACK_ALL_FLAGS; }
bool OnWorkflowStart() override final
{
Print("Worflow starting");
return true;
}
void OnWorkflowEnd(int code, int step_index) override final
{
Print("Workflow end, res: ", code);
//ExpertRemove(); // Scamos al ea de aqui
}
void OnWorkflowStep(int code, int step_index) override final { PrintFormat("Worflow succes, step: %d, restult code = %d", step_index, code); }
};
//+------------------------------------------------------------------+