Skip to main content

quantwave_core/indicators/
pattern.rs

1pub use crate::indicators::incremental::cdl_doji::CDLDOJI;
2use crate::indicators::metadata::IndicatorMetadata;
3pub use crate::indicators::patterns::batch_b::CDLCOUNTERATTACK;
4pub use crate::indicators::patterns::batch_b::CDLDARKCLOUDCOVER;
5pub use crate::indicators::patterns::batch_b::CDLDOJISTAR;
6pub use crate::indicators::patterns::batch_b::CDLENGULFING;
7pub use crate::indicators::patterns::batch_b::CDLHANGINGMAN;
8pub use crate::indicators::patterns::batch_b::CDLHARAMI;
9pub use crate::indicators::patterns::batch_b::CDLHARAMICROSS;
10pub use crate::indicators::patterns::batch_b::CDLHOMINGPIGEON;
11pub use crate::indicators::patterns::batch_b::CDLINNECK;
12pub use crate::indicators::patterns::batch_b::CDLINVERTEDHAMMER;
13pub use crate::indicators::patterns::batch_b::CDLMATCHINGLOW;
14pub use crate::indicators::patterns::batch_b::CDLONNECK;
15pub use crate::indicators::patterns::batch_c::CDL2CROWS;
16pub use crate::indicators::patterns::batch_c::CDLHIKKAKE;
17pub use crate::indicators::patterns::batch_c::CDLHIKKAKEMOD;
18pub use crate::indicators::patterns::batch_c::CDLKICKING;
19pub use crate::indicators::patterns::batch_c::CDLKICKINGBYLENGTH;
20pub use crate::indicators::patterns::batch_c::CDLPIERCING;
21pub use crate::indicators::patterns::batch_c::CDLSEPARATINGLINES;
22pub use crate::indicators::patterns::batch_c::CDLSHOOTINGSTAR;
23pub use crate::indicators::patterns::batch_c::CDLSTICKSANDWICH;
24pub use crate::indicators::patterns::batch_c::CDLTHRUSTING;
25pub use crate::indicators::patterns::batch_d::CDL3BLACKCROWS;
26pub use crate::indicators::patterns::batch_d::CDL3INSIDE;
27pub use crate::indicators::patterns::batch_d::CDL3OUTSIDE;
28pub use crate::indicators::patterns::batch_d::CDL3STARSINSOUTH;
29pub use crate::indicators::patterns::batch_d::CDL3WHITESOLDIERS;
30pub use crate::indicators::patterns::batch_d::CDLABANDONEDBABY;
31pub use crate::indicators::patterns::batch_d::CDLADVANCEBLOCK;
32pub use crate::indicators::patterns::batch_d::CDLEVENINGDOJISTAR;
33pub use crate::indicators::patterns::batch_d::CDLEVENINGSTAR;
34pub use crate::indicators::patterns::batch_d::CDLMORNINGDOJISTAR;
35pub use crate::indicators::patterns::batch_d::CDLMORNINGSTAR;
36pub use crate::indicators::patterns::batch_e::CDLBREAKAWAY;
37pub use crate::indicators::patterns::batch_e::CDLCONCEALBABYSWALL;
38pub use crate::indicators::patterns::batch_e::CDLGAPSIDESIDEWHITE;
39pub use crate::indicators::patterns::batch_e::CDLIDENTICAL3CROWS;
40pub use crate::indicators::patterns::batch_e::CDLLADDERBOTTOM;
41pub use crate::indicators::patterns::batch_e::CDLMATHOLD;
42pub use crate::indicators::patterns::batch_e::CDLRISEFALL3METHODS;
43pub use crate::indicators::patterns::batch_e::CDLSTALLEDPATTERN;
44pub use crate::indicators::patterns::batch_e::CDLTASUKIGAP;
45pub use crate::indicators::patterns::batch_e::CDLTRISTAR;
46pub use crate::indicators::patterns::batch_e::CDLUNIQUE3RIVER;
47pub use crate::indicators::patterns::batch_e::CDLUPSIDEGAP2CROWS;
48pub use crate::indicators::patterns::batch_e::CDLXSIDEGAP3METHODS;
49pub use crate::indicators::patterns::cdl3linestrike::CDL3LINESTRIKE;
50pub use crate::indicators::patterns::cdlbelthold::CDLBELTHOLD;
51pub use crate::indicators::patterns::cdlclosingmarubozu::CDLCLOSINGMARUBOZU;
52pub use crate::indicators::patterns::cdldragonflydoji::CDLDRAGONFLYDOJI;
53pub use crate::indicators::patterns::cdlgravestonedoji::CDLGRAVESTONEDOJI;
54pub use crate::indicators::patterns::cdlhammer::CDLHAMMER;
55pub use crate::indicators::patterns::cdlhighwave::CDLHIGHWAVE;
56pub use crate::indicators::patterns::cdllongleggeddoji::CDLLONGLEGGEDDOJI;
57pub use crate::indicators::patterns::cdllongline::CDLLONGLINE;
58pub use crate::indicators::patterns::cdlmarubozu::CDLMARUBOZU;
59pub use crate::indicators::patterns::cdlrickshawman::CDLRICKSHAWMAN;
60pub use crate::indicators::patterns::cdlshortline::CDLSHORTLINE;
61pub use crate::indicators::patterns::cdlspinningtop::CDLSPINNINGTOP;
62pub use crate::indicators::patterns::cdltakuri::CDLTAKURI;
63#[allow(unused_imports)]
64use crate::traits::Next;
65
66#[cfg(test)]
67mod tests {
68    use proptest::prelude::*;
69
70    proptest! {}
71}
72
73pub const CDLDOJI_METADATA: IndicatorMetadata = IndicatorMetadata {
74    name: "Doji",
75    description: "A candlestick pattern where the open and close are virtually equal.",
76    usage: "Indicates indecision between buyers and sellers.",
77    keywords: &["pattern", "candlestick", "classic"],
78    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
79    params: &[],
80    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
81    formula_latex: r#"
82\text{Pattern Recognition Logic (TA-Lib Internal)}
83"#,
84    gold_standard_file: "cdldoji.json",
85    category: "Patterns",
86};
87
88pub const CDLHAMMER_METADATA: IndicatorMetadata = IndicatorMetadata {
89    name: "Hammer",
90    description: "A bullish reversal pattern with a small body and long lower shadow.",
91    usage: "Signals a potential bottom after a downtrend.",
92    keywords: &["pattern", "candlestick", "classic"],
93    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
94    params: &[],
95    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
96    formula_latex: r#"
97\text{Pattern Recognition Logic (TA-Lib Internal)}
98"#,
99    gold_standard_file: "cdlhammer.json",
100    category: "Patterns",
101};
102
103pub const CDLENGULFING_METADATA: IndicatorMetadata = IndicatorMetadata {
104    name: "Engulfing",
105    description: "A pattern where a larger candle completely covers the previous smaller candle.",
106    usage: "Signals a strong shift in momentum.",
107    keywords: &["pattern", "candlestick", "classic"],
108    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
109    params: &[],
110    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
111    formula_latex: r#"
112\text{Pattern Recognition Logic (TA-Lib Internal)}
113"#,
114    gold_standard_file: "cdlengulfing.json",
115    category: "Patterns",
116};
117
118pub const CDLCLOSINGMARUBOZU_METADATA: IndicatorMetadata = IndicatorMetadata {
119    name: "Closing Marubozu",
120    description: "A candle with no shadow at the closing end.",
121    usage: "Indicates strong conviction in the direction of the close.",
122    keywords: &["pattern", "candlestick", "classic"],
123    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
124    params: &[],
125    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
126    formula_latex: r#"
127\text{Pattern Recognition Logic (TA-Lib Internal)}
128"#,
129    gold_standard_file: "cdlclosingmarubozu.json",
130    category: "Patterns",
131};
132
133pub const CDLDRAGONFLYDOJI_METADATA: IndicatorMetadata = IndicatorMetadata {
134    name: "Dragonfly Doji",
135    description: "A doji with a long lower shadow and no upper shadow.",
136    usage: "Signals a potential bullish reversal.",
137    keywords: &["pattern", "candlestick", "classic"],
138    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
139    params: &[],
140    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
141    formula_latex: r#"
142\text{Pattern Recognition Logic (TA-Lib Internal)}
143"#,
144    gold_standard_file: "cdldragonflydoji.json",
145    category: "Patterns",
146};
147
148pub const CDLGRAVESTONEDOJI_METADATA: IndicatorMetadata = IndicatorMetadata {
149    name: "Gravestone Doji",
150    description: "A doji with a long upper shadow and no lower shadow.",
151    usage: "Signals a potential bearish reversal.",
152    keywords: &["pattern", "candlestick", "classic"],
153    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
154    params: &[],
155    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
156    formula_latex: r#"
157\text{Pattern Recognition Logic (TA-Lib Internal)}
158"#,
159    gold_standard_file: "cdlgravestonedoji.json",
160    category: "Patterns",
161};
162
163pub const CDLHIGHWAVE_METADATA: IndicatorMetadata = IndicatorMetadata {
164    name: "High-Wave Candle",
165    description: "A candle with very long shadows and a small body.",
166    usage: "Indicates extreme market confusion and volatility.",
167    keywords: &["pattern", "candlestick", "classic"],
168    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
169    params: &[],
170    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
171    formula_latex: r#"
172\text{Pattern Recognition Logic (TA-Lib Internal)}
173"#,
174    gold_standard_file: "cdlhighwave.json",
175    category: "Patterns",
176};
177
178pub const CDLLONGLEGGEDDOJI_METADATA: IndicatorMetadata = IndicatorMetadata {
179    name: "Long-Legged Doji",
180    description: "A doji with long shadows on both sides.",
181    usage: "Indicates a significant struggle between bulls and bears.",
182    keywords: &["pattern", "candlestick", "classic"],
183    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
184    params: &[],
185    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
186    formula_latex: r#"
187\text{Pattern Recognition Logic (TA-Lib Internal)}
188"#,
189    gold_standard_file: "cdllongleggeddoji.json",
190    category: "Patterns",
191};
192
193pub const CDLLONGLINE_METADATA: IndicatorMetadata = IndicatorMetadata {
194    name: "Long Line Candle",
195    description: "A candle with an unusually long body.",
196    usage: "Indicates strong momentum in the direction of the candle.",
197    keywords: &["pattern", "candlestick", "classic"],
198    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
199    params: &[],
200    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
201    formula_latex: r#"
202\text{Pattern Recognition Logic (TA-Lib Internal)}
203"#,
204    gold_standard_file: "cdllongline.json",
205    category: "Patterns",
206};
207
208pub const CDLMARUBOZU_METADATA: IndicatorMetadata = IndicatorMetadata {
209    name: "Marubozu",
210    description: "A candle with no shadows at either end.",
211    usage: "Indicates total dominance by one side for the entire period.",
212    keywords: &["pattern", "candlestick", "classic"],
213    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
214    params: &[],
215    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
216    formula_latex: r#"
217\text{Pattern Recognition Logic (TA-Lib Internal)}
218"#,
219    gold_standard_file: "cdlmarubozu.json",
220    category: "Patterns",
221};
222
223pub const CDLRICKSHAWMAN_METADATA: IndicatorMetadata = IndicatorMetadata {
224    name: "Rickshaw Man",
225    description: "A long-legged doji where the body is in the center of the range.",
226    usage: "Indicates total equilibrium and indecision.",
227    keywords: &["pattern", "candlestick", "classic"],
228    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
229    params: &[],
230    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
231    formula_latex: r#"
232\text{Pattern Recognition Logic (TA-Lib Internal)}
233"#,
234    gold_standard_file: "cdlrickshawman.json",
235    category: "Patterns",
236};
237
238pub const CDLSHORTLINE_METADATA: IndicatorMetadata = IndicatorMetadata {
239    name: "Short Line Candle",
240    description: "A candle with a small body and small shadows.",
241    usage: "Indicates low volatility and consolidation.",
242    keywords: &["pattern", "candlestick", "classic"],
243    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
244    params: &[],
245    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
246    formula_latex: r#"
247\text{Pattern Recognition Logic (TA-Lib Internal)}
248"#,
249    gold_standard_file: "cdlshortline.json",
250    category: "Patterns",
251};
252
253pub const CDLSPINNINGTOP_METADATA: IndicatorMetadata = IndicatorMetadata {
254    name: "Spinning Top",
255    description: "A candle with a small body and long shadows.",
256    usage: "Indicates indecision after a strong move.",
257    keywords: &["pattern", "candlestick", "classic"],
258    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
259    params: &[],
260    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
261    formula_latex: r#"
262\text{Pattern Recognition Logic (TA-Lib Internal)}
263"#,
264    gold_standard_file: "cdlspinningtop.json",
265    category: "Patterns",
266};
267
268pub const CDLTAKURI_METADATA: IndicatorMetadata = IndicatorMetadata {
269    name: "Takuri",
270    description: "A dragonfly doji with an exceptionally long lower shadow.",
271    usage: "Indicates a very strong rejection of lower prices.",
272    keywords: &["pattern", "candlestick", "classic"],
273    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
274    params: &[],
275    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
276    formula_latex: r#"
277\text{Pattern Recognition Logic (TA-Lib Internal)}
278"#,
279    gold_standard_file: "cdltakuri.json",
280    category: "Patterns",
281};
282
283pub const CDL2CROWS_METADATA: IndicatorMetadata = IndicatorMetadata {
284    name: "Two Crows",
285    description: "A bearish reversal pattern consisting of three candles.",
286    usage: "Signals a potential top in an uptrend.",
287    keywords: &["pattern", "candlestick", "classic"],
288    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
289    params: &[],
290    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
291    formula_latex: r#"
292\text{Pattern Recognition Logic (TA-Lib Internal)}
293"#,
294    gold_standard_file: "cdl2crows.json",
295    category: "Patterns",
296};
297
298pub const CDL3BLACKCROWS_METADATA: IndicatorMetadata = IndicatorMetadata {
299    name: "Three Black Crows",
300    description: "A bearish reversal pattern with three long red candles.",
301    usage: "Signals a major trend reversal to the downside.",
302    keywords: &["pattern", "candlestick", "classic"],
303    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
304    params: &[],
305    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
306    formula_latex: r#"
307\text{Pattern Recognition Logic (TA-Lib Internal)}
308"#,
309    gold_standard_file: "cdl3blackcrows.json",
310    category: "Patterns",
311};
312
313pub const CDL3INSIDE_METADATA: IndicatorMetadata = IndicatorMetadata {
314    name: "Three Inside Up/Down",
315    description: "A reversal pattern confirmed by a third candle.",
316    usage: "Signals a more reliable trend change than a simple harami.",
317    keywords: &["pattern", "candlestick", "classic"],
318    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
319    params: &[],
320    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
321    formula_latex: r#"
322\text{Pattern Recognition Logic (TA-Lib Internal)}
323"#,
324    gold_standard_file: "cdl3inside.json",
325    category: "Patterns",
326};
327
328pub const CDL3LINESTRIKE_METADATA: IndicatorMetadata = IndicatorMetadata {
329    name: "Three-Line Strike",
330    description: "A continuation pattern where four candles are involved.",
331    usage: "Signals a temporary pause before the trend continues.",
332    keywords: &["pattern", "candlestick", "classic"],
333    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
334    params: &[],
335    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
336    formula_latex: r#"
337\text{Pattern Recognition Logic (TA-Lib Internal)}
338"#,
339    gold_standard_file: "cdl3linestrike.json",
340    category: "Patterns",
341};
342
343pub const CDL3OUTSIDE_METADATA: IndicatorMetadata = IndicatorMetadata {
344    name: "Three Outside Up/Down",
345    description: "A reversal pattern confirmed by a third candle.",
346    usage: "Signals a more reliable trend change than a simple engulfing.",
347    keywords: &["pattern", "candlestick", "classic"],
348    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
349    params: &[],
350    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
351    formula_latex: r#"
352\text{Pattern Recognition Logic (TA-Lib Internal)}
353"#,
354    gold_standard_file: "cdl3outside.json",
355    category: "Patterns",
356};
357
358pub const CDL3STARSINSOUTH_METADATA: IndicatorMetadata = IndicatorMetadata {
359    name: "Three Stars In The South",
360    description: "A rare bullish reversal pattern in a downtrend.",
361    usage: "Indicates a gradual exhaustion of selling pressure.",
362    keywords: &["pattern", "candlestick", "classic"],
363    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
364    params: &[],
365    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
366    formula_latex: r#"
367\text{Pattern Recognition Logic (TA-Lib Internal)}
368"#,
369    gold_standard_file: "cdl3starsinsouth.json",
370    category: "Patterns",
371};
372
373pub const CDL3WHITESOLDIERS_METADATA: IndicatorMetadata = IndicatorMetadata {
374    name: "Three White Soldiers",
375    description: "A bullish reversal pattern with three long green candles.",
376    usage: "Signals a major trend reversal to the upside.",
377    keywords: &["pattern", "candlestick", "classic"],
378    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
379    params: &[],
380    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
381    formula_latex: r#"
382\text{Pattern Recognition Logic (TA-Lib Internal)}
383"#,
384    gold_standard_file: "cdl3whitesoldiers.json",
385    category: "Patterns",
386};
387
388pub const CDLABANDONEDBABY_METADATA: IndicatorMetadata = IndicatorMetadata {
389    name: "Abandoned Baby",
390    description: "A very rare reversal pattern with a doji gapping away.",
391    usage: "One of the most reliable reversal signals.",
392    keywords: &["pattern", "candlestick", "classic"],
393    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
394    params: &[],
395    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
396    formula_latex: r#"
397\text{Pattern Recognition Logic (TA-Lib Internal)}
398"#,
399    gold_standard_file: "cdlabandonedbaby.json",
400    category: "Patterns",
401};
402
403pub const CDLADVANCEBLOCK_METADATA: IndicatorMetadata = IndicatorMetadata {
404    name: "Advance Block",
405    description: "A bearish reversal pattern in an uptrend.",
406    usage: "Indicates weakening momentum in an upward move.",
407    keywords: &["pattern", "candlestick", "classic"],
408    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
409    params: &[],
410    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
411    formula_latex: r#"
412\text{Pattern Recognition Logic (TA-Lib Internal)}
413"#,
414    gold_standard_file: "cdladvanceblock.json",
415    category: "Patterns",
416};
417
418pub const CDLBELTHOLD_METADATA: IndicatorMetadata = IndicatorMetadata {
419    name: "Belt-Hold",
420    description: "A single candle pattern signaling a reversal.",
421    usage: "Indicates a strong opening in the opposite direction of the trend.",
422    keywords: &["pattern", "candlestick", "classic"],
423    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
424    params: &[],
425    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
426    formula_latex: r#"
427\text{Pattern Recognition Logic (TA-Lib Internal)}
428"#,
429    gold_standard_file: "cdlbelthold.json",
430    category: "Patterns",
431};
432
433pub const CDLBREAKAWAY_METADATA: IndicatorMetadata = IndicatorMetadata {
434    name: "Breakaway",
435    description: "A five-candle reversal pattern.",
436    usage: "Signals the breakout from a short-term consolidation.",
437    keywords: &["pattern", "candlestick", "classic"],
438    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
439    params: &[],
440    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
441    formula_latex: r#"
442\text{Pattern Recognition Logic (TA-Lib Internal)}
443"#,
444    gold_standard_file: "cdlbreakaway.json",
445    category: "Patterns",
446};
447
448pub const CDLCONCEALBABYSWALL_METADATA: IndicatorMetadata = IndicatorMetadata {
449    name: "Concealed Baby Swallow",
450    description: "A rare bullish reversal pattern.",
451    usage: "Indicates a final 'flush out' before a reversal.",
452    keywords: &["pattern", "candlestick", "classic"],
453    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
454    params: &[],
455    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
456    formula_latex: r#"
457\text{Pattern Recognition Logic (TA-Lib Internal)}
458"#,
459    gold_standard_file: "cdlconcealbabyswall.json",
460    category: "Patterns",
461};
462
463pub const CDLCOUNTERATTACK_METADATA: IndicatorMetadata = IndicatorMetadata {
464    name: "Counterattack",
465    description: "A reversal pattern where the second candle closes at the same level as the first.",
466    usage: "Signals a stalemate after a strong move.",
467    keywords: &["pattern", "candlestick", "classic"],
468    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
469    params: &[],
470    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
471    formula_latex: r#"
472\text{Pattern Recognition Logic (TA-Lib Internal)}
473"#,
474    gold_standard_file: "cdlcounterattack.json",
475    category: "Patterns",
476};
477
478pub const CDLDARKCLOUDCOVER_METADATA: IndicatorMetadata = IndicatorMetadata {
479    name: "Dark Cloud Cover",
480    description: "A bearish reversal pattern in an uptrend.",
481    usage: "Indicates a significant rejection of higher prices.",
482    keywords: &["pattern", "candlestick", "classic"],
483    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
484    params: &[],
485    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
486    formula_latex: r#"
487\text{Pattern Recognition Logic (TA-Lib Internal)}
488"#,
489    gold_standard_file: "cdldarkcloudcover.json",
490    category: "Patterns",
491};
492
493pub const CDLDOJISTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
494    name: "Doji Star",
495    description: "A reversal pattern where a doji gaps away.",
496    usage: "Signals a potential shift in trend momentum.",
497    keywords: &["pattern", "candlestick", "classic"],
498    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
499    params: &[],
500    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
501    formula_latex: r#"
502\text{Pattern Recognition Logic (TA-Lib Internal)}
503"#,
504    gold_standard_file: "cdldojistar.json",
505    category: "Patterns",
506};
507
508pub const CDLEVENINGDOJISTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
509    name: "Evening Doji Star",
510    description: "A bearish reversal pattern involving a doji.",
511    usage: "A highly reliable signal of a market top.",
512    keywords: &["pattern", "candlestick", "classic"],
513    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
514    params: &[],
515    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
516    formula_latex: r#"
517\text{Pattern Recognition Logic (TA-Lib Internal)}
518"#,
519    gold_standard_file: "cdleveningdojistar.json",
520    category: "Patterns",
521};
522
523pub const CDLEVENINGSTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
524    name: "Evening Star",
525    description: "A bearish reversal pattern with three candles.",
526    usage: "Signals a peak in an uptrend.",
527    keywords: &["pattern", "candlestick", "classic"],
528    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
529    params: &[],
530    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
531    formula_latex: r#"
532\text{Pattern Recognition Logic (TA-Lib Internal)}
533"#,
534    gold_standard_file: "cdleveningstar.json",
535    category: "Patterns",
536};
537
538pub const CDLGAPSIDESIDEWHITE_METADATA: IndicatorMetadata = IndicatorMetadata {
539    name: "Up/Down-Gap Side-By-Side White Lines",
540    description: "A continuation pattern involving gaps.",
541    usage: "Signals that the current trend is likely to continue.",
542    keywords: &["pattern", "candlestick", "classic"],
543    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
544    params: &[],
545    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
546    formula_latex: r#"
547\text{Pattern Recognition Logic (TA-Lib Internal)}
548"#,
549    gold_standard_file: "cdlgapsidesidewhite.json",
550    category: "Patterns",
551};
552
553pub const CDLHANGINGMAN_METADATA: IndicatorMetadata = IndicatorMetadata {
554    name: "Hanging Man",
555    description: "A bearish reversal pattern at the top of an uptrend.",
556    usage: "Signals a potential breakdown after a period of buying.",
557    keywords: &["pattern", "candlestick", "classic"],
558    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
559    params: &[],
560    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
561    formula_latex: r#"
562\text{Pattern Recognition Logic (TA-Lib Internal)}
563"#,
564    gold_standard_file: "cdlhangingman.json",
565    category: "Patterns",
566};
567
568pub const CDLHARAMI_METADATA: IndicatorMetadata = IndicatorMetadata {
569    name: "Harami",
570    description: "A two-candle reversal pattern where the second is inside the first.",
571    usage: "Signals a potential trend exhaustion.",
572    keywords: &["pattern", "candlestick", "classic"],
573    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
574    params: &[],
575    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
576    formula_latex: r#"
577\text{Pattern Recognition Logic (TA-Lib Internal)}
578"#,
579    gold_standard_file: "cdlharami.json",
580    category: "Patterns",
581};
582
583pub const CDLHARAMICROSS_METADATA: IndicatorMetadata = IndicatorMetadata {
584    name: "Harami Cross",
585    description: "A harami where the second candle is a doji.",
586    usage: "A more reliable reversal signal than a standard harami.",
587    keywords: &["pattern", "candlestick", "classic"],
588    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
589    params: &[],
590    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
591    formula_latex: r#"
592\text{Pattern Recognition Logic (TA-Lib Internal)}
593"#,
594    gold_standard_file: "cdlharamicross.json",
595    category: "Patterns",
596};
597
598pub const CDLHIKKAKE_METADATA: IndicatorMetadata = IndicatorMetadata {
599    name: "Hikkake Pattern",
600    description: "A trap pattern used to identify false breakouts.",
601    usage: "Signals a move in the opposite direction of the trap.",
602    keywords: &["pattern", "candlestick", "classic"],
603    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
604    params: &[],
605    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
606    formula_latex: r#"
607\text{Pattern Recognition Logic (TA-Lib Internal)}
608"#,
609    gold_standard_file: "cdlhikkake.json",
610    category: "Patterns",
611};
612
613pub const CDLHIKKAKEMOD_METADATA: IndicatorMetadata = IndicatorMetadata {
614    name: "Modified Hikkake Pattern",
615    description: "A more conservative version of the Hikkake.",
616    usage: "Provides a higher probability signal.",
617    keywords: &["pattern", "candlestick", "classic"],
618    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
619    params: &[],
620    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
621    formula_latex: r#"
622\text{Pattern Recognition Logic (TA-Lib Internal)}
623"#,
624    gold_standard_file: "cdlhikkakemod.json",
625    category: "Patterns",
626};
627
628pub const CDLHOMINGPIGEON_METADATA: IndicatorMetadata = IndicatorMetadata {
629    name: "Homing Pigeon",
630    description: "A bullish reversal pattern in a downtrend.",
631    usage: "Signals a potential bottom.",
632    keywords: &["pattern", "candlestick", "classic"],
633    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
634    params: &[],
635    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
636    formula_latex: r#"
637\text{Pattern Recognition Logic (TA-Lib Internal)}
638"#,
639    gold_standard_file: "cdlhomingpigeon.json",
640    category: "Patterns",
641};
642
643pub const CDLIDENTICAL3CROWS_METADATA: IndicatorMetadata = IndicatorMetadata {
644    name: "Identical Three Crows",
645    description: "A bearish reversal pattern with three identical candles.",
646    usage: "Signals a very strong trend change.",
647    keywords: &["pattern", "candlestick", "classic"],
648    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
649    params: &[],
650    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
651    formula_latex: r#"
652\text{Pattern Recognition Logic (TA-Lib Internal)}
653"#,
654    gold_standard_file: "cdlidentical3crows.json",
655    category: "Patterns",
656};
657
658pub const CDLINNECK_METADATA: IndicatorMetadata = IndicatorMetadata {
659    name: "In-Neck Pattern",
660    description: "A bearish continuation pattern.",
661    usage: "Indicates that the downward move is not yet over.",
662    keywords: &["pattern", "candlestick", "classic"],
663    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
664    params: &[],
665    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
666    formula_latex: r#"
667\text{Pattern Recognition Logic (TA-Lib Internal)}
668"#,
669    gold_standard_file: "cdlinneck.json",
670    category: "Patterns",
671};
672
673pub const CDLINVERTEDHAMMER_METADATA: IndicatorMetadata = IndicatorMetadata {
674    name: "Inverted Hammer",
675    description: "A bullish reversal pattern at the bottom of a downtrend.",
676    usage: "Signals a potential move to the upside.",
677    keywords: &["pattern", "candlestick", "classic"],
678    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
679    params: &[],
680    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
681    formula_latex: r#"
682\text{Pattern Recognition Logic (TA-Lib Internal)}
683"#,
684    gold_standard_file: "cdlinvertedhammer.json",
685    category: "Patterns",
686};
687
688pub const CDLKICKING_METADATA: IndicatorMetadata = IndicatorMetadata {
689    name: "Kicking",
690    description: "A two-candle reversal pattern involving a gap.",
691    usage: "Signals a violent shift in market sentiment.",
692    keywords: &["pattern", "candlestick", "classic"],
693    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
694    params: &[],
695    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
696    formula_latex: r#"
697\text{Pattern Recognition Logic (TA-Lib Internal)}
698"#,
699    gold_standard_file: "cdlkicking.json",
700    category: "Patterns",
701};
702
703pub const CDLKICKINGBYLENGTH_METADATA: IndicatorMetadata = IndicatorMetadata {
704    name: "Kicking - bull/bear determined by longer marubozu",
705    description: "A variation of the kicking pattern.",
706    usage: "Focuses on the relative strength of the marubozus.",
707    keywords: &["pattern", "candlestick", "classic"],
708    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
709    params: &[],
710    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
711    formula_latex: r#"
712\text{Pattern Recognition Logic (TA-Lib Internal)}
713"#,
714    gold_standard_file: "cdlkickingbylength.json",
715    category: "Patterns",
716};
717
718pub const CDLLADDERBOTTOM_METADATA: IndicatorMetadata = IndicatorMetadata {
719    name: "Ladder Bottom",
720    description: "A five-candle bullish reversal pattern.",
721    usage: "Signals a major bottom after a steady decline.",
722    keywords: &["pattern", "candlestick", "classic"],
723    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
724    params: &[],
725    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
726    formula_latex: r#"
727\text{Pattern Recognition Logic (TA-Lib Internal)}
728"#,
729    gold_standard_file: "cdlladderbottom.json",
730    category: "Patterns",
731};
732
733pub const CDLMATCHINGLOW_METADATA: IndicatorMetadata = IndicatorMetadata {
734    name: "Matching Low",
735    description: "A bullish reversal pattern with two identical lows.",
736    usage: "Signals support at a specific price level.",
737    keywords: &["pattern", "candlestick", "classic"],
738    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
739    params: &[],
740    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
741    formula_latex: r#"
742\text{Pattern Recognition Logic (TA-Lib Internal)}
743"#,
744    gold_standard_file: "cdlmatchinglow.json",
745    category: "Patterns",
746};
747
748pub const CDLMATHOLD_METADATA: IndicatorMetadata = IndicatorMetadata {
749    name: "Mat Hold",
750    description: "A bullish continuation pattern.",
751    usage: "Signals a strong trend that is likely to persist.",
752    keywords: &["pattern", "candlestick", "classic"],
753    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
754    params: &[],
755    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
756    formula_latex: r#"
757\text{Pattern Recognition Logic (TA-Lib Internal)}
758"#,
759    gold_standard_file: "cdlmathold.json",
760    category: "Patterns",
761};
762
763pub const CDLMORNINGDOJISTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
764    name: "Morning Doji Star",
765    description: "A bullish reversal pattern involving a doji.",
766    usage: "A highly reliable signal of a market bottom.",
767    keywords: &["pattern", "candlestick", "classic"],
768    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
769    params: &[],
770    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
771    formula_latex: r#"
772\text{Pattern Recognition Logic (TA-Lib Internal)}
773"#,
774    gold_standard_file: "cdlmorningdojistar.json",
775    category: "Patterns",
776};
777
778pub const CDLMORNINGSTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
779    name: "Morning Star",
780    description: "A bullish reversal pattern with three candles.",
781    usage: "Signals a trough in a downtrend.",
782    keywords: &["pattern", "candlestick", "classic"],
783    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
784    params: &[],
785    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
786    formula_latex: r#"
787\text{Pattern Recognition Logic (TA-Lib Internal)}
788"#,
789    gold_standard_file: "cdlmorningstar.json",
790    category: "Patterns",
791};
792
793pub const CDLONNECK_METADATA: IndicatorMetadata = IndicatorMetadata {
794    name: "On-Neck Pattern",
795    description: "A bearish continuation pattern.",
796    usage: "A weak signal that the downtrend will continue.",
797    keywords: &["pattern", "candlestick", "classic"],
798    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
799    params: &[],
800    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
801    formula_latex: r#"
802\text{Pattern Recognition Logic (TA-Lib Internal)}
803"#,
804    gold_standard_file: "cdlonneck.json",
805    category: "Patterns",
806};
807
808pub const CDLPIERCING_METADATA: IndicatorMetadata = IndicatorMetadata {
809    name: "Piercing Pattern",
810    description: "A bullish reversal pattern in a downtrend.",
811    usage: "Indicates a significant entry of buyers.",
812    keywords: &["pattern", "candlestick", "classic"],
813    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
814    params: &[],
815    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
816    formula_latex: r#"
817\text{Pattern Recognition Logic (TA-Lib Internal)}
818"#,
819    gold_standard_file: "cdlpiercing.json",
820    category: "Patterns",
821};
822
823pub const CDLRISEFALL3METHODS_METADATA: IndicatorMetadata = IndicatorMetadata {
824    name: "Rising/Falling Three Methods",
825    description: "A strong continuation pattern.",
826    usage: "Signals a minor consolidation before the trend resumes.",
827    keywords: &["pattern", "candlestick", "classic"],
828    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
829    params: &[],
830    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
831    formula_latex: r#"
832\text{Pattern Recognition Logic (TA-Lib Internal)}
833"#,
834    gold_standard_file: "cdlrisefall3methods.json",
835    category: "Patterns",
836};
837
838pub const CDLSEPARATINGLINES_METADATA: IndicatorMetadata = IndicatorMetadata {
839    name: "Separating Lines",
840    description: "A continuation pattern where candles move in opposite directions.",
841    usage: "Signals trend persistence.",
842    keywords: &["pattern", "candlestick", "classic"],
843    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
844    params: &[],
845    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
846    formula_latex: r#"
847\text{Pattern Recognition Logic (TA-Lib Internal)}
848"#,
849    gold_standard_file: "cdlseparatinglines.json",
850    category: "Patterns",
851};
852
853pub const CDLSHOOTINGSTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
854    name: "Shooting Star",
855    description: "A bearish reversal pattern at the top of an uptrend.",
856    usage: "Signals a potential move to the downside.",
857    keywords: &["pattern", "candlestick", "classic"],
858    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
859    params: &[],
860    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
861    formula_latex: r#"
862\text{Pattern Recognition Logic (TA-Lib Internal)}
863"#,
864    gold_standard_file: "cdlshootingstar.json",
865    category: "Patterns",
866};
867
868pub const CDLSTALLEDPATTERN_METADATA: IndicatorMetadata = IndicatorMetadata {
869    name: "Stalled Pattern",
870    description: "A bearish reversal pattern in an uptrend.",
871    usage: "Indicates that the upward momentum is slowing down.",
872    keywords: &["pattern", "candlestick", "classic"],
873    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
874    params: &[],
875    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
876    formula_latex: r#"
877\text{Pattern Recognition Logic (TA-Lib Internal)}
878"#,
879    gold_standard_file: "cdlstalledpattern.json",
880    category: "Patterns",
881};
882
883pub const CDLSTICKSANDWICH_METADATA: IndicatorMetadata = IndicatorMetadata {
884    name: "Stick Sandwich",
885    description: "A reversal pattern with alternating candle colors.",
886    usage: "Signals a potential support or resistance level.",
887    keywords: &["pattern", "candlestick", "classic"],
888    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
889    params: &[],
890    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
891    formula_latex: r#"
892\text{Pattern Recognition Logic (TA-Lib Internal)}
893"#,
894    gold_standard_file: "cdlsticksandwich.json",
895    category: "Patterns",
896};
897
898pub const CDLTASUKIGAP_METADATA: IndicatorMetadata = IndicatorMetadata {
899    name: "Tasuki Gap",
900    description: "A continuation pattern involving a gap.",
901    usage: "Signals trend strength.",
902    keywords: &["pattern", "candlestick", "classic"],
903    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
904    params: &[],
905    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
906    formula_latex: r#"
907\text{Pattern Recognition Logic (TA-Lib Internal)}
908"#,
909    gold_standard_file: "cdltasukigap.json",
910    category: "Patterns",
911};
912
913pub const CDLTHRUSTING_METADATA: IndicatorMetadata = IndicatorMetadata {
914    name: "Thrusting Pattern",
915    description: "A bearish continuation pattern.",
916    usage: "A weak signal of trend persistence.",
917    keywords: &["pattern", "candlestick", "classic"],
918    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
919    params: &[],
920    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
921    formula_latex: r#"
922\text{Pattern Recognition Logic (TA-Lib Internal)}
923"#,
924    gold_standard_file: "cdlthrusting.json",
925    category: "Patterns",
926};
927
928pub const CDLTRISTAR_METADATA: IndicatorMetadata = IndicatorMetadata {
929    name: "Tristar Pattern",
930    description: "A rare reversal pattern consisting of three dojis.",
931    usage: "Signals an extreme shift in momentum.",
932    keywords: &["pattern", "candlestick", "classic"],
933    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
934    params: &[],
935    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
936    formula_latex: r#"
937\text{Pattern Recognition Logic (TA-Lib Internal)}
938"#,
939    gold_standard_file: "cdltristar.json",
940    category: "Patterns",
941};
942
943pub const CDLUNIQUE3RIVER_METADATA: IndicatorMetadata = IndicatorMetadata {
944    name: "Unique 3 River",
945    description: "A bullish reversal pattern.",
946    usage: "Signals a potential bottom.",
947    keywords: &["pattern", "candlestick", "classic"],
948    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
949    params: &[],
950    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
951    formula_latex: r#"
952\text{Pattern Recognition Logic (TA-Lib Internal)}
953"#,
954    gold_standard_file: "cdlunique3river.json",
955    category: "Patterns",
956};
957
958pub const CDLUPSIDEGAP2CROWS_METADATA: IndicatorMetadata = IndicatorMetadata {
959    name: "Upside Gap Two Crows",
960    description: "A bearish reversal pattern.",
961    usage: "Signals a potential top in an uptrend.",
962    keywords: &["pattern", "candlestick", "classic"],
963    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
964    params: &[],
965    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
966    formula_latex: r#"
967\text{Pattern Recognition Logic (TA-Lib Internal)}
968"#,
969    gold_standard_file: "cdlupsidegap2crows.json",
970    category: "Patterns",
971};
972
973pub const CDLXSIDEGAP3METHODS_METADATA: IndicatorMetadata = IndicatorMetadata {
974    name: "Up/Down-Gap Three Methods",
975    description: "A continuation pattern.",
976    usage: "Signals that the trend is likely to continue after a gap.",
977    keywords: &["pattern", "candlestick", "classic"],
978    ehlers_summary: "Candlestick patterns were popularized in the West by Steve Nison in his 1991 book 'Japanese Candlestick Charting Techniques'. These patterns provide a visual representation of market psychology and the balance of power between buyers and sellers at key price levels.",
979    params: &[],
980    formula_source: "https://www.investopedia.com/articles/active-trading/062315/using-bullish-candlestick-patterns-buy-stocks.asp",
981    formula_latex: r#"
982\text{Pattern Recognition Logic (TA-Lib Internal)}
983"#,
984    gold_standard_file: "cdlxsidegap3methods.json",
985    category: "Patterns",
986};