Last Works ...
This commit is contained in:
@@ -535,6 +535,11 @@ class XCX121SMCBaseStrategy : public XSCBaseAlert
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool useSwings = true;
|
||||
bool useMomentumBars = true;
|
||||
bool useRejectionBars = true;
|
||||
|
||||
//
|
||||
Clean(candidates);
|
||||
|
||||
@@ -547,27 +552,39 @@ class XCX121SMCBaseStrategy : public XSCBaseAlert
|
||||
|
||||
//
|
||||
// Swing Lows ...
|
||||
Copy(
|
||||
conditions.swingLows,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useSwings)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.swingLows,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Bullish Momentum Bars ...
|
||||
Copy(
|
||||
conditions.bullishMomentumBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useMomentumBars)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.bullishMomentumBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Bullish Rejection Bars ...
|
||||
Copy(
|
||||
conditions.bullishRejectionBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useRejectionBars)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.bullishRejectionBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
int count = ArraySize(candidateBars);
|
||||
@@ -598,27 +615,39 @@ class XCX121SMCBaseStrategy : public XSCBaseAlert
|
||||
|
||||
//
|
||||
// Swing Highs ...
|
||||
Copy(
|
||||
conditions.swingHighs,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useSwings)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.swingHighs,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Bearish Momentum Bars ...
|
||||
Copy(
|
||||
conditions.bearishMomentumBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useMomentumBars)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.bearishMomentumBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Bearish Rejection Bars ...
|
||||
Copy(
|
||||
conditions.bearishRejectionBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
if (useRejectionBars)
|
||||
{
|
||||
//
|
||||
Copy(
|
||||
conditions.bearishRejectionBars,
|
||||
candidateBars,
|
||||
false //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
int count = ArraySize(candidateBars);
|
||||
|
||||
Reference in New Issue
Block a user