You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Feat**: optimizer now auto-generates an interactive HTML chart alongside results JSON — uses `generateHTML` from `lp_chart_core` to render the four winning AMAs against LP price data (`analysis/ama_fitting/optimizer_high_resolution.ts`).
10
+
-**Feat**: output filenames include λ and step suffix (e.g. `_l0_0022_s0_0002`) for easy comparison across runs (`analysis/ama_fitting/optimizer_high_resolution.ts`).
11
+
-**Feat**: `export =` replaced with `module.exports =` in optimizer to fix `tsx v4` strip-only mode compatibility (`analysis/ama_fitting/optimizer_high_resolution.ts`).
12
+
-**Fix**: hardcoded `REPOS_THRESHOLD = 0.004` (0.4%) removed — `calcReposRate` replaced by `trackRepositions` wired to `MARKET_ADAPTER.AMA_DELTA_THRESHOLD_PERCENT`. Analyzer now uses the production threshold (`analysis/ama_fitting/optimizer_high_resolution.ts`, `analysis/ama_fitting/analyze_ama_price_changes.ts`).
13
+
-**Fix**: `trackRepositions` extracted to shared utility then inlined back as a simplified single-threshold function — removed untracked shared file, kept logic in `analyze_ama_price_changes.ts`.
14
+
-**Fix**: all four AMA cap quantiles produced identical winners with constant λ — re-enabled `DISTANCE_WEIGHT_STEP = 0.0002` so λ varies per AMA for a clean tight-to-loose spectrum (`analysis/ama_fitting/optimizer_high_resolution.ts`).
15
+
-**Tune**: AMA1–AMA4 slow periods refitted on pool 133 1h data (2023-05 → 2026-05) with optimizer λ=0.0022/step=0.0002. Results: AMA1=80.6, AMA2=84.6, AMA3=93.1, AMA4=107.4 (`modules/constants.ts`).
16
+
-**Tune**: `BASE_DISTANCE_WEIGHT` set to 0.0022, `DYNAMIC_WEIGHT_AMA_MAX_SLOPE_PCT` set to 0.085, amaS% knob range narrowed to 0.04–0.12 (`analysis/trend_detection/dynamic_weight_chart_generator.ts`, `modules/constants.ts`).
17
+
-**Docs**: sweep AMA slow values (112.7→93.1), tsx→node dist command updates, unified comparison chart notes, and amaS% research range in 5 documentation files.
18
+
-**Chore**: add `"tsx": { "tsconfig": true }` to root `package.json` (mitigation for `export =` in tsx v4).
19
+
-**Chore**: version bumped to 1.1.2 across all manifests.
Copy file name to clipboardExpand all lines: analysis/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Tools that inspect DEXBot trading behavior and the market data it operates on. O
27
27
|[`analyze_volatility.ts`](#volatility-analyze_volatilityts)| "Both weights clipped too hard / not enough?" |`tsx analysis/analyze_volatility.ts --bot-key <bot-key>`|
28
28
|[`analyze_regime.ts`](#supporting-sub-signals)| "Is the trend/chaos gate too aggressive?" |`tsx analysis/analyze_regime.ts --bot-key <bot-key>`|
29
29
|[`analyze_kalman.ts`](#supporting-sub-signals)| "Is Kalman's contribution to the blend right?" |`tsx analysis/analyze_kalman.ts --bot-key <bot-key>`|
30
-
|[`ama_fitting/`](#ama_fitting)| "Which AMA preset fits this market?" |`tsx analysis/ama_fitting/optimizer_high_resolution.ts --data <lp-file>`|
30
+
|[`ama_fitting/`](#ama_fitting)| "Which AMA preset fits this market?" |`node dist/analysis/ama_fitting/optimizer_high_resolution.js --data <lp-file>`|
31
31
|[`bot_fitting/`](#bot_fitting)| "What spread / increment / ratio for my grid?" |`tsx analysis/bot_fitting/backtest_ama_sweep.ts --data <lp-file>`|
32
32
33
33
> `analyze_derivatives.ts` (SMA / MACD / RSI derivative layer) is legacy and not surfaced — kept for reference only.
@@ -355,7 +355,7 @@ AMA parameter optimization and comparison tools.
355
355
| Script | Purpose |
356
356
|--------|---------|
357
357
|`optimizer_high_resolution.ts`| AMA parameter optimizer (erPeriod, fast/slow bounds) |
358
-
|`generate_unified_comparison_chart.ts`| AMA comparison chart across multiple parameter sets|
358
+
|`generate_unified_comparison_chart.ts`| AMA comparison chart (defaults from constants, use optimizer for fitted params)|
359
359
|`analyze_ama_price_changes.ts`| AMA price-change analysis |
360
360
|`fetch_lp_candles.ts`| LP candle data fetcher |
361
361
|`calibrate_convergence_er.ts`| Calibrate AMA_CONVERGENCE_ER_AVG from LP data |
@@ -429,7 +429,7 @@ These npm scripts wrap common analysis runners:
429
429
|--------|---------|
430
430
|`npm run analysis:tradingview`|`tsx analysis/tradingview/analyze_tradingview.ts`|
431
431
|`npm run analysis:trade-pnl`|`tsx analysis/trade_profitability.ts`|
432
-
|`npm run ama:chart:lp-local`|`tsx analysis/ama_fitting/generate_unified_comparison_chart.ts`|
432
+
|`npm run ama:chart:lp-local`|`tsx analysis/ama_fitting/generate_unified_comparison_chart.ts`(chart also auto-generated by optimizer) |
0 commit comments