PriceActionToolsLibrary "PriceActionTools"
Custom tools for theme coloring, candle building, and price action structure.
getThemeColor(theme, isUp)
Gets a color based on a predefined theme and direction.
Parameters:
theme (string)
isUp (bool)
buildCandle(src, theme)
Builds custom candle data from a source series.
Parameters:
src (float)
theme (string)
method getStructure(state, src, pivot_len)
Calculates structure and updates the state object
Namespace types: PAState
Parameters:
state (PAState)
src (float)
pivot_len (simple int)
CustomCandle
Holds calculated custom candle data
Fields:
o (series float)
h (series float)
l (series float)
c (series float)
col (series color)
PAState
State tracker for pivot highs and lows
Fields:
last_ph (series float)
last_pl (series float)
is_hh (series bool)
is_lh (series bool)
is_hl (series bool)
is_ll (series bool)
ph (series float)
pl (series float)
Thư viện Pine Script®






















