last ...
This commit is contained in:
@@ -2489,6 +2489,12 @@ public:
|
||||
mAlert.SetTerminalAlerts(value);
|
||||
}
|
||||
|
||||
//
|
||||
void SetAlertPrefix(string value)
|
||||
{
|
||||
mAlert.SetPrefix(value);
|
||||
}
|
||||
|
||||
//
|
||||
// Event Listeners ...
|
||||
void AddOnSignalEventHandler(TOnSignal listener)
|
||||
@@ -2501,6 +2507,45 @@ public:
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Alert Functions ...
|
||||
|
||||
//
|
||||
// Logging an Alert ...
|
||||
void LogAlert(string message)
|
||||
{
|
||||
mAlert.LogAlert(message);
|
||||
}
|
||||
|
||||
//
|
||||
// Terminal Alert ...
|
||||
void TerminalAlert(string message)
|
||||
{
|
||||
mAlert.TerminalAlert(message);
|
||||
}
|
||||
|
||||
//
|
||||
// Mail Alert ...
|
||||
void MailAlert(string message)
|
||||
{
|
||||
mAlert.MailAlert(message);
|
||||
}
|
||||
|
||||
//
|
||||
// Send Push Notification ...
|
||||
void PushAlert(string message)
|
||||
{
|
||||
mAlert.PushAlert(message);
|
||||
}
|
||||
|
||||
//
|
||||
// Send an Alert by Handling all Different Specified
|
||||
// type's of Alert's if they are Enabled ...
|
||||
void Alert(string message)
|
||||
{
|
||||
mAlert.Alert(message);
|
||||
}
|
||||
|
||||
//
|
||||
// Overrides ...
|
||||
|
||||
|
||||
@@ -94,6 +94,9 @@ int OnInit()
|
||||
//
|
||||
// TesterHideIndicators(true);
|
||||
|
||||
//
|
||||
mX121EA.Alert(ShortName + " Initialized Sccessfully ...");
|
||||
|
||||
//
|
||||
// Init Succeed ...
|
||||
return INIT_SUCCEEDED;
|
||||
@@ -117,6 +120,7 @@ void OnDeinit(const int reason)
|
||||
|
||||
//
|
||||
// De Initialize X121EA Providers ...
|
||||
mX121EA.Alert(ShortName + " Deinitialized ...");
|
||||
}
|
||||
|
||||
//
|
||||
@@ -215,6 +219,9 @@ bool InitialEA()
|
||||
x121EAMinProfitPerVolumeFactor // Min Volume Factor for Calculating Profit (Hedge)
|
||||
);
|
||||
|
||||
//
|
||||
mX121EA.SetAlertPrefix(ShortName);
|
||||
|
||||
//
|
||||
// Prepare Providers and Add them into mX121EA class ...
|
||||
for (int i = 0; i < symbolsCount; i++)
|
||||
|
||||
Reference in New Issue
Block a user