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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。