OPEN-SOURCE SCRIPT

Higher Timeframe Open High Low Close

Theo insideandup
Cập nhật
PURPOSE
1. Multi-timeframe analysis (MTFA).
2. Better visualize intraday price action relative higher timeframe price action, and this is not limited to the current time frame or the higher time frame including current price movement.
3. Higher Timeframes provides an overview of the long-term trend (e.g., weekly or monthly charts).
4. Confirm trends occurring on more than one timeframe.
5. Improve choice of entry and exit points.

ORIGINALITY
1. Compare current lower time frame price movement to current or previous higher time frame movement. The user specifies in the settings the higher time frame (day, week, month, quarter, or year) and the associated price movement data, including OHLC, average prices, and moving average levels.
2. Previous time frames and all specified levels (OHLC, average prices, and moving averages) can be shifted together to overlay the current time frame. This allows analysis of lower/intraday price movement against that of any past higher time frames.
3. Use: In the settings, the current time frame (i.e., that including current price movement) 'count from current' is '0', a count of '1' would shift one higher level time frame such that the open date of that shifted time frame aligns with the open date of the current time frame. A count of '3' would shift three higher level time frames to align with the current."
4. Example: On the Wednesday July 24 intraday chart, overlay the daily OHLC, typical price, and 10-day EMA data occurring at the close of Wednesday July 17. This allows analyze current price movement against data from one week prior.

HIGHER TIMEFRAME DATA that can be PLOTTED and SHIFTED
1. Open, High, Low, Close.
2. Average prices: Median (HL/2), Typical (HLC/3), (Average OHLC/4), Body Median (OC/2), Weighted Close (HL2C/4), Biased 01 (HC/2 if Close > Open, else LC/2), Biased 02 (High if Close > HL/2, else Low), Biased 03 (High if Close > Open, else Low).
3. Moving averages with user specified source, length and type.
Phát hành các Ghi chú
Added fibonacci data.
Phát hành các Ghi chú
Added labels for current chart timeframe bars above/blow the specified higher timeframe moving average (green = bars above ma, red = bar below ma), and intraday bar count (yellow = close > previous close, blow = close < previous close).
Phát hành các Ghi chú
* Added less common fibonacci levels
* Calculate fibonacci levels with high/low price or close
* Reverse fibonacci levels
* Exclude a specified number of recent bars from fibonacci levels calculation
* Extend fibonacci level lines right/left by a specified number of bars
Phát hành các Ghi chú
Added more fibonacci levels. Select to display the negative of the levels, which produces a mirror image of the levels about the zero level.
Phát hành các Ghi chú
Fibonacci retracement levels calculated substituting φ = (1+√5)/2 = 1.618033989 for other constants. For example:

Delian constant = cube root of 2 = 2^(1/3) = 1.2599210499
Pythagoras's constant = √2 = 2^(1/2) = 1.414213562
Theodorus' constant = √3 = 3^(1/2) = 1.732050808
Square root of 5 = 5^(1/2) = 2.236067978
Silver ratio δS = 1 + 2^(1/2) = 2.414213562
Feigenbaum's α = 2.502907875...
Lorenz attractor β = 8/3 = 2.666666667
Euler's number = ∑(1/n!) = 2.718281828
Pi π = 3.141592654
Feigenbaum's 𝛿 = 4.669201609...
Phát hành các Ghi chú
Added options to create retracement levels by specifying any 2 level and associated prices, all other levels will then be generated.
Phát hành các Ghi chú
Added tooltips
Phát hành các Ghi chú
Added an option to offset the retracement and extension levels vertically by a specified price range.
Phát hành các Ghi chú
Calculate retracement and extension levels using the following price sources:

Highest High and Lowest Low: The standard approach where the retracement is calculated using the highest high and lowest low within the lookback period.

Highest Closing Price and Lowest Closing Price: The retracement is calculated using the highest and lowest closing prices within the lookback period.

Highest Volume Bullish/Bearish Bars: The retracement is calculated using the closing prices of the bars with the highest volume, where one bar closed above its open (bullish) and the other bar closed below its open (bearish).

Phát hành các Ghi chú
Typos fixed
Phát hành các Ghi chú
Added more ways for adjusting retracement/extension levels
Phát hành các Ghi chú
Fixed typos. Added extension levels.
multitimeframeSupport and Resistance
insideandup

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm