bonsai_trade Updated   
Bonsai is a tailored tech analysis tool for all traders. It uses dynamic thresholds, sensitivity modes, and averaging to identify market trends. Its scoring system, visual cues, and alerts offer an intuitive trading journey.


🌳 Bonsai 🌳 Trend Analysis Indicator

📘 Overview

Bonsai is designed to aid traders in recognizing market trends, utilizing sensitivity as its pivotal component.

📌 Script Logic

 • Threshold-Based Trends: Bonsai sets dynamic thresholds based on market deviations from previous highs or lows to identify trend reversals.
 • Signal Generation: After ascertaining the trend direction, Bonsai provides buy/sell signals from trend crossovers and crossunders.
 • Returns & Scoring: Each signal's potential returns are calculated, considering asset-specific trading fees. A scoring system (1-10) is introduced for traders to evaluate potential profitability quickly.
 • Auto-Threshold: Threshold adjustments are made depending on the selected sensitivity mode, optimizing adaptability.
 • Visual Indicators: Bonsai visualizes potential market highs and lows through trend lines. Colors differentiate between bullish and bearish market sentiments.
 • Trend Line Enhancement with ALMA: Bonsai integrates the Arnaud Legoux Moving Average (ALMA), aiming to refine trend line representation. ALMA may reduce noise, providing a smoother trend line, which might be useful during volatile market conditions. This can potentially lead to improved trend forecasts with fewer fakeouts.

🎯 Purpose

 • For Experienced Traders: Bonsai complements professional analysis with its data-driven insights, catering to diverse trading strategies.
 • For Newcomers: Serving as an entry to technical analysis, Bonsai's intuitive design and streamlined settings are beginner-friendly.

🛠 Key Elements

 • Dynamic Thresholds: Bonsai’s thresholds are dynamic, adapting to market conditions and user-selected sensitivity mode.
 • Scoring System: Bonsai’s unique scoring system is grounded on potential returns, streamlining complex market data interpretation.

Performance Table Breakdown

🔧 Classic Elements & Value Added

 • Refined Moving Averages: Bonsai incorporates standard moving averages like the EMA, SMA and ALMA to smooth and refine trend lines.
 • Enhanced Visual Representation: Bonsai strives to provide clarity beyond just displaying market directions. Its visuals are crafted to help traders understand and potentially act promptly. The deliberate use of color dynamics, trend indications, and integration of moving averages come together to create a representation that aims to stand out in its clarity and simplicity.

📊 Features

 • Dynamic Sensitivity Modes: Settings include:
  • (Auto) Slow, Mid, Fast: These modes allow Bonsai to auto-adjust its sensitivity in line with market changes.
   • 'Slow': Aims to capture larger market moves with fewer signals.
   • 'Mid': A balanced mode with a moderate signal frequency.
   • 'Fast': Caters to rapid market changes, providing more signals.
 • Manual: For traders who prefer setting their sensitivity.
 • Visualization: Green indicates bullish trends, and Red indicates bearish ones. Trend colors are customizable in gradient intensity and opacity.
 • Performance Insights: A table displaying the effectiveness of all modes, guiding your strategy choices.
 • Dashboard Themes: Users can switch between light and dark themes.
 • Alert System: Real-time buy/sell signal notifications.
 • Compatibility: Output can be integrated as a source for other indicators.

Indicator Settings Menu

🎛 How To Use Bonsai

1. Select your sensitivity mode.
2. Use color cues to analyze market directions.
3. Check the performance insights for strategy adjustment.
4. Set alerts to stay updated.

📜 Feedback & Improvement

We value your feedback. As the trading world evolves, Bonsai will adapt, meeting traders' dynamic needs.

❗️ Disclaimer

Bonsai serves as an analytical tool and isn’t a standalone trading strategy. Its performance table is for reference, and accuracy isn’t guaranteed. Always research thoroughly and be mindful of trading risks. Bonsai facilitates analysis but doesn’t promise particular outcomes.
Release Notes:
  • Updated output plot labels to "🌳 Buy ▲" for buy signals and "🌳 Sell ▼" for sell signals.

💬 Discord
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact bonsai_trade for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

Explore this tool and a range of others at - For assistance, reach out to us at

Want to use this script on a chart?

Warning: please read before requesting access.