MT5 D1/H1 15-Pip Pending Signal Indicator
This indicator compares the current D1 and H1 state against historical cases, then tests pending-order styles to find whether Buy Limit, Sell Limit, Buy Stop or Sell Stop has the strongest data-backed plan.

What Makes It Different
Instead of printing a market buy or sell, the engine evaluates pending-order alternatives. It scans H1 and D1 history, builds nearest cases, simulates whether an order would have filled, then checks if TP or SL would have been reached first inside the configured test window.
Buy Stop, Sell Stop, Buy Limit and Sell Limit are compared separately.
Daily regime, previous day behavior, H1 momentum, session and range position are part of the match.
Separates “would this trade win” from “would this pending order even trigger.”
Ranks plans by win rate, profit factor, expectancy, score and recent sample behavior.
Limited Source Snapshot
input double InpTakeProfitPips = 15.0; input int InpD1BarsToRead = 1100; input int InpH1BarsToRead = 26000; input double InpMinimumProfitFactor = 1.15; input bool InpUseAdvancedPatterns = true; int BuildNeighbors(...); void EvaluateSetup(...); int SimulateOrder(...);
How to Read the Result
If the panel says BEST FORECAST: BUY LIMIT, it means the strongest historical plan among the tested pending-order styles was a buy limit at the printed entry level with the shown TP and SL. The fill chance tells whether similar pending orders usually triggered. TP chance tells whether triggered orders reached the target before the stop. PF means profit factor across the tested historical sample.