logo
Developers

Trading range display with Box

Script from: TradingViewSwingTrend 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.

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

Sandisk Corporation (SNDK)

+ Trading range display with Box

@ 2 h

2.27

Risk Reward

1,381.00 %

Total ROI

34

Total Trades

Bloom Energy Corporation (BE)

+ Trading range display with Box

@ 4 h

2.10

Risk Reward

3,034.40 %

Total ROI

112

Total Trades

Bloom Energy Corporation (BE)

+ Trading range display with Box

@ Daily

2.08

Risk Reward

683.17 %

Total ROI

58

Total Trades

PAX Gold / TetherUS (PAXGUSDT)

+ Trading range display with Box

@ Daily

2.01

Risk Reward

66.26 %

Total ROI

58

Total Trades

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

+ Trading range display with Box

@ 4 h

1.90

Risk Reward

1,201.50 %

Total ROI

377

Total Trades

Spotify Technology S.A. (SPOT)

+ Trading range display with Box

@ 4 h

1.86

Risk Reward

527.45 %

Total ROI

125

Total Trades

AST SpaceMobile, Inc. (ASTS)

+ Trading range display with Box

@ 4 h

1.66

Risk Reward

1,537.41 %

Total ROI

88

Total Trades

IonQ, Inc. (IONQ)

+ Trading range display with Box

@ 4 h

1.57

Risk Reward

774.49 %

Total ROI

78

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

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 70+ 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.

Trading range display with Box backtest statistics

Aggregated across every validated backtest TradeSearcher has run on this strategy. Figures update automatically as new backtests are added — they are not edited by hand. Classified as swing by holding period.

70
Backtests run
1.3
Avg profit factor
+363%
Avg net profit
+23%
Avg annualized return
53%
Avg max drawdown
0.12
Avg Sharpe ratio

On average, backtests of this strategy beat a buy-and-hold baseline by 271% over the same window.

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto901.1+488%69%0.14
Stocks1,2941.3+284%46%0.11

Backtests use the validated-universe filter: non-repainting scripts, over 15 trades, non-excluded. Per-market rows appear only when at least one backtest exists for that asset class.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free