PINE LIBRARY
업데이트됨 OHLCVData

OHLCV Data Power Library
Multi-Timeframe Market Data with Mathematical Precision
📌 Overview
This Pine Script library provides structured OHLCV (Open, High, Low, Close, Volume) data across multiple timeframes using mathematically significant candle counts (powers of 3). Designed for technical analysts who work with fractal market patterns and need efficient access to higher timeframe data.
✨ Key Features
6 Timeframes: 5min, 1H, 4H, 6H, 1D, and 1W data
Power-of-3 Candle Counts: 3, 9, 27, 81, and 243 bars
Structured Data: Returns clean OHLCV objects with all price/volume components
Pine Script Optimized: Complies with all security() call restrictions
📊 Timeframe Functions
pinescript
f_get5M_3() // 3 candles of 5min data
f_get1H_27() // 27 candles of 1H data
f_get1D_81() // 81 candles of daily data
// ... and 27 other combinations
🚀 Usage Example
pinescript
import YourName/OHLCVData/1 as OHLCV
weeklyData = OHLCV.f_get1W_27() // Get 27 weekly candles
latestHigh = array.get(weeklyData, 0).high
plot(latestHigh, "Weekly High")
💡 Ideal For
Multi-timeframe analysis
Volume-profile studies
Fractal pattern detection
Higher timeframe confirmation
⚠️ Note
Replace "YourName" with your publishing username
All functions return arrays of OHLCV objects
Maximum lookback = 243 candles
📜 Version History
1.0 - Initial release (2024)
Multi-Timeframe Market Data with Mathematical Precision
📌 Overview
This Pine Script library provides structured OHLCV (Open, High, Low, Close, Volume) data across multiple timeframes using mathematically significant candle counts (powers of 3). Designed for technical analysts who work with fractal market patterns and need efficient access to higher timeframe data.
✨ Key Features
6 Timeframes: 5min, 1H, 4H, 6H, 1D, and 1W data
Power-of-3 Candle Counts: 3, 9, 27, 81, and 243 bars
Structured Data: Returns clean OHLCV objects with all price/volume components
Pine Script Optimized: Complies with all security() call restrictions
📊 Timeframe Functions
pinescript
f_get5M_3() // 3 candles of 5min data
f_get1H_27() // 27 candles of 1H data
f_get1D_81() // 81 candles of daily data
// ... and 27 other combinations
🚀 Usage Example
pinescript
import YourName/OHLCVData/1 as OHLCV
weeklyData = OHLCV.f_get1W_27() // Get 27 weekly candles
latestHigh = array.get(weeklyData, 0).high
plot(latestHigh, "Weekly High")
💡 Ideal For
Multi-timeframe analysis
Volume-profile studies
Fractal pattern detection
Higher timeframe confirmation
⚠️ Note
Replace "YourName" with your publishing username
All functions return arrays of OHLCV objects
Maximum lookback = 243 candles
📜 Version History
1.0 - Initial release (2024)
릴리즈 노트
Key Fixes:Library Changes:
Added array size trimming for safety
Simplified the security call while maintaining functionality
릴리즈 노트
v3Added:
f_get4H_81()
f_get4H_243()
릴리즈 노트
v4Removed:
f_get4H_3()
f_get4H_27()
f_get4H_81()
f_get4H_243()
릴리즈 노트
v5Added:
getOHLCV(tf, count)
Parameters:
tf (string)
count (int)
getSupportedTimeframes()
getSupportedCounts()
Removed:
f_get4H_9()
릴리즈 노트
v6Added:
getAvailableCandleCount(tf)
Parameters:
tf (string)
Removed:
getSupportedCounts()
릴리즈 노트
v7릴리즈 노트
v8Added:
getAvailableHistory(tf)
Parameters:
tf (string)
getFirstValidIndex(tf)
Parameters:
tf (string)
getTimeAt(data, index)
Parameters:
data (array<OHLCV>)
index (int)
Updated:
OHLCV
Fields:
open (series float)
high (series float)
low (series float)
close (series float)
volume (series float)
time (series int)
Removed:
getAvailableCandleCount(tf)
릴리즈 노트
v9릴리즈 노트
v10Updated:
getOHLCV(timeframe, symbol, length)
Parameters:
timeframe (string)
symbol (string)
length (int)
Removed:
getAvailableHistory(tf)
getFirstValidIndex(tf)
getTimeAt(data, index)
getSupportedTimeframes()
릴리즈 노트
v11Added:
getTimeframeData(timeframe, symbol)
Parameters:
timeframe (string)
symbol (string)
TimeframeData
Fields:
ohlcv (OHLCV)
isAdjustedToChartTF (series bool)
isTargetBarClosed (series bool)
Removed:
getOHLCV(timeframe, symbol, length)
릴리즈 노트
v12릴리즈 노트
v13Updated:
OHLCV
Fields:
open (series float)
high (series float)
low (series float)
close (series float)
volume (series float)
time (series int)
bar_index (series int)
릴리즈 노트
v14Added:
getCurrentChartOHLCV()
getPreviousChartOHLCV(offset)
Parameters:
offset (int)
getRangePercent(ohlcv)
Parameters:
ohlcv (OHLCV)
getBodySize(ohlcv)
Parameters:
ohlcv (OHLCV)
getUpperWick(ohlcv)
Parameters:
ohlcv (OHLCV)
getLowerWick(ohlcv)
Parameters:
ohlcv (OHLCV)
isBullish(ohlcv)
Parameters:
ohlcv (OHLCV)
isBearish(ohlcv)
Parameters:
ohlcv (OHLCV)
isValidTimeframeData(tf)
Parameters:
tf (TimeframeData)
manualHTFAggregate(barsBack)
Parameters:
barsBack (int)
릴리즈 노트
v15Added:
getFirstTimestamp(src)
Parameters:
src (array<OHLCV>)
getLastTimestamp(src)
Parameters:
src (array<OHLCV>)
slice(src, start, end)
Parameters:
src (array<OHLCV>)
start (int)
end (int)
getHigh(src)
Parameters:
src (array<OHLCV>)
getLow(src)
Parameters:
src (array<OHLCV>)
getVolume(src)
Parameters:
src (array<OHLCV>)
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.