Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
Price Transform
Statistic Functions
Math Transform
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Detects the Evening Star candlestick pattern.

talib.CDLEVENINGSTAR(inPriceOHLC)
talib.CDLEVENINGSTAR(inPriceOHLC, optInPenetration)

Examples

Detect the Evening Star pattern in the latest K-lines.

javascript
function main() { var records = exchange.GetRecords() if (!records) return var ret = talib.CDLEVENINGSTAR(records) Log(ret) }
python
import talib def main(): records = exchange.GetRecords() if not records: return ret = talib.CDLEVENINGSTAR(records.Open, records.High, records.Low, records.Close) Log(ret)

Returns

TypeDescription

numeric array

Pattern signals: positive for a bullish pattern, negative for a bearish one (usually 100 or -100), 0 where the pattern does not appear.

Arguments

NameTypeRequiredDescription

inPriceOHLC

Record array

Yes

K-line array; the open, high, low and close fields are used. In Python, pass records.Open, records.High, records.Low, records.Close in this order.

optInPenetration

number

No

Penetration ratio, i.e. how far one candle's real body must penetrate into another's (a non-negative number). Default 0.3.

See Also

Remarks

TA-Lib equivalent: CDLEVENINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger).