Library

Contains functions to evaluate bullish and bearish , engulfing , and outsized candles. They are different from the built-in indicators from TradingView in that these functions don't evaluate classical patterns composed of multiple candles, and they reflect my own understanding of what is "bullish" and bearish", "engulfing", and "outsized".

Determines if the current candle is bullish or bearish according to the length of the wicks and the open and close.

int

Tells you whether a candle is a "Triple Bull" - that is, one which is bullish in three ways:

Tells you whether a candle is a "Triple Bear" - that is, one which is bearish in three ways:

Tells you if the current candle has a larger than average body size.

int

float

Tells you if the current candle is a bullish engulfing candle.

int

int

Tells you if the current candle is a bearish engulfing candle.

int

int

**"CandleEvaluation"**Contains functions to evaluate bullish and bearish , engulfing , and outsized candles. They are different from the built-in indicators from TradingView in that these functions don't evaluate classical patterns composed of multiple candles, and they reflect my own understanding of what is "bullish" and bearish", "engulfing", and "outsized".

**isBullishBearishCandle()**Determines if the current candle is bullish or bearish according to the length of the wicks and the open and close.

int

**_barsBack**How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.**returns**Two values, true or false, for whether it's a bullish or bearish candle respectively.**isTripleBull()**Tells you whether a candle is a "Triple Bull" - that is, one which is bullish in three ways:

- It closes higher than it opens

- It closes higher than the body of the previous candle

- The High is above the High of the previous candle.

**_barsBack**How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.**returns**True or false.**isTripleBear()**Tells you whether a candle is a "Triple Bear" - that is, one which is bearish in three ways:

- It closes lower than it opens

- It closes lower than the body of the previous candle

- The Low is below the Low of the previous candle.

**_barsBack**How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.**returns**True or false.**isBigBody()**Tells you if the current candle has a larger than average body size.

int

**_length**- The length of the sma to calculate the averagefloat

**_percent**- The percentage of the average that the candle body has to be to count as "big". E.g. 100 means it has to be just larger than the average, 200 means it has to be twice as large.**returns**True or false**isBullishEngulfing()**Tells you if the current candle is a bullish engulfing candle.

int

**_barsBack**How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.int

**_atrFraction**The denominator for the ATR fraction, which is the small amount by which the open can be different from the previous close.**returns**True or false**isBearishEngulfing()**Tells you if the current candle is a bearish engulfing candle.

int

**_barsBack**How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.int

**_atrFraction**The denominator for the ATR fraction, which is the small amount by which the open can be different from the previous close.**returns**True or false
🆓 All my free scripts: https://simplecrypto.life/free-scripts/

⭐️ Pro scripts: https://simplecrypto.life/pro-scripts/

📗 Articles: https://simplecrypto.life/articles/

🙋Get help with Pinescript: https://simplecrypto.life/get-help-with-pinescript/

⭐️ Pro scripts: https://simplecrypto.life/pro-scripts/

📗 Articles: https://simplecrypto.life/articles/

🙋Get help with Pinescript: https://simplecrypto.life/get-help-with-pinescript/