Library "lib_retracement_patterns" types and functions for XABCD pattern detection and plotting
method set_tolerances(this, tolerance_Bmin, tolerance_Bmax, tolerance_Cmin, tolerance_Cmax, tolerance_Dmin, tolerance_Dmax) sets tolerances for B, C and D retracements. This creates another Pattern instance that is set as tolerances field on the original and will be used for detection instead of the original ratios. Namespace types: Pattern
method length(this) return the length of this pattern, determined by the distance between X and D point Namespace types: Match
method height(this) return the height of this pattern, determined by the distance between the biggest distance between A/C and X/D Namespace types: Match
method is_forming(this) returns true if not complete, not expired and not invalidated Namespace types: Match
method tostring(this) return a string representation of all Matches in this map Namespace types: Match
method is_engulfed_by(this, other) checks if this Match is engulfed by the other Namespace types: Match
method update(tracking_matches, zigzag, patterns, max_age_idx, detect_dir, pattern_minlen, pattern_maxlen, max_sub_waves, max_shared_legs, max_XB_BD_ratio, debug_log) checks this map of tracking Matches if any of them was completed or invalidated in Namespace types: map<string, Match>
method mute(this, mute_color, mute_fill_color) mute this pattern by making it all one color (lines and labels, for pattern fill there's another) Namespace types: Match
method mute(this, mute_color, mute_fill_color) mute all patterns in this map by making it all one color (lines and labels, for pattern fill there's another) Namespace types: map<string, Match>
method hide(this) hide this pattern by muting it with a transparent color Namespace types: Match
method reset_styles(this) reset the style of a muted or hidden match back to the preset configuration Namespace types: Match
method delete(this) remove the plot of this Match from the chart Namespace types: Match
method delete(this) remove all the plots of the Matches in this map from the chart Namespace types: map<string, Match>
method draw(this) draw this Match on the chart Namespace types: Match
method draw(this, config, all_patterns, debug_log) draw all Matches in this map, considering all other patterns for engulfing and overlapping Namespace types: map<string, Match>
method check_hide_or_mute(this, all, config, debug_log) checks if this pattern needs to be hidden or muted based on other plotted patterns and given configuration Namespace types: Match
method add_if(id, item, condition) convenience function to add a search pattern to a list, only if given condition (input.bool) is true Namespace types: Pattern[]
Pattern type to hold retracement ratios and tolerances for this pattern, as well as targets for trades
Config allows control of pattern plotting shape and colors, as well as settings for hiding overlapped patterns etc.
Match holds all information on a Pattern and a successful match in the chart. Includes XABCD pivot points as well as all Line and Label objects to draw it
ملاحظات الأخبار
⋅
v2 added custom parameter for terminal bar label offset