PINE LIBRARY
debugginms

Library: debugginms
A utility library for Pine Script focused on time formatting, candle logic, and liquidity analysis.
Time & Session
oneBar(): Returns bar duration in milliseconds.
TF(t, timeOnly): Formats timestamp t into a readable string.
inSession(range): Checks if the current bar is within a specific time session.
enforceTimeLimit(limits): Validates time against a newline-separated list of restricted times.
getDuration(s, e): Calculates the difference between two timestamps.
formatTimeframe(): Returns the current chart timeframe as a formatted string.
Candle & Price Logic
isUp(i) / isDown(i): Returns true if the candle at index i is bullish or bearish.
barClose(price, up, strict): Checks if a candle closed above/below a level (includes "strict" equality toggle).
avg(a, b): Returns the average of two float values.
Liquidity & Sweeps
processSweep(L, price, up, leftB): Counts liquidity sweeps within an array based on price and direction.
nearestSwing(startTime, bullish, max_tp, min_p): Locates the closest swing point within defined price bounds.
UDT liquidity: Custom type storing price, time, original price/time, and sweep counts.
Formatting & Conversions
S(val): Overloaded function to convert float, int, or bool to a string.
S2(val): Alternative string formatting for float data.
lineStyleTextToVal(val): Converts string input to Pine line.style constants.
devToArray / getDev: Utilities for handling and calculating deviation levels.
A utility library for Pine Script focused on time formatting, candle logic, and liquidity analysis.
Time & Session
oneBar(): Returns bar duration in milliseconds.
TF(t, timeOnly): Formats timestamp t into a readable string.
inSession(range): Checks if the current bar is within a specific time session.
enforceTimeLimit(limits): Validates time against a newline-separated list of restricted times.
getDuration(s, e): Calculates the difference between two timestamps.
formatTimeframe(): Returns the current chart timeframe as a formatted string.
Candle & Price Logic
isUp(i) / isDown(i): Returns true if the candle at index i is bullish or bearish.
barClose(price, up, strict): Checks if a candle closed above/below a level (includes "strict" equality toggle).
avg(a, b): Returns the average of two float values.
Liquidity & Sweeps
processSweep(L, price, up, leftB): Counts liquidity sweeps within an array based on price and direction.
nearestSwing(startTime, bullish, max_tp, min_p): Locates the closest swing point within defined price bounds.
UDT liquidity: Custom type storing price, time, original price/time, and sweep counts.
Formatting & Conversions
S(val): Overloaded function to convert float, int, or bool to a string.
S2(val): Alternative string formatting for float data.
lineStyleTextToVal(val): Converts string input to Pine line.style constants.
devToArray / getDev: Utilities for handling and calculating deviation levels.
Pineライブラリ
TradingViewの精神に則り、作者はこのPineコードをオープンソースライブラリとして公開してくれました。コミュニティの他のPineプログラマーが再利用できるようにという配慮です。作者に拍手を!このライブラリは個人利用や他のオープンソースの公開コンテンツで使用できますが、公開物でのコードの再利用はハウスルールに準じる必要があります。
Access instructions and lifetime membership details are available in the Signature below
MarketMakeriQ
MarketMakeriQ
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
Pineライブラリ
TradingViewの精神に則り、作者はこのPineコードをオープンソースライブラリとして公開してくれました。コミュニティの他のPineプログラマーが再利用できるようにという配慮です。作者に拍手を!このライブラリは個人利用や他のオープンソースの公開コンテンツで使用できますが、公開物でのコードの再利用はハウスルールに準じる必要があります。
Access instructions and lifetime membership details are available in the Signature below
MarketMakeriQ
MarketMakeriQ
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。