complete break even risk free ...
This commit is contained in:
@@ -724,6 +724,33 @@ class XCBaseExpert : public XCBaseAlert
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle Deals Changed ...
|
||||
*
|
||||
* @param count: Integer, Number of Changes ...
|
||||
*/
|
||||
virtual void HandleOnDealsChanged(int count)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle Orders Changed ...
|
||||
*
|
||||
* @param count: Integer, Number of Changes ...
|
||||
*/
|
||||
virtual void HandleOnOrdersChanged(int count)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle Positions Changed ...
|
||||
*
|
||||
* @param count: Integer, Number of Changes ...
|
||||
*/
|
||||
virtual void HandleOnPositionsChanged(int count)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Do All Signalling Processing Here ...
|
||||
*/
|
||||
|
||||
@@ -1083,7 +1083,7 @@ class XCTrade : public XCBase
|
||||
{
|
||||
//
|
||||
// Retrieve Signal Spread ...
|
||||
double spread = mSignal.GetSpread();
|
||||
double spread = GetSpread(mSignal.symbol);
|
||||
result = spread <= mMaxAllowedSpread;
|
||||
}
|
||||
|
||||
@@ -2145,8 +2145,11 @@ class XCTrade : public XCBase
|
||||
)
|
||||
{
|
||||
//
|
||||
return result
|
||||
.ByIndex(index);
|
||||
bool isInited = result
|
||||
.ByIndex(index);
|
||||
|
||||
//
|
||||
return isInited;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -2157,8 +2160,11 @@ class XCTrade : public XCBase
|
||||
)
|
||||
{
|
||||
//
|
||||
return result
|
||||
.ByTicket(ticket);
|
||||
bool isInited = result
|
||||
.ByTicket(ticket);
|
||||
|
||||
//
|
||||
return isInited;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user