last ...
This commit is contained in:
@@ -3498,13 +3498,13 @@ public:
|
||||
}
|
||||
|
||||
//
|
||||
double MinFreeMargingForHandleForce()
|
||||
double MinFreeMargingForOpenTrades()
|
||||
{
|
||||
return mMinFreeMargingForHandleForce;
|
||||
return mMinFreeMargingForOpenTrades;
|
||||
}
|
||||
|
||||
//
|
||||
void MinFreeMargingForHandleForce(double value)
|
||||
void MinFreeMargingForOpenTrades(double value)
|
||||
{
|
||||
//
|
||||
if (value < 0)
|
||||
@@ -3513,7 +3513,7 @@ public:
|
||||
}
|
||||
|
||||
//
|
||||
mMinFreeMargingForHandleForce = value;
|
||||
mMinFreeMargingForOpenTrades = value;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -4691,7 +4691,7 @@ protected:
|
||||
{
|
||||
//
|
||||
double freeMargin = mTrader.mAccount.GetFreeMargin();
|
||||
double minFreeMargingForHandleForce = MinFreeMargingForHandleForce();
|
||||
double minFreeMargingForHandleForce = MinFreeMargingForOpenTrades();
|
||||
|
||||
//
|
||||
bool result = minFreeMargingForHandleForce <= 0
|
||||
@@ -4774,11 +4774,11 @@ private:
|
||||
// - Increase Volume Size of in Profit Positions;
|
||||
// - etc ...
|
||||
// bool mForceState; // Determine in Force State or not
|
||||
int mDelayBetweenTwoSignal; // Delay between two same signal
|
||||
int mMaxPositionsForce; // Max Number of Positions For Guard Handling
|
||||
double mMaxDrawdownForce; // Force Handling State on Drawdown for Guard
|
||||
bool mAllowSymbolHedgeOnForce; // Allow Symbol Hedging on Force States
|
||||
double mMinFreeMargingForHandleForce; // Min Free Margin for Force States
|
||||
int mDelayBetweenTwoSignal; // Delay between two same signal
|
||||
int mMaxPositionsForce; // Max Number of Positions For Guard Handling
|
||||
double mMaxDrawdownForce; // Force Handling State on Drawdown for Guard
|
||||
bool mAllowSymbolHedgeOnForce; // Allow Symbol Hedging on Force States
|
||||
double mMinFreeMargingForOpenTrades; // Min Free Margin for Open Trades
|
||||
|
||||
//
|
||||
XTradeHandler *mTradeHandler; // Handle all Event which related to Signals and Positions
|
||||
@@ -5042,7 +5042,7 @@ private:
|
||||
{
|
||||
//
|
||||
return;
|
||||
|
||||
|
||||
//
|
||||
XPosition positions[];
|
||||
int positionsCount = mTrader.GetPositions(positions);
|
||||
|
||||
Reference in New Issue
Block a user