Attach Trade Handler to EA Class ...
This commit is contained in:
@@ -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 ...
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user