Commit Graph

17 Commits

Author SHA1 Message Date
cf1aca8855 Add Hurst Bands indicator with buy/sell signal markers 2026-03-03 08:36:26 +01:00
b888c03e8e show only period param in analysis panel 2026-03-02 10:45:00 +01:00
7191cd293f fixed params display in analysis panel 2026-03-02 10:39:50 +01:00
c2f92cc5fb show indicator params like MA(44) in active list and analysis panel 2026-03-02 10:36:03 +01:00
3ffec846dc added RSI crossover detection in historical crossovers for timestamp 2026-03-02 09:09:20 +01:00
dd1cc521e9 fixed syntax error in signals-calculator 2026-03-02 09:05:33 +01:00
a84a1c9091 added RSI crossover signals: BUY when crosses up oversold, SELL when crosses down overbought 2026-03-02 09:03:18 +01:00
767c0bef67 added centralized timezone config with UI selector in hamburger menu 2026-03-02 08:55:16 +01:00
28abdb15a2 fixed: always update timestamp from current data, not stale cache 2026-03-01 22:25:59 +01:00
af79268621 simplified crossover detection: find first candle where price crosses MA 2026-03-01 22:16:12 +01:00
12689ad8f3 fixed: use correct candle timestamp (newer candle) for crossover 2026-03-01 22:06:22 +01:00
34cccce6b4 fixed: use correct crossover timestamp for signal, clear signal state on param change 2026-03-01 21:57:34 +01:00
9513f5b426 Fix: Track actual historical crossovers and force indicator redraw
Issue 1: Track actual crossovers from history
- Added calculateHistoricalCrossovers() function
- Scans candle history backwards to find most recent crossover
- Updates lastSignalTimestamp when BUY→SELL or SELL→BUY crossover is detected
- Date now reflects when the price actually crossed the MA line

Issue 2: Force full redraw of indicator series
- Changed updateIndicatorCandles() to remove and recreate all series
- Instead of using setData() which may not work reliably
- Full redraw ensures overlay indicators (MA) refresh correctly
- Now indicator lines update properly when new candles finish

Both implementations ensure:
1. Date shows actual crossover time (when candle crossed MA)
2. Indicator lines redraw on new candle completion
3. Works for both overlay (MA, BB, HTS) and pane (RSI, MACD, etc.) indicators
2026-03-01 20:12:19 +01:00
f789f3d4c1 Fix: Restore calculateSummarySignal function 2026-03-01 19:40:20 +01:00
a344a7f0da Refactor: Convert indicators to self-contained files
- Created moving_average.js consolidating ma.js, ma_indicator.js, sma.js, ema.js
- Made all indicators self-contained with embedded:
  * Math logic (no external dependencies)
  * Metadata (getMetadata())
  * Signal calculation (calculateXXXSignal)
  * Base class (inline BaseIndicator)
- Updated macd.js, hts.js to inline EMA/MA calculations
- Added signal functions to RSI, BB, Stochastic, ATR indicators
- Updated indicators/index.js to export both classes and signal functions
- Simplified signals-calculator.js to orchestrate using indicator signal functions
- Removed obsolete files: ma.js, base.js, ma_indicator.js, sma.js, ema.js

All indicators now fully self-contained with no external file dependencies
for math, signal calculation, or base class.
2026-03-01 19:39:28 +01:00
fdab0a3faa Pre-refactor: commit before converting indicators to self-contained files 2026-03-01 19:37:07 +01:00
899d9174e4 Add indicator signals feature with buy/sell/hold analysis
- Add signals-calculator.js module for calculating buy/sell/hold signals for all indicators
- Integrate signals into Trend Analysis panel (renamed to Indicator Analysis)
- Display individual indicator signals with badges, values, strength bars, and detailed reasoning
- Add aggregate summary signal showing overall recommendation from all indicators
- Support signals for RSI, MACD, Stochastic, Bollinger Bands, SMA/EMA, ATR, and HTS
- Provide tooltips on hover showing indicator value, configuration, and reasoning
- Ensure indicators calculate on all available candles, not just recent ones
- Cache indicator calculations for performance while recalculating on historical data loads
- Style improvements: monospace font, consistent button widths, reduced margins
- Add AGENTS.md documentation file with project guidelines
2026-02-26 23:46:33 +01:00