LuxAlgo

Swing Highs/Lows & Candle Patterns [LUX]

This script labels swing highs and swing lows as well as the candle pattern that occurred at that precise point. The script can detect the following 6 candle patterns: hammer , inverse hammer , bullish engulfing , hanging man , shooting star , and bearish engulfing .

The notations HH, HL, LH, and LL you can see on the labels are defined as follows:

  • HH : Higher high
  • HL : Higher low
  • LH : Lower high
  • LL : Lower low

Setting

  • Length: Sensitivity of the swing high/low detection, with lower values returning the maximum/minimum of shorter-term price variations.

Usage & Details

It can be interesting to see if a top or bottom is associated with a specific candle pattern, this allows us to study the potential of such a pattern to indicate a reversal. You can hover on a label with a specific pattern to see more details about it.

Note that the labels are offset, and will appear later in real-time, as such this indicator is not intended to detect tops/bottoms in real-time.

Higher values of length might return errors.
リリースノート: Copyright update & default "length" input value set to 20.
リリースノート: Minor Changes.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードの公開物での再利用には、ハウスルールに準拠する必要があります。お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

コメント

how much times later the labels are appear.
+70 返信
alexgrover hirupamg
@hirupamg, precisely "length" bars laters :)
+15 返信
hirupamg alexgrover
@alexgrover, after the particular bar close that, will it show the HH,HL,LL signal or two three bar later
+3 返信
@hirupamg, iT IS GIVING AFTER 20 BARS. WHICH WILL NOT HELP IN REALTIME TRADING
+11 返信
LuxAlgo sweetynxtlvl
@sweetynxtlvl, Hi, labels appear after "length" bars - you can adjust this via the settings. As per the description, this is not meant to detect tops & bottoms in real time.
+13 返信
BataMan hirupamg
@hirupamg,
Is it effective on higher time frames such as Daily Chart
and how many days after the candle recognition does the actual signal appear
返信
how can i add alert Inverse Hammer and shooting start
+20 返信
Thanks! Is it possible to add a sound alert when the mark appears?
+8 返信
Not for free
+4 返信