last ...
This commit is contained in:
@@ -224,7 +224,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
// Detectiong Signal Boxes ...
|
||||
hasWaitingBoxes = workingZone
|
||||
.DetectSignalBoxes(
|
||||
X_CYCLE_ANALYSE,
|
||||
X_CYCLE_DECISION,
|
||||
provider,
|
||||
zIndex //
|
||||
);
|
||||
@@ -464,58 +464,59 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
//
|
||||
// Select and Provide SL Based on ...
|
||||
double iAtr = 0;
|
||||
if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_MA)
|
||||
if (signalProvider == X121SMC_XWZ_PROVIDER_XHKMA)
|
||||
{
|
||||
//
|
||||
iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
iAtr *= 1.5;
|
||||
iAtr *= 0;
|
||||
}
|
||||
else if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_BOX)
|
||||
{
|
||||
//
|
||||
iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
iAtr *= 1.5;
|
||||
// else
|
||||
// if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_BOX)
|
||||
// {
|
||||
// //
|
||||
// iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
// iAtr *= 1.5;
|
||||
|
||||
// //
|
||||
// if (isBullish)
|
||||
// {
|
||||
// //
|
||||
// iSL = MathMin(
|
||||
// provider.decisionXConditions.le1Buffer[1],
|
||||
// provider.decisionXConditions.le2Buffer[1] //
|
||||
// );
|
||||
// if (iSL > 0)
|
||||
// {
|
||||
// //
|
||||
// Add(
|
||||
// iSL,
|
||||
// sls //
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //
|
||||
// iSL = MathMax(
|
||||
// provider.decisionXConditions.se1Buffer[1],
|
||||
// provider.decisionXConditions.se2Buffer[1] //
|
||||
// );
|
||||
// if (iSL > 0)
|
||||
// {
|
||||
// //
|
||||
// Add(
|
||||
// iSL,
|
||||
// sls //
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
}
|
||||
else if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_AREA)
|
||||
{
|
||||
//
|
||||
iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
iAtr *= 1.5;
|
||||
}
|
||||
// // //
|
||||
// // if (isBullish)
|
||||
// // {
|
||||
// // //
|
||||
// // iSL = MathMin(
|
||||
// // provider.decisionXConditions.le1Buffer[1],
|
||||
// // provider.decisionXConditions.le2Buffer[1] //
|
||||
// // );
|
||||
// // if (iSL > 0)
|
||||
// // {
|
||||
// // //
|
||||
// // Add(
|
||||
// // iSL,
|
||||
// // sls //
|
||||
// // );
|
||||
// // }
|
||||
// // }
|
||||
// // else
|
||||
// // {
|
||||
// // //
|
||||
// // iSL = MathMax(
|
||||
// // provider.decisionXConditions.se1Buffer[1],
|
||||
// // provider.decisionXConditions.se2Buffer[1] //
|
||||
// // );
|
||||
// // if (iSL > 0)
|
||||
// // {
|
||||
// // //
|
||||
// // Add(
|
||||
// // iSL,
|
||||
// // sls //
|
||||
// // );
|
||||
// // }
|
||||
// // }
|
||||
// }
|
||||
// else if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_AREA)
|
||||
// {
|
||||
// //
|
||||
// iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
// iAtr *= 1.5;
|
||||
// }
|
||||
|
||||
//
|
||||
// Select Condition SL ...
|
||||
|
||||
Reference in New Issue
Block a user