Engine · Why
GridSense: the reason behind every decision.
GridSense is the Hydra Vision engine that records why. Every decision the other engines make goes to GridSense with its reason. It processes that record and hands it on.
Why it was built
GridSense was built because PCL and SmartEntry were recalculating so much that the overall view of a grid was getting lost. A grid can have dozens of events, from the anchor opening, through PCL closes and trailing stops, to the last position closing. Read one at a time, they are hard to follow. Read together, they tell the story of the grid.
There was a second reason. MetaTrader 5 records deals: what opened, what closed, at what price. It cannot know which engine closed a position or why. Only the EA knows what it was doing, so the EA has to record it.
How it works
GridSense collects data on positions, grid snapshots, grid lifecycles, the account and the market. Most of it is gathered while a grid runs, from the moment its anchor opens until its last position closes. That runtime data is then merged into longer-term statistics for the account, symbol and configuration.
It also tracks the market context around each grid. A grid with no context is just a sequence of mechanical events. With context, patterns in how grids behave on a given asset can be studied over time.
GridSense hands its record on to three places:
- The backtest report. GridSense was built to replace MetaTrader's Strategy Tester report. At the end of a backtest it prints a summary to the Journal and, if you switch the export on, writes a report file you can upload to Backtest Analysis.
- Live Analytics. On a live account, the same events feed Live Analytics, so live trading is measured the same way as a backtest.
- The engines. PCL and SmartEntry read GridSense's measures of the grid when they decide.
GridSense also feeds the panel on your MetaTrader chart, and saves its state to a file so its lifetime records survive a terminal or VPS restart.
An example reading: Grid Density
One of the readings GridSense provides is Grid Density, a measure of how compact a grid is:
Grid Density = open positions ÷ (grid span ÷ minimum step)
For example, 4 open positions in a grid spanning 110 pips, with a 20-pip minimum step, gives 4 ÷ (110 ÷ 20) = 73%. Grid Density is one of the readings behind grid health, re-entry gating and de-risking.
The settings, at a high level
GridSense mostly runs without settings of its own. The ones you will meet are about where its output goes:
- Export Backtest Report: writes the backtest report file for upload to the platform.
- Export Hydra Replay file: writes a backtest's candles, positions and grid events to a file the Replay player can play back.
- Display settings: what the chart panel shows.
These describe your terminal, not your strategy, so they are in neither the Strategy Print nor the Tuning Print.
From engine to platform
GridSense was built to replace the MetaTrader report. Its record then became the base of the platform: Backtest Analysis, Compare, Portfolio, Replay and Live Analytics all read what GridSense recorded.
Read the guides
- GridSense concepts
- Advanced Analysis by GridSense
- Strategy Tester Journal Print
- JSON Backtest Export
- Persistence and restarts
See it on a demo account. The trial is free for 14 days, with no credit card.
Start 14-day trial