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