Add file-prefix isolation and strict split-order parsing

This commit is contained in:
Hiroaki86
2026-05-30 00:56:18 +09:00
parent 3d853fa67a
commit 265d378e07
13 changed files with 513 additions and 116 deletions
+8 -2
View File
@@ -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;