last ...
This commit is contained in:
@@ -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 //
|
||||
);
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user