Last Works ...
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// SaherElm IT Center XTest MQL5 Expert Advisor
|
||||
// -------------------------------------------------
|
||||
// Name: XPanelEA
|
||||
// Name: X121SMCEA
|
||||
// Description: an Exper Advisor which used Panels
|
||||
//
|
||||
// Maintainer:
|
||||
@@ -15,11 +15,11 @@
|
||||
#property copyright "Copyright 2023, SaherElm IT Center"
|
||||
#property link "https://saherelm.ir"
|
||||
#property version "1.00"
|
||||
#property description "SaherElm XPanelEA"
|
||||
#property description "SaherElm X121SMCEA"
|
||||
#property strict
|
||||
|
||||
//
|
||||
#define ShortName "XPANELEA"
|
||||
#define ShortName "X121SMCEA"
|
||||
|
||||
//
|
||||
// Imports ...
|
||||
@@ -27,20 +27,7 @@
|
||||
#include "../Classes/x-saherelm.xtrade.class.mq5"
|
||||
#include "../Helpers/x-saherelm.xcc.helper.mq5"
|
||||
#include "../Helpers/x-saherelm.xct.helper.mq5"
|
||||
|
||||
//
|
||||
// Undifine and Redfine Dialog Styles ...
|
||||
|
||||
// //
|
||||
// #include <Controls/Defines.mqh>
|
||||
|
||||
// //
|
||||
// // Here we can Do all Styling ...
|
||||
// #undef CONTROLS_DIALOG_COLOR_CLIENT_BG
|
||||
// #define CONTROLS_DIALOG_COLOR_CLIENT_BG clrMagenta
|
||||
|
||||
// //
|
||||
// #include <Controls/Dialog.mqh>
|
||||
#include "../X121SMCEA/Classes/x-121.smc.ea.panel.class.mq5"
|
||||
|
||||
//
|
||||
// Inputs ...
|
||||
@@ -75,15 +62,13 @@ input bool eaReportNewHours = false; // Report New Hours
|
||||
// Define Local Variables ...
|
||||
|
||||
//
|
||||
string eaLogTag; // EA Log Prefix ...
|
||||
XSCAlert *eaAlert; // Alert Provider for Expert Adviser ...
|
||||
XSCTrade *eaTrader; // Trader of Expert Adviser ...
|
||||
XTimeTracker eaTimeTracker; // Time Tracker for Providing Reports ...
|
||||
XSCXCTHelper *eaCTHelper; // Bar Timer Indicator Helper class ...
|
||||
XSCXCCHelper *eaCCHelper; // Chart Styler Indicator Helper Class ...
|
||||
|
||||
//
|
||||
// CAppDialog eaMainWindow; // EA Main Dialog ...
|
||||
string eaLogTag; // EA Log Prefix ...
|
||||
XSCAlert *eaAlert; // Alert Provider for Expert Adviser ...
|
||||
XSCTrade *eaTrader; // Trader of Expert Adviser ...
|
||||
XTimeTracker eaTimeTracker; // Time Tracker for Providing Reports ...
|
||||
XSCXCTHelper *eaCTHelper; // Bar Timer Indicator Helper class ...
|
||||
XSCXCCHelper *eaCCHelper; // Chart Styler Indicator Helper Class ...
|
||||
X121CAppDialog eaMainWindow; // EA Main Dialog ...
|
||||
|
||||
//
|
||||
// Event Handlers ...
|
||||
@@ -204,7 +189,7 @@ void OnChartEvent(
|
||||
{
|
||||
//
|
||||
// Apply Chart Event on Main Window ...
|
||||
// eaMainWindow.ChartEvent(id, lparam, dparam, sparam);
|
||||
eaMainWindow.ChartEvent(id, lparam, dparam, sparam);
|
||||
|
||||
//
|
||||
// Handle OnClick Event ...
|
||||
@@ -429,29 +414,25 @@ bool InitGUI()
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
// //
|
||||
// // Initialize Application Main Window ...
|
||||
// result = eaMainWindow.Create(
|
||||
// ChartID(),
|
||||
// ShortName, // Dialog Name ...
|
||||
// 0, // SubWindow ...
|
||||
// 10, // X1 ...
|
||||
// 35, // Y1 ...
|
||||
// 300, // X2 ...
|
||||
// 200 // Y2 ...
|
||||
// );
|
||||
|
||||
// //
|
||||
// // Configuring Dialog ...
|
||||
// eaMainWindow.Control(3).Hide(); // Hide Minimize Button ...
|
||||
// eaMainWindow.Control(5).Hide(); // Hide Close Button ...
|
||||
result = true;
|
||||
//
|
||||
// Initialize Application Main Window ...
|
||||
result = eaMainWindow.Create(
|
||||
ChartID(),
|
||||
ShortName, // Dialog Name ...
|
||||
0, // SubWindow ...
|
||||
10, // X1 ...
|
||||
35, // Y1 ...
|
||||
300, // X2 ...
|
||||
200 // Y2 ...
|
||||
);
|
||||
|
||||
//
|
||||
// Try To Run Main Window ...
|
||||
if (result)
|
||||
{
|
||||
// eaMainWindow.Run();
|
||||
//
|
||||
eaMainWindow.Configure();
|
||||
eaMainWindow.Run();
|
||||
}
|
||||
|
||||
//
|
||||
@@ -473,7 +454,7 @@ void UpdateGUI()
|
||||
void DestroyGUI()
|
||||
{
|
||||
//
|
||||
// eaMainWindow.Destroy();
|
||||
eaMainWindow.Destroy();
|
||||
}
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user