OPEN-SOURCE SCRIPT

P.I.B. System (Pin Bar | Inside Bar) // AlgoFyre

AlgoFyre의
업데이트됨
The "P.I.B. System (Pin Bar | Inside Bar)" identifies bullish and bearish pin bars and inside bars on a price chart. It highlights potential market reversals by plotting labels and colorizing bars, providing traders with visual cues for better decision-making.

Description
The "P.I.B. System (Pin Bar | Inside Bar)" script is designed to help traders identify potential reversal points in the market by detecting bullish and bearish pin bars and inside bars. A pin bar is a candlestick pattern that indicates a potential reversal, characterized by a small body and a long wick. Inside bars are candlestick patterns where the current bar's high and low are within the previous bar's range, indicating potential consolidation before a breakout.

This script allows customization of various parameters to fine-tune the identification of pin bars and inside bars. When a pin bar or an inside bar is detected, the script plots a label on the chart and colorizes the bars to highlight these patterns. This tool is useful for traders looking to identify potential reversal points and make informed trading decisions.

Explanation of All Options
  • Pin-Wick Size Ratio Minimum Value: The minimum ratio of the wick size to the total candle size for a pin bar to be considered valid. Default is 0.66.
  • Candle Body Size Ratio Maximum Value: The maximum ratio of the body size to the total candle size for a pin bar to be considered valid. Default is 0.4.
  • Handle-Wick Wick Size Ratio Maximum Value: The maximum ratio of the opposite wick size to the total candle size for a pin bar to be considered valid. Default is 0.4.
  • Filter Out Small Candles: Option to filter out small candles based on the previous candle's size. Default is true.
  • Small Candle Size Ratio: The ratio used to determine if a candle is considered small compared to the previous candle. Default is 2.0.
  • Identify Inside Bars: Option to identify inside bars following a pin bar. Default is true.
  • Show Only P.I.B.: Option to show only the bars where a pin bar is followed by an inside bar. Default is true.
  • Hide Horizontal Rays: Option to hide horizontal rays drawn from the last identified pin bars. Default is false.


How to Use
To use this script, add it to your chart. Customize the input parameters to match your trading strategy. The script will automatically identify and highlight bullish and bearish pin bars and inside bars on the chart. Use the visual cues provided by the labels and colorized bars to make informed trading decisions.
릴리즈 노트

  • Added an option to draw a box around the Pin Bar or the P.I. Bar
릴리즈 노트
  • Some minor cosmetic updates
Candlestick AnalysisCandlestick analysiscandlestickpatternInside BarPin Barpriceactionanalysispricemovement

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항