This script is designed to perform candle analysis:
In summary, the script helps traders understand the distribution and range of candles in a specific period, which can be useful for making informed trading decisions such as determining the Take Profit or Stop Loss levels based on the timeframe or specific symbol.

Counter Attack Candlestick
Counter attack candlestick pattern
Dominant Candle
Dominant Candle is a a two candlestick set where the wicks intersect each other but body of the candles are either gapped up, gapped down or equal
A Code block to detect A "New Candle/Bar" using bars history (very effective way)
If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.
Basic GridManager Library
This is a basic library to create and manage grids.