Market Context
Understand sentiment analysis, economic indicators, and news integration.
Market Sentiment Scoring
The sentiment engine reads news and social posts about each market and turns them into one score. The sources and their usual weights:
| Source | Weight | Covers |
|---|---|---|
| Google News | 20% | Everything |
| StockTwits | 18% | Retail social posts |
| ForexFactory | 18% | FX, metals and indices |
| Mace News | 16% | FX, metals and indices (macro wire) |
| Binance announcements | 16% | Crypto only (listings, delistings) |
| Serper news search | 12% | Everything |
| X | 15% | Joins when it can be read |
Only the sources that cover a market are used for it, and their weights are rescaled to add up.
Health checks
A source that errors or hits a rate limit is down-weighted for an hour and then recovers. One failing source cannot swing the reading on its own.
Freshness
Newer items count for more. Social posts lose half their weight in about an hour, news in about four hours, and breaking items in about two.
Backtests
Backtests use only Alpha Vantage, which has a historical archive, and only for the period being tested, so today’s headlines never leak into a simulation of the past.
Threshold Classifications
The sentiment score ranges from -1.0 (strongly bearish) to +1.0 (strongly bullish). The thresholds differ based on asset class volatility:
| Asset Class | Strong Bearish | Bearish | Neutral | Bullish | Strong Bullish |
|---|---|---|---|---|---|
| Crypto | $\le -0.40$ | $-0.40$ to $-0.10$ | $-0.10$ to $+0.10$ | $+0.10$ to $+0.40$ | $\ge +0.40$ |
| General/Fiat | $\le -0.25$ | $-0.25$ to $-0.10$ | $-0.10$ to $+0.10$ | $+0.10$ to $+0.25$ | $\ge +0.25$ |
The engine also tracks a 24-hour linear regression trend to classify the sentiment trajectory as improving, deteriorating, or stable.
Economic Calendar and Indicators
The economic engine monitors key macroeconomic data points from the FRED database. These indicators provide macro regime context to the trading algorithms:
- CPIAUCSL / PPIACO: Consumer and producer prices (inflation).
- PCEPI: Personal Consumption Expenditures Price Index (Inflation).
- FEDFUNDS: Federal Funds Effective Rate (Monetary Policy).
- DGS10 / T10Y2Y: 10-Year Treasury Yield and the Yield Curve spread.
- GDP: Gross Domestic Product (Growth).
- UNRATE / PAYEMS: Unemployment Rate and Nonfarm Payrolls (Labor Market).
- INDPRO / RETAILSMSA / UMCSENT: Industrial production, retail sales and consumer sentiment (activity).
The engine determines the overall market regime (e.g., overheating, stagflation, recession, goldilocks, easy money, or transitional) based on these macroeconomic trends.
News filter
With the news filter on (/settings news on), auto-trade skips a market when a high-impact economic event for its currencies is due within 30 minutes. Sentiment informs the analysis but does not, on its own, block a trade.