last ...
This commit is contained in:
@@ -5303,7 +5303,15 @@ private:
|
||||
int positionsCount = mTrader.GetPositions(positions);
|
||||
if (!IsValidSize(positionsCount))
|
||||
{
|
||||
//
|
||||
mForce = false;
|
||||
|
||||
//
|
||||
datetime cTime = TimeCurrent();
|
||||
string message = "Exit From Force State: " + ToString(cTime);
|
||||
|
||||
//
|
||||
// Log(message);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5315,7 +5323,32 @@ private:
|
||||
);
|
||||
|
||||
//
|
||||
mForce = marigin >= forceMargin && oldestAge >= 288;
|
||||
// Check Force State ...
|
||||
bool isForce = marigin >= forceMargin && oldestAge >= 288;
|
||||
if (!isForce)
|
||||
{
|
||||
//
|
||||
if (mForce)
|
||||
{
|
||||
//
|
||||
mForce = false;
|
||||
|
||||
//
|
||||
datetime cTime = TimeCurrent();
|
||||
string message = "Exit From Force State: " + ToString(cTime);
|
||||
|
||||
//
|
||||
// Log(message);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
mForce = true;
|
||||
}
|
||||
|
||||
//
|
||||
// Prevent Moving Forward From Non Force State ...
|
||||
if (!mForce)
|
||||
{
|
||||
return;
|
||||
@@ -5347,7 +5380,7 @@ private:
|
||||
}
|
||||
|
||||
//
|
||||
Log("symbolPositionsCount: " + ToString(symbolPositionsCount));
|
||||
// Log("symbolPositionsCount: " + ToString(symbolPositionsCount));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user