PINE LIBRARY
Cập nhật ahpuhelper

Library "ahpuhelper"
Helper Library for Auto Harmonic Patterns UltimateX. It is not meaningful for others. This is supposed to be private library. But, publishing it to make sure that I don't delete accidentally. Some functions may be useful for coders.
insert_open_trades_table_column(showOpenTrades, table_id, column, colors, values, intStatus, harmonicTrailingStartState, lblSizeOpenTrades)
add data to open trades table column
Parameters:
showOpenTrades: flag to show open trades table
table_id: Table Id
column: refers to pattern data
colors: backgroud and text color array
values: cell values
intStatus: status as integer
harmonicTrailingStartState: trailing Start state as per configs
lblSizeOpenTrades: text size
Returns: nextColumn
populate_closed_stats(ClosedStatsPosition, bullishCounts, bearishCounts, bullishRetouchCounts, bearishRetouchCounts, bullishSizeMatrix, bearishSizeMatrix, bullishRR, bearishRR, allPatternLabels, flags, rowMain, rowHeaders)
populate closed stats for harmonic patterns
Parameters:
ClosedStatsPosition: Table position for closed stats
bullishCounts: Matrix containing bullish trade stats
bearishCounts: Matrix containing bearish trade stats
bullishRetouchCounts: Matrix containing bullish trade stats for those which retouched entry
bearishRetouchCounts: Matrix containing bearish trade stats for those which retouched entry
bullishSizeMatrix: Matrix containing data about size of bullish patterns
bearishSizeMatrix: Matrix containing data about size of bearish patterns
bullishRR: Matrix containing Risk Reward data of bullish patterns
bearishRR: Matrix containing Risk Reward data of bearish patterns
allPatternLabels: array containing pattern labels
flags: display flags
rowMain: Pattern header data
rowHeaders: header grouping data
Returns: void
get_rr_details(patternTradeDetails, harmonicTrailingStartState, disableTrail, breakEvenTrail)
calculate and return risk reward based on targets and stops
Parameters:
patternTradeDetails: array containing stop, entry and targets
harmonicTrailingStartState: trailing point
disableTrail: If set, ignores trailing point
breakEvenTrail: If set, trailing does not go beyond breakeven.
Returns: nextColumn
Helper Library for Auto Harmonic Patterns UltimateX. It is not meaningful for others. This is supposed to be private library. But, publishing it to make sure that I don't delete accidentally. Some functions may be useful for coders.
insert_open_trades_table_column(showOpenTrades, table_id, column, colors, values, intStatus, harmonicTrailingStartState, lblSizeOpenTrades)
add data to open trades table column
Parameters:
showOpenTrades: flag to show open trades table
table_id: Table Id
column: refers to pattern data
colors: backgroud and text color array
values: cell values
intStatus: status as integer
harmonicTrailingStartState: trailing Start state as per configs
lblSizeOpenTrades: text size
Returns: nextColumn
populate_closed_stats(ClosedStatsPosition, bullishCounts, bearishCounts, bullishRetouchCounts, bearishRetouchCounts, bullishSizeMatrix, bearishSizeMatrix, bullishRR, bearishRR, allPatternLabels, flags, rowMain, rowHeaders)
populate closed stats for harmonic patterns
Parameters:
ClosedStatsPosition: Table position for closed stats
bullishCounts: Matrix containing bullish trade stats
bearishCounts: Matrix containing bearish trade stats
bullishRetouchCounts: Matrix containing bullish trade stats for those which retouched entry
bearishRetouchCounts: Matrix containing bearish trade stats for those which retouched entry
bullishSizeMatrix: Matrix containing data about size of bullish patterns
bearishSizeMatrix: Matrix containing data about size of bearish patterns
bullishRR: Matrix containing Risk Reward data of bullish patterns
bearishRR: Matrix containing Risk Reward data of bearish patterns
allPatternLabels: array containing pattern labels
flags: display flags
rowMain: Pattern header data
rowHeaders: header grouping data
Returns: void
get_rr_details(patternTradeDetails, harmonicTrailingStartState, disableTrail, breakEvenTrail)
calculate and return risk reward based on targets and stops
Parameters:
patternTradeDetails: array containing stop, entry and targets
harmonicTrailingStartState: trailing point
disableTrail: If set, ignores trailing point
breakEvenTrail: If set, trailing does not go beyond breakeven.
Returns: nextColumn
Phát hành các Ghi chú
v2Added:
getRR(entry, stop, targets)
populate risk reward based on entry, stop, and targets
Parameters:
entry (float): Entry price or ratio
stop (float): Stop price or ratio
targets (float[]): array of target prices or ratios
Returns: array containing risk reward and trailing risk reward
Updated:
populate_closed_stats(ClosedStatsPosition, patternsMatrix, bullishCounts, bearishCounts, bullishRetouchCounts, bearishRetouchCounts, bullishSizeMatrix, bearishSizeMatrix, rr, allPatternLabels, lblSizeClosedTrades, flags, rowMain, rowHeaders)
populate closed stats for harmonic patterns
Parameters:
ClosedStatsPosition (string): Table position for closed stats
patternsMatrix (matrix<bool>)
bullishCounts (matrix<int>): Matrix containing bullish trade stats
bearishCounts (matrix<int>): Matrix containing bearish trade stats
bullishRetouchCounts (matrix<int>): Matrix containing bullish trade stats for those which retouched entry
bearishRetouchCounts (matrix<int>): Matrix containing bearish trade stats for those which retouched entry
bullishSizeMatrix (matrix<int>): Matrix containing data about size of bullish patterns
bearishSizeMatrix (matrix<int>): Matrix containing data about size of bearish patterns
rr (string[])
allPatternLabels (string[]): array containing pattern labels
lblSizeClosedTrades (string)
flags (bool[]): display flags
rowMain (string[]): Pattern header data
rowHeaders (string[]): header grouping data
Returns: void
Removed:
get_rr_details(patternTradeDetails, harmonicTrailingStartState, disableTrail, breakEvenTrail)
calculate and return risk reward based on targets and stops
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Disclosure: I am part of Trade Nation's Influencer program and receive a monthly fee for using their TradingView charts in my analyses and educational articles.
Subscribe - trendoscope.io/pricing
Disclosure: I am part of Trade Nation's Influencer program and receive a monthly fee for using their TradingView charts in my analyses and educational articles.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Disclosure: I am part of Trade Nation's Influencer program and receive a monthly fee for using their TradingView charts in my analyses and educational articles.
Subscribe - trendoscope.io/pricing
Disclosure: I am part of Trade Nation's Influencer program and receive a monthly fee for using their TradingView charts in my analyses and educational articles.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.