apply fix ...
This commit is contained in:
@@ -4532,10 +4532,13 @@ public:
|
||||
|
||||
//
|
||||
// Check Signal Delay Passed ...
|
||||
isSignalValid = IsSignalDelayPassed(
|
||||
iSignal,
|
||||
symbolPositions[symbolIDX] //
|
||||
);
|
||||
isSignalValid =
|
||||
!isValidSymbolIDX
|
||||
? true
|
||||
: IsSignalDelayPassed(
|
||||
iSignal,
|
||||
symbolPositions[symbolIDX] //
|
||||
);
|
||||
if (!isSignalValid)
|
||||
{
|
||||
continue;
|
||||
@@ -4548,7 +4551,9 @@ public:
|
||||
//
|
||||
// Close Opposit Positions ...
|
||||
int oppositCount =
|
||||
isLong
|
||||
!isValidSymbolIDX
|
||||
? 0
|
||||
: isLong
|
||||
? symbolPositions[symbolIDX].CountShorts()
|
||||
: symbolPositions[symbolIDX].CountLongs();
|
||||
bool hasOpposit = IsValidSize(oppositCount);
|
||||
@@ -4597,7 +4602,9 @@ public:
|
||||
//
|
||||
// Close Opposit Supports ...
|
||||
int oppositSupportCount =
|
||||
isLong
|
||||
!isValidSymbolIDX
|
||||
? 0
|
||||
: isLong
|
||||
? symbolPositions[symbolIDX].CountShortSupports()
|
||||
: symbolPositions[symbolIDX].CountLongSupports();
|
||||
bool hasOppositSupport = IsValidSize(oppositSupportCount);
|
||||
@@ -4650,7 +4657,9 @@ public:
|
||||
{
|
||||
//
|
||||
int usedCount =
|
||||
!perDirection
|
||||
!isValidSymbolIDX
|
||||
? 0
|
||||
: !perDirection
|
||||
? symbolPositions[symbolIDX].Count()
|
||||
: isLong
|
||||
? symbolPositions[symbolIDX].CountLongs()
|
||||
@@ -4677,6 +4686,8 @@ public:
|
||||
isSignalValid =
|
||||
!hasSameTypeSignal
|
||||
? true
|
||||
: !isValidSymbolIDX
|
||||
? true
|
||||
: isLong
|
||||
? symbolPositions[symbolIDX].longsProfit > 0
|
||||
: symbolPositions[symbolIDX].shortsProfit > 0;
|
||||
@@ -4699,7 +4710,9 @@ public:
|
||||
{
|
||||
//
|
||||
double multiplier =
|
||||
(isLong
|
||||
(!isValidSymbolIDX
|
||||
? 0
|
||||
: isLong
|
||||
? symbolPositions[symbolIDX].CountLongs()
|
||||
: symbolPositions[symbolIDX].CountShorts()) +
|
||||
1;
|
||||
@@ -4722,7 +4735,7 @@ public:
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
result = ArraySize(eSignals);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user