Add file-prefix isolation and strict split-order parsing
This commit is contained in:
@@ -671,7 +671,7 @@ bool IsM15EntryTimingConfirmed(const int orderType, TickContext &ctx, const doub
|
||||
if(!use_m15_entry_filter)
|
||||
return true;
|
||||
|
||||
if(IsTrendStopOrderType(orderType))
|
||||
if(IsTrendStopOrderType(orderType) && !use_m15_imbalance_confirmation)
|
||||
return true;
|
||||
|
||||
MqlRates rates[];
|
||||
@@ -685,6 +685,9 @@ bool IsM15EntryTimingConfirmed(const int orderType, TickContext &ctx, const doub
|
||||
int last_index = copied - 1;
|
||||
int prev_index = copied - 2;
|
||||
|
||||
if(IsTrendStopOrderType(orderType))
|
||||
return IsM15ImbalanceConfirmationPassed(orderType, rates, copied, last_index);
|
||||
|
||||
double avg_range = AverageM15Range(rates, copied);
|
||||
double min_zone = M15_MIN_ENTRY_ZONE_POINTS * Point();
|
||||
double entry_zone = avg_range * m15_entry_zone_atr_multiplier;
|
||||
@@ -719,7 +722,7 @@ bool IsM15ZoneTimingConfirmed(const int orderType,
|
||||
if(!use_m15_entry_filter)
|
||||
return true;
|
||||
|
||||
if(IsTrendStopOrderType(orderType))
|
||||
if(IsTrendStopOrderType(orderType) && !use_m15_imbalance_confirmation)
|
||||
return true;
|
||||
|
||||
MqlRates rates[];
|
||||
@@ -733,6 +736,9 @@ bool IsM15ZoneTimingConfirmed(const int orderType,
|
||||
int last_index = copied - 1;
|
||||
int prev_index = copied - 2;
|
||||
|
||||
if(IsTrendStopOrderType(orderType))
|
||||
return IsM15ImbalanceConfirmationPassed(orderType, rates, copied, last_index);
|
||||
|
||||
double avg_range = AverageM15Range(rates, copied);
|
||||
double min_zone = M15_MIN_ENTRY_ZONE_POINTS * Point();
|
||||
double entry_zone = avg_range * m15_entry_zone_atr_multiplier;
|
||||
|
||||
Reference in New Issue
Block a user