How colochampre/bar-magnifier-estimator works
bar-magnifier-estimator parses TradingView trade exports, aligns them to exchange data, validates exit rules against the chart-timeframe results, then replays at finer resolutions to estimate magnifier-equivalent and more realistic outcomes. It also supports calibration against a known magnifier run, funding-cost measurement, shared-capital portfolio simulations, and formatted reports. Replay orchestration and portfolio internals are sampled; several estimate and provider details are only documented or partially excerpted, so uncertain internal links are omitted.
Main entry points: candles.py Candle Providers · estimate.py Estimate Runner · tradingview.py Trade Parser · engine.py Replay Engine
Components 12
Trade Inputs
- Trade Parser
bme/tradingview.py
Market Data
- Candle Providers
bme/candles.py - Market Data Cache
bme/candles.py
Replay And Estimates
- Exit Rules
bme/rules.py - Replay Engine
bme/engine.py - Estimate Runner
bme/estimate.py - Replay Results
bme/estimate.py
Portfolio And Reports
- Pool Simulation
bme/portfolio.py - Result Reports
bme/report.py
Other components
- Strategy Tester User
- Trade Export
- Exchange APIs
Connections 17
- Strategy Tester User → Trade Export: exports trades
- Trade Export → Trade Parser: reads CSV
- Trade Parser → Candle Providers: checks fills
- Trade Parser → Estimate Runner: provides trades
- Candle Providers → Exchange APIs: fetches candles
- Candle Providers → Market Data Cache: reads/writes
- Candle Providers → Trade Parser: returns candles
- Estimate Runner → Candle Providers: loads series
- Estimate Runner → Replay Engine: replays trades
- Replay Engine → Candle Providers: reads windows
- Replay Engine → Exit Rules: checks exits
- Estimate Runner → Replay Results: builds results
- Estimate Runner → Pool Simulation: supplies trade results
- Estimate Runner → Candle Providers: loads funding rates
- Candle Providers → Exchange APIs: fetches funding
- Replay Results → Result Reports: formats metrics
- Pool Simulation → Result Reports: formats runs