PINE LIBRARY
מעודכן harmonicpatterns

Library "harmonicpatterns"
harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :)
isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Gartley. False otherwise.
isBatPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isBatPattern: Checks for harmonic pattern Bat
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Bat. False otherwise.
isButterflyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isButterflyPattern: Checks for harmonic pattern Butterfly
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Butterfly. False otherwise.
isCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isCrabPattern: Checks for harmonic pattern Crab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Crab. False otherwise.
isDeepCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isDeepCrabPattern: Checks for harmonic pattern DeepCrab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is DeepCrab. False otherwise.
isCypherPattern(xabRatio, axcRatio, xadRatio, err_min, err_max) isCypherPattern: Checks for harmonic pattern Cypher
Parameters:
xabRatio: AB/XA
axcRatio: XC/AX
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Cypher. False otherwise.
isSharkPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isSharkPattern: Checks for harmonic pattern Shark
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Shark. False otherwise.
isNenStarPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isNenStarPattern: Checks for harmonic pattern Nenstar
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Nenstar. False otherwise.
isAntiNenStarPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiNenStarPattern: Checks for harmonic pattern Anti NenStar
Parameters:
xabRatio: - AB/XA
abcRatio: - BC/AB
bcdRatio: - CD/BC
xadRatio: - AD/XA
err_min: - Minumum error threshold
err_max: - Maximum error threshold
Returns: True if the pattern is Anti NenStar. False otherwise.
isAntiSharkPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiSharkPattern: Checks for harmonic pattern Anti Shark
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Shark. False otherwise.
isAntiCypherPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiCypherPattern: Checks for harmonic pattern Anti Cypher
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Cypher. False otherwise.
isAntiCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiCrabPattern: Checks for harmonic pattern Anti Crab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Crab. False otherwise.
isAntiBatPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiBatPattern: Checks for harmonic pattern Anti Bat
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Bat. False otherwise.
isAntiGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiGartleyPattern: Checks for harmonic pattern Anti Gartley
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Gartley. False otherwise.
isNavarro200Pattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isNavarro200Pattern: Checks for harmonic pattern Navarro200
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Navarro200. False otherwise.
isHarmonicPattern(x, a, c, c, d, flags, errorPercent) isHarmonicPattern: Checks for harmonic patterns
Parameters:
x: X coordinate value
a: A coordinate value
c: 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
harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :)
isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Gartley. False otherwise.
isBatPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isBatPattern: Checks for harmonic pattern Bat
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Bat. False otherwise.
isButterflyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isButterflyPattern: Checks for harmonic pattern Butterfly
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Butterfly. False otherwise.
isCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isCrabPattern: Checks for harmonic pattern Crab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Crab. False otherwise.
isDeepCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isDeepCrabPattern: Checks for harmonic pattern DeepCrab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is DeepCrab. False otherwise.
isCypherPattern(xabRatio, axcRatio, xadRatio, err_min, err_max) isCypherPattern: Checks for harmonic pattern Cypher
Parameters:
xabRatio: AB/XA
axcRatio: XC/AX
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Cypher. False otherwise.
isSharkPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isSharkPattern: Checks for harmonic pattern Shark
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Shark. False otherwise.
isNenStarPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isNenStarPattern: Checks for harmonic pattern Nenstar
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Nenstar. False otherwise.
isAntiNenStarPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiNenStarPattern: Checks for harmonic pattern Anti NenStar
Parameters:
xabRatio: - AB/XA
abcRatio: - BC/AB
bcdRatio: - CD/BC
xadRatio: - AD/XA
err_min: - Minumum error threshold
err_max: - Maximum error threshold
Returns: True if the pattern is Anti NenStar. False otherwise.
isAntiSharkPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiSharkPattern: Checks for harmonic pattern Anti Shark
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Shark. False otherwise.
isAntiCypherPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiCypherPattern: Checks for harmonic pattern Anti Cypher
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Cypher. False otherwise.
isAntiCrabPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiCrabPattern: Checks for harmonic pattern Anti Crab
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Crab. False otherwise.
isAntiBatPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiBatPattern: Checks for harmonic pattern Anti Bat
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Bat. False otherwise.
isAntiGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isAntiGartleyPattern: Checks for harmonic pattern Anti Gartley
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Anti Gartley. False otherwise.
isNavarro200Pattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isNavarro200Pattern: Checks for harmonic pattern Navarro200
Parameters:
xabRatio: AB/XA
abcRatio: BC/AB
bcdRatio: CD/BC
xadRatio: AD/XA
err_min: Minumum error threshold
err_max: Maximum error threshold
Returns: True if the pattern is Navarro200. False otherwise.
isHarmonicPattern(x, a, c, c, d, flags, errorPercent) isHarmonicPattern: Checks for harmonic patterns
Parameters:
x: X coordinate value
a: A coordinate value
c: 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
הערות שחרור
v2ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.