Candlestick pattern indicators

This section contains examples which show how to work with Candlestick pattern indicators - how to:

  • Find a pattern by shift and by candlestick bar interval.
  • Find the latest occurrence of the pattern.
  • Plot patterns on chart - both single and multiple.
  • Use designated set of candlestick patterns in the same strategy.
  • Use all 61 candlestick patterns in the same strategy.

Use hammer pattern


CandlePatternsHammer strategy shows how to use hammer pattern within a strategy:

  • On its start (i.e. in the onStart method) it finds hammer pattern occurrences over the last 100 candlesticks and prints to console the latest occurrence by shift.
  • On every candlestick (i.e. in the onBar method) it checks if it is of hammer pattern.

Also the strategy plots the indicator on chart:

572-9c77bfcb65d24ef34c694e4e085734e2.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容