This commit is contained in:
2025-05-19 15:13:49 +03:30
parent ebc437a2f2
commit 8451bcdd6e
5 changed files with 2794 additions and 200 deletions
@@ -1595,4 +1595,53 @@ bool DetectTriggerBlock(
return result;
};
bool DetectTriggerBlock1(
XBoxZone &triggerBlock,
XCAEAConditions &conditions,
XCXCAEAHelper *helper,
XCAEATriggerBlockConfiguration &config,
int bar_index = 0,
int loopback = 6 //
) {
//
bool result = false;
//
conditions.Clean();
triggerBlock.Clean();
//
// Normalize Args ...
loopback = NormalizeInt(loopback, 6);
bar_index = NormalizeInt(bar_index, 0);
//
// Validate Args ...
result = helper != NULL;
if (!result)
{
return result;
}
//
// Provide base Requirements ...
//
string symbol = helper.GetSymbol();
double points = GetPoints(symbol);
ENUM_TIMEFRAMES period = helper.GetPeriod();
//
// Conditions Reading Indexes ...
int zIDX = 0;
int cIDX = zIDX + 1;
int pIDX = cIDX + 1;
int p2IDX = pIDX + 1;
int p3IDX = p2IDX + 1;
int p4IDX = p3IDX + 1;
//
return result;
}
//