logo
TradeSearcher

Trading range display with Box

Script from: TradingView

LongTerm

Trend following

This script displays the trading range, coloring it based on profitability. It’s a reference tool and not for actual trading. To visualize current trades, use process_orders_on_close=true, calc_on_every_tick=true, max_boxes_count=500. Avoid switching strategies within the same test period to ensure accurate range display. It involves repainting and is primarily for visual testing by copying from line 22 onwards in the script.

Cronos/Tether (CROUSDT)

+ Trading range display with Box

@ Daily

2.33

Risk Reward

3,515.58 %

Total ROI

57

Total Trades

NEAR / TetherUS (NEARUSDT)

+ Trading range display with Box

@ Daily

1.68

Risk Reward

6,071.74 %

Total ROI

41

Total Trades

Cardano / TetherUS (ADAUSDT)

+ Trading range display with Box

@ Daily

1.66

Risk Reward

3,387.11 %

Total ROI

67

Total Trades

Shiba Inu / United States Dollar (SHIBUSD)

+ Trading range display with Box

@ Daily

1.58

Risk Reward

404.23 %

Total ROI

38

Total Trades

RUNE / TetherUS (RUNEUSDT)

+ Trading range display with Box

@ Daily

1.56

Risk Reward

3,224.12 %

Total ROI

47

Total Trades

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

4.01

Risk Reward

25.48 %

Total ROI

18

Total Trades

CrowdStrike Holdings, Inc. (CRWD)

+ Trading range display with Box

@ 1 h

1.81

Risk Reward

1,348.22 %

Total ROI

270

Total Trades

Tilray Brands, Inc. - Class 2 (TLRY)

+ Trading range display with Box

@ Daily

1.77

Risk Reward

28.96 %

Total ROI

35

Total Trades

ALX Oncology Holdings Inc. (ALXO)

+ Trading range display with Box

@ 4 h

1.56

Risk Reward

9.24 %

Total ROI

42

Total Trades

Goldman Sachs Group, Inc. (The) (GS)

+ Trading range display with Box

@ 4 h

1.55

Risk Reward

552.13 %

Total ROI

351

Total Trades

Connexa Sports Technologies Inc. (CNXA)

+ Trading range display with Box

@ Daily

1.51

Risk Reward

11.84 %

Total ROI

22

Total Trades

ChargePoint Holdings, Inc. (CHPT)

+ Trading range display with Box

@ Daily

1.50

Risk Reward

7.15 %

Total ROI

22

Total Trades
Create your account for free to see all 74+ backtests

Access filters, details, best timeframes, explore 100K+ backtests and more

Active Trades

Create your account  to see on which symbols Trading range display with Box is currently trading on.

Popular TradingView Strategies

Find the best trading strategy for your trading styte

Guide

How does the Trading range display with Box strategy work ?

This script is designed to display the trading range and visually represent the performance of a trading strategy. It colors the trading ranges based on profitability, making it easier to see at a glance. The script includes specific scripting parameters:

  • process_orders_on_close=true
  • calc_on_every_tick=true
  • max_boxes_count=500

These parameters ensure the script updates accurately and displays ongoing trades. It's particularly recommended not to use this with switching strategies (e.g., immediately switching from a long to short position) as it may not display the range correctly. Additionally, the strategy has been marked as "Repainting Reference," meaning it may repaint historical data. For visual results of your strategy, you can copy and paste the code from line 22 in the provided script.

How to use the Trading range display with Box strategy ?

This trading strategy uses the crossover of two Simple Moving Averages (SMAs) to determine long entry and exit conditions. When the 14-period SMA crosses above the 20-period SMA, a long entry is triggered. The position is exited when the 14-period SMA crosses below the 20-period SMA.

To trade this strategy manually:

  • Add the 14-period SMA and the 20-period SMA indicators to your TradingView chart.
  • Entry Condition: Enter a long position when the 14-period SMA (white line) crosses above the 20-period SMA (blue line).
  • Exit Condition: Close the long position when the 14-period SMA (white line) crosses below the 20-period SMA (blue line).

How to optimize the Trading range display with Box trading strategy ?

To manually enhance this TradingView strategy, you can use additional indicators and techniques to confirm trade entries and exits, ultimately increasing its reliability. Below is a step-by-step plan to improve the strategy:

1. Combine with Additional Indicators:

  • Relative Strength Index (RSI): Use the RSI to confirm entry and exit signals. Enter long positions only when RSI is above 50 and showing an upward trend. Exit the position when RSI falls below 50.
  • Volume: Monitor trading volume to confirm signals. Higher volume during SMA crossovers adds validity to the signals, suggesting stronger momentum.
  • Bollinger Bands: Use Bollinger Bands to capture the volatility of the asset. Enter when a confirmed crossover happens near or below the lower Bollinger Band, and exit near the upper Bollinger Band for better price targets.

2. Incorporate Support and Resistance Levels:

  • Identify Key Levels: Manually draw horizontal lines to mark strong support and resistance levels on your chart. These levels will act as additional confirmation for entry and exit points.
  • Confirm Signals: Only take trades when the SMA crossover happens near a significant support level, and plan to exit near resistance levels.

3. Use Multiple Time Frame Analysis:

  • Check Higher Time Frames: Before entering a trade, confirm the trend on a higher time frame (e.g., if trading on the 15-minute chart, confirm the trend on the 1-hour chart). This alignment increases the probability of a successful trade.

4. Optimize Trade Management:

  • Set Stop-Loss Orders: Always place a stop-loss order below the recent swing low (for long positions) to protect your capital in case the trade goes against you.
  • Use Trailing Stop-Loss: As the trade moves in your favor, adjust the stop-loss level to lock in profits and minimize potential losses.
  • Define Profit Targets: Set realistic profit targets based on nearby resistance levels or a risk-to-reward ratio of at least 1:2.

5. Monitor Market News:

  • Stay Informed: Keep an eye on economic calendars and news events that could impact the asset you’re trading. Avoid entering new positions before major news releases to reduce the risk of unexpected volatility.

For which kind of traders is the Trading range display with Box strategy suitable ?

This strategy is ideal for beginner to intermediate traders who prefer a systematic, rules-based approach to trading. Specifically, it's designed for:

  • Trend Followers: The strategy relies on Simple Moving Averages (SMA) crossover to identify and follow market trends.
  • Positional Traders: Suitable for traders looking to hold positions for multiple days or weeks, capturing more significant market moves.
  • Manual Traders: Individuals who are comfortable executing trades manually and can benefit from additional confirmation indicators like RSI, Bollinger Bands, and Volume.

This strategy is particularly beneficial for those who trade in:

  • Moderate Volatility Markets: It performs best in markets that have moderate price movements, allowing the SMAs to signal clear entry and exit points.
  • Highly Liquid Assets: Using this strategy on highly liquid assets like major forex pairs, blue-chip stocks, or popular cryptocurrencies ensures smoother execution and reduced slippage.

Key Takeaways of Trading range display with Box

Key Takeaways:

  • Strategy Basics: The strategy uses SMA crossovers to determine long entry and exit points, ideal for capturing market trends.
  • How it Works: Enter a long position when the 14-period SMA crosses above the 20-period SMA, and exit when the 14-period SMA crosses below the 20-period SMA.
  • Trading Style: Best for trend followers and positional traders who can manually execute trades or use TradingView alerts for automation.
  • Enhancing the Strategy: Combine with indicators like RSI, Volume, and Bollinger Bands to confirm signals and improve trade reliability.
  • Support and Resistance: Use key support and resistance levels as additional confirmation for entries and exits.
  • Time Frame Analysis: Confirm trends on higher time frames to increase the probability of successful trades.
  • Trade Management: Set stop-loss orders below recent swing lows and use trailing stops to lock in profits.
  • Profit Targets: Define clear profit targets based on risk-to-reward ratios and resistance levels.
  • Market News: Stay informed about economic events and news to avoid unexpected volatility impacting trades.
Explore the best Trading & TradingView strategies

Stop trading blindly. Explore the best strategies among 100K+ backtests and improve your trading skills with data.


logo

Loved by more than 3200+ traders

Explore

Crypto

Forex

Bitcoin

AI Strategies

Day Trading

Swing Trading

Trading is a risky activity and the majority of traders lose money. This website and the products and services offered by TradeSearcher are for informational & educational purposes only. TradeSearcher does not guarantee the accuracy, relevance, timeliness, or completeness of any information on its website.

All Trading Strategies displayed on this website are simulated backtests and does not represent actual trading results. Past backtests results do not predict or guarantee future performance.

TradeSearcher uses public snapshot data sourced from third-party tools, including TradingView. While we strive to present accurate and timely information, TradeSearcher does not have control over these third-party tools and cannot verify, guarantee, or be held responsible for the accuracy or completeness of data sourced from them. Users acknowledge and agree that TradeSearcher is not affiliated with, endorsed by, or sponsored by TradingView or any other third-party data provider. Any reliance on data or tools sourced from third parties is at the user's own risk.

Backtests and Charts used on this site are by TradingView in which our backtests are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com.

Users of TradeSearcher are responsible for conducting their own due diligence and making their own investment decisions. Before making any investment, it is recommended that users consult with a qualified professional to ensure that the strategy or investment is suitable for their individual circumstances.

TradeSearcher and its affiliates, employees, agents, and licensors will not be held liable for any decisions made based on the information provided on the website or any damages or losses that may arise directly or indirectly from the use of the website or the information contained therein.

This does not represent our full Disclaimer. Please read our Full Disclaimer before using this site.

© 2023 TradeSearcher. All rights reserved.