PROTECTED SOURCE SCRIPT

Multi-Timeframe ATR, Range Size, and Ticks Display

138
This PineScript indicator for TradingView displays a multi-timeframe (MTF) table showing ATR values, calculated range sizes (based on a user-defined percentage of ATR), and the number of ticks (R) in each range size for timeframes: 15m, 1h, 4h, 8h, and 1D. It also shows the minimum price change (mintick) for the symbol.
Key features:

ATR Calculation: Uses the standard ATR with a configurable period (default 14) fetched via request.security for each timeframe.
Range Size: Computes range as ATR * (percentage / 100), where percentage is user-input (default 10%).
Ticks (R): Divides range size by syminfo.mintick to get the number of ticks, useful for setting range bar sizes (e.g., in NinjaTrader or TradingView range charts).
Table Display: A customizable table at the top-right corner, updated only on the last bar for performance. Includes an option to show/hide the table.
Compatibility: Works on time-based charts; values remain consistent even if switching chart types, as ATR is always pulled from specified timeframes.

To use: Add to TradingView, adjust inputs, and apply to a time-based chart (e.g., 1m or 5m) for scalping BTC/USDT as per your strategy. The script ensures calculations are timeframe-independent, so switching to range/renko/etc. won't alter the displayed MTF data.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.