This commit is contained in:
2024-12-31 19:57:02 +03:30
parent 6387e45681
commit bd93f81ce1
2 changed files with 8 additions and 44 deletions
@@ -1147,6 +1147,7 @@ bool DetectX121SMCXTWPVSiganlSetup(
// false && // false &&
hasBullishTrend && hasBullishTrend &&
isBullishFiboPassed && isBullishFiboPassed &&
hasConsolidationZone &&
analyseCBar.IsBullish() && analyseCBar.IsBullish() &&
isNewAnalysePeakOverLast && isNewAnalysePeakOverLast &&
conditions.pivot.upper < analysePeak && conditions.pivot.upper < analysePeak &&
@@ -1168,6 +1169,7 @@ bool DetectX121SMCXTWPVSiganlSetup(
// false && // false &&
hasBearishTrend && hasBearishTrend &&
isBearishFiboPassed && isBearishFiboPassed &&
hasConsolidationZone &&
analyseCBar.IsBearish() && analyseCBar.IsBearish() &&
isNewAnalyseValeUnderLast && isNewAnalyseValeUnderLast &&
conditions.pivot.lower > analyseVale && conditions.pivot.lower > analyseVale &&
@@ -123,6 +123,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
string symbol = GetSymbol(); string symbol = GetSymbol();
ENUM_TIMEFRAMES period = GetPeriod(); ENUM_TIMEFRAMES period = GetPeriod();
//
datetime cTime = TimeCurrent();
// //
// Required Value For SL/TP Calculations ... // Required Value For SL/TP Calculations ...
double points = GetPoints(symbol); double points = GetPoints(symbol);
@@ -130,14 +133,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
double pip2 = 2 * pip; double pip2 = 2 * pip;
// //
// Retrieve and Fill Cycle Conditions ... conditions.time = cTime;
result = GetCyclesConditions(conditions); conditions.symbol = symbol;
if (!result) conditions.period = period;
{
//
conditions.Clean();
return result;
}
// //
// Check Spread for Signalling Conditions ... // Check Spread for Signalling Conditions ...
@@ -327,42 +325,6 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// Actions ... // Actions ...
/**
* Retrieve Cycles Conditions ...
*
* @param conditions: X121SMCStrategyConditions instance Reference ...
*
* @return ( bool )
*/
bool GetCyclesConditions(
X121SMCStrategyConditions &conditions //
)
{
//
bool result = false;
//
string symbol = GetSymbol();
ENUM_TIMEFRAMES period = GetPeriod();
//
int zIndex = 0;
int cIndex = zIndex + 1;
int pIndex = cIndex + 1;
int ppIndex = pIndex + 1;
//
datetime cTime = TimeCurrent();
//
conditions.time = cTime;
conditions.symbol = symbol;
conditions.period = period;
//
return result;
}
// //
// Signalling Functions ... // Signalling Functions ...