OPEN-SOURCE SCRIPT

Nimu Market on Paper

158

Multi-Timeframe Analysis Tool is a powerful visual aid for identifying trends, reversals, and key price movements across multiple timeframes — particularly useful for intraday traders and those using technical analysis strategies


Timeframes & Data Collection:
  • The script tracks multiple timeframes (1m, 5m, 15m, 30m, 1H, 2H, 4H, 8H), storing their open, high, low, and close prices in arrays (trdh, trdc, trdo, trdl).
  • It uses request.security() to fetch these values for the current symbol and specified timeframes
.

User Inputs:

  • Base Timeframe: Chooses the primary timeframe for analysis.
  • Bar Count: Determines how many bars to display.
  • Border Thickness: Sets the visual thickness of box borders.
  • Colors: Configurable for bullish, bearish, background, and borders


Visual Elements:

  • Dynamic Boxes: Drawn using box.new(), these illustrate the range between high and low prices with the percentage change displayed inside.
  • Candlestick Plots: Rendered for each tracked timeframe using plotcandle(), colored according to bullish or bearish price action and styled based on timeframe scaling.
  • Regression Line: A linear regression line plotted over the selected timeframe’s close prices to capture trend direction.


Logic & Presentation:

  • Determines the right timeframe index based on user input (base).
  • Calculates percentage change from high to low and visualizes it with shaded boxes.
  • Automatically deletes older boxes to maintain clarity.
  • Customizes candle appearance based on timeframe granularity.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.