Trend Classifier

Risk Management Systems Intermediate Singapore Stocks REITs Index Futures Options Structured Warrants & DLCs Commodity Futures Currency Futures Indices
Learn this and Singapore-market strategies in depth — one-time purchase, lifetime access.
Unlock full hub →

Quick Reference

Purpose Classify market trend direction and strength to optimize strategy selection, position bias, and risk management decisions
Core Function Analyzes price action across multiple timeframes and indicators to classify trends as strong uptrend, weak uptrend, sideways, weak downtrend, or strong downtrend with confidence scores

Payoff Profile

Visual representation of trend states and transitions

Singapore Market Details

Monetary Policy Structure Singapore's policy framework is central to reading bank and REIT trends and differs structurally from a conventional interest-rate regime • MAS runs the 'Basket, Band, Crawl' (BBC) system - it manages the Singapore dollar nominal effective exchange rate (S$NEER) within a policy band rather than setting a benchmark interest rate • Because of open capital flows and the exchange-rate target, domestic rates such as SORA are effectively imported from global markets and track US SOFR; MAS does not control them
Tax And Structural Notes General educational overview only and not tax advice; rates and rules change, so verify current IRAS, MAS and SGX guidance • Singapore has no capital gains tax - investment gains are generally not taxed • Frequent, systematic trading can lead IRAS to treat gains as TRADING INCOME (taxable) under the 'badges of trade' principle rather than tax-free capital gains; frequency, intent and holding period all matter • Singapore uses a one-tier corporate tax system - dividends from Singapore-resident companies are generally tax-exempt in shareholders' hands • No Securities Transaction Tax; costs are brokerage plus SGX clearing and trading-access fees, with GST applied on the fees • Equities settle on a T+2 basis through the Central Depository (CDP) scripless system • SGX securities trade continuously 09:00-17:00 SGT (no midday break) with pre-open and pre-close auctions; SGX derivatives run extended, near-24-hour sessions • Retail leveraged exposure is mainly through structured warrants and Daily Leverage Certificates (DLCs); single-stock options liquidity is limited • The former SGX Nifty migrated to NSE IX in GIFT City and was rebranded GIFT Nifty in July 2023; it is no longer an SGX product

Frequently Asked Questions

Which timeframe should I use for trend classification?

It depends on your trading style. For swing trading (holding days to weeks), use the daily timeframe as primary. For day trading, use 4-hour or hourly. For position trading (weeks to months), use weekly. Always check higher timeframes for context - the trend on a higher timeframe takes precedence.

Can the market be in different trends on different timeframes?

Yes, absolutely. The daily might show an uptrend while the hourly shows a pullback (temporary downtrend). This is normal and actually provides opportunities - you can buy the hourly dip within the daily uptrend. The key is understanding the hierarchy: higher timeframes have more weight.

How often should I check the trend classification?

For daily timeframe trends, checking once at end of day is sufficient - daily trends don't change minute by minute. Set up alerts for classification changes so you don't miss transitions. Intraday traders may check more frequently but trends still don't change every few minutes.

What should I do when the trend is classified as 'Sideways'?

In sideways markets, you have several options: 1) Stay out and wait for a trend to develop, 2) Use range-trading strategies (buy support, sell resistance), 3) Use options strategies designed for non-trending markets like iron condors. Avoid trend-following strategies in sideways markets.

Is a 'Strong Uptrend' always better than a 'Weak Uptrend'?

For trend-following strategies, strong trends are generally better - higher probability of continuation. However, strong trends can also be extended and due for pullbacks. Weak uptrends may offer better entry points but have lower conviction. The key is matching your strategy to the trend strength.

How do I handle conflicting signals between different indicators?

This is common and actually informative. Conflicting signals often indicate transition periods. Resolution approaches: 1) Weight indicators (MA alignment is foundational), 2) Require majority agreement, 3) Use the scoring system where conflicts result in moderate scores, 4) Wait for clearer signals. Conflicts suggest reducing position size.

How do I avoid false trend change signals?

Use multiple confirmations: 1) Require 2-3 bars of new classification before acting, 2) Check multiple indicators (not just one), 3) Verify on multiple timeframes, 4) Look for actual price structure change (lower low in uptrend, higher high in downtrend), 5) Use hysteresis - don't flip on minor changes.

Should I exit a position when trend weakens from 'Strong' to 'Weak'?

Not necessarily - weak uptrend is still uptrend. Consider: 1) Tightening stops rather than exiting, 2) Taking partial profits, 3) Not adding to position. Exit when trend changes to Sideways or Downtrend, or when your stop is hit. Trend weakening is a warning, not an exit signal by itself.

How do I incorporate sector trends into my trading?

Check both market trend and sector trend: 1) Best setups are when market AND sector trends align with your trade, 2) Be cautious when trading against sector trend even if stock looks good, 3) For portfolio, overweight sectors with strong trends, underweight weak, 4) Use relative strength to find sector leaders.

What's the best way to use trend quality in position sizing?

Scale position based on quality: High quality trend = 100% of intended position, Medium quality = 75%, Low quality = 50%, Choppy = 25% or skip. Also consider combined with trend strength: Strong trend + High quality = maximum conviction. Weak trend + Low quality = minimal or no position.

How do I validate my trend classifier is adding value?

Backtest and compare: 1) Run strategy with classifier filter vs without, 2) Compare risk-adjusted returns (Sharpe), not just total return, 3) Measure false signal rate, 4) Check classification accuracy vs hindsight optimal, 5) Evaluate across different market regimes. A good classifier should improve returns and reduce drawdowns.

When should I use HMM vs rule-based classification?

HMM advantages: Probabilistic output, learns from data, captures regime dynamics. Rule-based advantages: Transparent, controllable, no training needed. Use HMM when: you need probability not just classification, you have enough data, regime dynamics matter. Use rule-based when: transparency is critical, quick deployment needed, or as fallback.

How do I handle classification during major market events?

Major events (national elections, global crises, China policy shocks) can invalidate normal classification: 1) Reduce reliance on classifier during extreme events, 2) Increase confirmation requirements, 3) Use shorter lookback for indicators to adapt faster, 4) Override with manual assessment if needed, 5) Accept that classification lag is higher during rapid changes.

How do I calibrate thresholds for different markets/instruments?

Different instruments have different volatility characteristics: 1) ADX thresholds may need adjustment (single bank stocks such as DBS may show higher ADX than the broad STI), 2) Test thresholds on instrument's historical data, 3) Use relative measures (percentile of ADX) rather than absolute, 4) Sector indices may need different parameters than broad indices.

What architecture is best for a production multi-instrument trend system?

Recommended architecture: 1) Data layer with efficient time-series storage (InfluxDB, TimescaleDB), 2) Parallel processing for multi-instrument (each instrument independent), 3) Microservice for classification that other services call, 4) Caching layer for frequently accessed classifications, 5) Event-driven alerts on changes, 6) API for integration with trading systems, 7) Monitoring dashboard.

Master Singapore trading strategies on AlgoKing

Full guided lessons, quizzes, and a complete strategy library for the Singapore market. One-time purchase. No subscription, ever.

Get Singapore access →