This commit is contained in:
2024-11-25 19:00:52 +03:30
parent 042fa88d3a
commit 4b40adf4ef
4 changed files with 506 additions and 118 deletions
+72
View File
@@ -2076,3 +2076,75 @@
// m1.Fill(mOrderFlow[pivotIDX].state);
// }
// }
//////////////////////////////////
/**
* Detect SL Candidates based on Strategy and Conditions ...
*
* @param result: Double array reference ...
* @param entry: Double, Position Entry Price ...
* @param conditions: X121SMCStrategyConditions instance, Provides Configurations ...
* @param type: ENUM_X_POSITION_TYPES member, Specified Position Type ...
*/
void DetectSLCandidates(
double &result[],
double entry,
X121SMCStrategyConditions &conditions,
ENUM_X_POSITION_TYPES type //
) override
{
//
Clean(result);
//
int cIndex = 1;
//
if (entry <= 0 ||
!conditions.IsValid() ||
type == X_POSITION_TYPE_ALL ||
type == X_POSITION_TYPE_NONE)
{
return;
}
//
Add(
conditions.x3vwapConditions.fasts[cIndex],
result //
);
//
Add(
conditions.x3vwapConditions.mids[cIndex],
result //
);
//
Add(
conditions.x3vwapConditions.slows[cIndex],
result //
);
//
Add(
conditions.x3maConditions.fasts[cIndex],
result //
);
//
Add(
conditions.xpvConditions.vales[cIndex],
result //
);
//
Add(
conditions.xpvConditions.peaks[cIndex],
result //
);
//
}