use crate::candle_indicators::candle_patterns::CandlePattern;
use crate::candle_indicators::types::{CandleInfo, ForecastType};
use tulip_rs_macros::pattern_template;
#[pattern_template(
name = "OneCandleShootingStar",
forecast = "BearishReversal",
prev_bar(trend = "UP")
bar(
body_height = "SHORT",
body_gap = "GAP_UP",
lower_wick_lt_body = "TRUE",
upper_wick_2x = "TRUE",
candle_type = "SpinningTop(WhiteSpinningTop | BlackSpinningTop | HighWave)"
)
)]
pub fn info() -> CandleInfo {
CandleInfo {
name: "onecandleshootingstar",
full_name: "One-Candle Shooting Star",
forecast: ForecastType::BearishReversal,
bars: 1,
japanese_name: "Nagare Boshi",
extended_pattern: Some(CandlePattern::TwoCandleShootingStar),
}
}