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