OPEN-SOURCE SCRIPT

Multi-Chart Widget [LuxAlgo]

The Multi-Chart Widget tool is a comprehensive solution crafted for traders and investors looking to analyze multiple financial instruments simultaneously. With the capability to showcase up to three additional charts, users can customize each chart by selecting different financial instruments, and timeframes.

Users can add various widely used technical indicators to the charts such as the relative strength index, Supertrend, moving averages, Bollinger Bands...etc.

🔶 USAGE

สแนปชอต

The tool offers traders and investors a comprehensive view of multiple charts simultaneously. By displaying up to three additional charts alongside the primary chart, users can analyze assets across different timeframes, compare their performance, and make informed decisions.

Users have the flexibility to choose from various customizable chart types, including the recently added "Volume Candles" option.

สแนปชอต

This tool allows adding to the chart some of the most widely used technical indicators, such as the Supertrend, Bollinger Bands, and various moving averages.

สแนปชอต

In addition to the charting capabilities, the tool also features a dynamic statistic panel that provides essential metrics and key insights into the selected assets. Users can track performance indicators such as relative strength, trend, and volatility, enabling them to identify trends, patterns, and trading opportunities efficiently.

สแนปชอต

🔶 DETAILS

A brief overview of the indicators featured in the statistic panel is given in the sub-section below:

🔹Dual Supertrend

The Dual Supertrend is a modified version of the Supertrend indicator, which is based on the concept of trend following. It generates buy or sell signals by analyzing the asset's price movement. The Dual Supertrend incorporates two Supertrend indicators with different parameters to provide potentially more accurate signals. It helps traders identify trend reversals and establish trend direction in a more responsive manner compared to a single Supertrend.

สแนปชอต

🔹Relative Strength Index

The Relative Strength Index is a momentum oscillator that measures the speed and change of price movements. RSI oscillates between 0 and 100 and is typically used to identify overbought or oversold conditions in a market. Traditionally, RSI values above 70 are considered overbought, suggesting that the asset may be due for a reversal or correction, while RSI values below 30 are considered oversold, indicating potential buying opportunities.

🔹Volatility

Volatility in trading refers to the degree of variation or fluctuation in the price of a financial instrument, such as a stock, currency pair, or commodity, over a certain period of time. It is a measure of the speed and magnitude of price changes and reflects the level of uncertainty or risk in the market. High volatility implies that prices are experiencing rapid and significant movements, while low volatility suggests that prices are relatively stable and are not changing much. Traders often use volatility as an indicator to assess the potential risk and return of an investment and to make informed decisions about when to enter or exit trades.

🔹R-Squared (R²)

R-squared, also known as the coefficient of determination, is a statistical measure that indicates the proportion of the variance in the dependent variable that is predictable from the independent variable(s). In other words, it quantifies the goodness of fit of a regression model to the observed data. R-squared values range from %0 to %100, with higher values indicating a better fit of the model to the data. An R-squared of 100% means that all movements of a security are completely explained by movements in the index, while an R-squared value of %0 indicates that the model does not explain any of the variability in the dependent variable.

In simpler terms, in investing, a high R-squared, from 85% to 100%, indicates that the stock’s or fund’s performance moves relatively in line with the index. Conversely, a low R-squared (around 70% or less) indicates that the fund's performance tends to deviate significantly from the movements of the index.

🔶 SETTINGS

🔹Mini Chart(s) Generic Settings

  • Mini Charts Separator: This option toggles the visibility of the separator lines.
  • Number Of Bars: Specifies the number of bars to be displayed for each mini chart.
  • Horizontal Offset: Determines the distance at which the mini charts will be displayed from the primary chart.


🔹Mini Chart Settings: Top - Middle - Bottom

  • Mini Chart Top/Middle/Bottom: Toggle the visibility of the selected mini chart.
  • Symbol: Choose the financial instrument to be displayed in the mini chart. If left as an empty string, it will default to the current chart instrument.
  • Timeframe: This option determines the timeframe used for calculating the mini charts. If a timeframe lower than the chart's timeframe is selected, the calculations will be based on the chart's timeframe.
  • Chart Type: Selection from various chart types for the mini charts, including candles, volume candles, line, area, columns, high-low, and Heikin Ashi.
  • Chart Size: Determines the size of the mini chart.
  • Technical Indicator: Selection from various technical indicators to be displayed on top of the mini charts.


Note: Chart sizing is relative to other mini charts. For example, If all the mini charts are sized to x5 relative to each other, the result will be the same as if they were all sized as x1. This is because the relative proportions between the mini charts remain consistent regardless of their absolute sizes. Therefore, their positions and sizes relative to each other remain unchanged, resulting in the same visual representation despite the differences in absolute scale.

🔹Supertrend Settings

  • ATR Length: is the lookback length for the ATR calculation.
  • Factor: is what the ATR is multiplied by to offset the bands from price.
  • Color: color customization option.


🔹Moving Average Settings

  • Type: is the type of the moving average, available types of moving averages include SMA (Simple Moving Average), EMA (Exponential Moving Average), RMA (Root Mean Square Moving Average), HMA (Hull Moving Average), WMA (Weighted Moving Average), and VWMA (Volume Weighted Moving Average).
  • Source: Determines what data from each bar will be used in calculations.
  • Length: The time period to be used in calculating the Moving Average.
  • Color: Color customization option.


🔹Bollinger Bands Settings

  • Basis Type: Determines the type of Moving Average that is applied to the basis plot line.
  • Source: Determines what data from each bar will be used in calculations.
  • Length: The time period to be used in calculating the Moving Average which creates the base for the Upper and Lower Bands.
  • StdDev: The number of Standard Deviations away from the Moving Average that the Upper and Lower Bands should be.
  • Color: Color customization options for basis, upper and lower bands.


🔹Mini Chart(s) Panel Settings

  • Mini Chart(s) Panel: Controls the visibility of the panel containing the mini charts.
  • Dual Supertrend: Toggles the display of the evaluated dual super trend, based on the super trend settings provided below the option. The definitions for the options are the same as stated above for the super trend.
  • Relative Strength Index: Toggles the display of the evaluated RSI, based on the source and length settings provided below the option.
  • Volatility: Toggles the display of the calculated Volatility, based on the length settings provided below the option.
  • R-Squared: Toggles the display of the calculated R-Squared (R²), based on the length settings provided below the option.


🔶 LIMITATIONS

The tool allows users to display mini charts featuring various types of instruments alongside the primary chart instrument. However, there's a limitation: the selected primary chart instrument must have an ACTIVE market status. Alternatively, if the primary chart instrument is not active, the mini chart instruments must belong to the same exchange and have the same type as the primary chart instrument.
Bollinger Bands (BB)luxalgomultichartsmultitimeframeanalysisRelative Strength Index (RSI)Simple Moving Average (SMA)supertrendTrend Analysisutilityvolumeanalysiswidget

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
และใน:

คำจำกัดสิทธิ์ความรับผิดชอบ