Attach Trade Handler to EA Class ...

This commit is contained in:
2024-11-03 17:03:14 +03:30
parent 56b2e11bfc
commit 7f1f0cd4e5
6 changed files with 5048 additions and 597 deletions
+36 -6
View File
@@ -233,9 +233,9 @@ class XCBaseExpert : public XSCBaseAlert
*
* @return ( bool )
*/
bool AllowLomg()
bool AllowLong()
{
return mAllowLomg;
return mAllowLong;
}
/**
@@ -243,9 +243,9 @@ class XCBaseExpert : public XSCBaseAlert
*
* @param value: Boolean ...
*/
void AllowLomg(bool value)
void AllowLong(bool value)
{
mAllowLomg = value;
mAllowLong = value;
}
/**
@@ -484,7 +484,7 @@ class XCBaseExpert : public XSCBaseAlert
//
// Signalling ...
Disabled(false);
AllowLomg(true);
AllowLong(true);
AllowShort(true);
//
@@ -694,6 +694,36 @@ class XCBaseExpert : public XSCBaseAlert
HandleReportBalance();
}
/**
* Handle Position Modified ...
*
* @param ticket: ULONG ...
* @param profit: Double ...
* @param comment: String ...
*/
virtual void HandleOnPositionModified(
const ulong ticket,
const double profit,
const string comment //
)
{
}
/**
* Handle Position Partially Closed ...
*
* @param ticket: ULONG ...
* @param profit: Double ...
* @param comment: String ...
*/
virtual void HandleOnPositionPartialClosed(
const ulong ticket,
const double profit,
const string comment //
)
{
}
/**
* Do All Signalling Processing Here ...
*/
@@ -838,7 +868,7 @@ class XCBaseExpert : public XSCBaseAlert
//
// Signalling ...
bool mDisabled; // Force Disable Signalling ...
bool mAllowLomg; // Allow Long Signals ...
bool mAllowLong; // Allow Long Signals ...
bool mAllowShort; // Allow Short Signals ...
//