PINE LIBRARY
Atualizado eHarmonicpatternsExtended

Library "eHarmonicpatternsExtended"
Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations. Republishing as new library instead of existing eHarmonicpatterns because I need that copy for existing scripts.
scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern
Parameters:
bcdRatio: AB/XA ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_abc_axc(abcRatio, axcRatio, err_min, err_max, patternArray) Checks if abc or axc ratio is in range of any harmonic pattern
Parameters:
abcRatio: BC/AB ratio
axcRatio: XC/AX ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_bcd(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern
Parameters:
bcdRatio: CD/BC ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_xad_xcd(xadRatio, xcdRatio, err_min, err_max, patternArray) Checks if xad or xcd ratio is in range of any harmonic pattern
Parameters:
xadRatio: AD/XA ratio
xcdRatio: CD/XC ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
isHarmonicPattern(x, a, b, c, d, flags, errorPercent) Checks for harmonic patterns
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
d: D coordinate value
flags: flags to check patterns. Send empty array to enable all
errorPercent: Error threshold
Returns: [patternArray, patternLabelArray] Array of boolean values which says whether valid pattern exist and array of corresponding pattern names
isHarmonicProjection(x, a, b, c, flags, errorPercent) Checks for harmonic pattern projection
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
flags: flags to check patterns. Send empty array to enable all
errorPercent: Error threshold
Returns: [patternArray, patternLabelArray] Array of boolean values which says whether valid pattern exist and array of corresponding pattern names.
get_prz_range(x, a, b, c, patternArray, errorPercent, start_adj, end_adj) Provides PRZ range based on BCD and XAD ranges
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
patternArray: Pattern flags for which PRZ range needs to be calculated
errorPercent: Error threshold
start_adj: - Adjustments for entry levels
end_adj: - Adjustments for stop levels
Returns: [dStart, dEnd] Start and end of consolidated PRZ range
get_prz_range_xad(x, a, b, c, patternArray, errorPercent, start_adj, end_adj) Provides PRZ range based on XAD range only
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
patternArray: Pattern flags for which PRZ range needs to be calculated
errorPercent: Error threshold
start_adj: - Adjustments for entry levels
end_adj: - Adjustments for stop levels
Returns: [dStart, dEnd] Start and end of consolidated PRZ range
Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations. Republishing as new library instead of existing eHarmonicpatterns because I need that copy for existing scripts.
scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern
Parameters:
bcdRatio: AB/XA ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_abc_axc(abcRatio, axcRatio, err_min, err_max, patternArray) Checks if abc or axc ratio is in range of any harmonic pattern
Parameters:
abcRatio: BC/AB ratio
axcRatio: XC/AX ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_bcd(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern
Parameters:
bcdRatio: CD/BC ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
scan_xad_xcd(xadRatio, xcdRatio, err_min, err_max, patternArray) Checks if xad or xcd ratio is in range of any harmonic pattern
Parameters:
xadRatio: AD/XA ratio
xcdRatio: CD/XC ratio
err_min: minimum error threshold
err_max: maximum error threshold
patternArray: Array containing pattern check flags. Checks are made only if flags are true. Upon check flgs are overwritten.
isHarmonicPattern(x, a, b, c, d, flags, errorPercent) Checks for harmonic patterns
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
d: D coordinate value
flags: flags to check patterns. Send empty array to enable all
errorPercent: Error threshold
Returns: [patternArray, patternLabelArray] Array of boolean values which says whether valid pattern exist and array of corresponding pattern names
isHarmonicProjection(x, a, b, c, flags, errorPercent) Checks for harmonic pattern projection
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
flags: flags to check patterns. Send empty array to enable all
errorPercent: Error threshold
Returns: [patternArray, patternLabelArray] Array of boolean values which says whether valid pattern exist and array of corresponding pattern names.
get_prz_range(x, a, b, c, patternArray, errorPercent, start_adj, end_adj) Provides PRZ range based on BCD and XAD ranges
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
patternArray: Pattern flags for which PRZ range needs to be calculated
errorPercent: Error threshold
start_adj: - Adjustments for entry levels
end_adj: - Adjustments for stop levels
Returns: [dStart, dEnd] Start and end of consolidated PRZ range
get_prz_range_xad(x, a, b, c, patternArray, errorPercent, start_adj, end_adj) Provides PRZ range based on XAD range only
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
patternArray: Pattern flags for which PRZ range needs to be calculated
errorPercent: Error threshold
start_adj: - Adjustments for entry levels
end_adj: - Adjustments for stop levels
Returns: [dStart, dEnd] Start and end of consolidated PRZ range
Notas de Lançamento
v2Minor correction :(
Notas de Lançamento
v3Added:
getSupportedPatterns(patternLabelArray) Returns the list of supported patterns in order
Parameters:
patternLabelArray: Supported Patterns
get_projection_range(x, a, b, c, patternArray, errorPercent, start_adj, end_adj) Provides Projection range based on BCD and XAD ranges
Parameters:
x: X coordinate value
a: A coordinate value
b: B coordinate value
c: C coordinate value
patternArray: Pattern flags for which PRZ range needs to be calculated
errorPercent: Error threshold
start_adj: - Adjustments for entry levels
end_adj: - Adjustments for stop levels
Returns: [startRange, endRange] Array containing start and end ranges
Notas de Lançamento
v4Notas de Lançamento
v5Removed:
scan_xab(bcdRatio, err_min, err_max, patternArray)
Checks if bcd ratio is in range of any harmonic pattern
scan_abc_axc(abcRatio, axcRatio, err_min, err_max, patternArray)
Checks if abc or axc ratio is in range of any harmonic pattern
scan_bcd(bcdRatio, err_min, err_max, patternArray)
Checks if bcd ratio is in range of any harmonic pattern
scan_xad_xcd(xadRatio, xcdRatio, err_min, err_max, patternArray)
Checks if xad or xcd ratio is in range of any harmonic pattern
Notas de Lançamento
v6Minor logical updates
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
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.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
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.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.