Feat: Add more bullish candlestick patterns and remove default selection
This commit is contained in:
parent
d517e7fa3d
commit
fa078a99c1
@ -23,7 +23,7 @@ def technical_scanner_page():
|
||||
selected_patterns = st.multiselect(
|
||||
"Select Candlestick Patterns",
|
||||
options=list(CANDLESTICK_PATTERNS.keys()),
|
||||
default=list(CANDLESTICK_PATTERNS.keys()),
|
||||
default=[],
|
||||
format_func=lambda x: CANDLESTICK_PATTERNS[x]['description'],
|
||||
help="Choose which candlestick patterns to scan for"
|
||||
)
|
||||
|
||||
@ -30,6 +30,46 @@ CANDLESTICK_PATTERNS = {
|
||||
'THREE_WHITE_SOLDIERS': {
|
||||
'function': talib.CDL3WHITESOLDIERS,
|
||||
'description': 'Three White Soldiers Pattern'
|
||||
},
|
||||
'MORNING_DOJI_STAR': {
|
||||
'function': talib.CDLMORNINGDOJISTAR,
|
||||
'description': 'Morning Doji Star Pattern'
|
||||
},
|
||||
'DRAGONFLY_DOJI': {
|
||||
'function': talib.CDLDRAGONFLYDOJI,
|
||||
'description': 'Dragonfly Doji Pattern'
|
||||
},
|
||||
'HARAMI': {
|
||||
'function': talib.CDLHARAMI,
|
||||
'description': 'Bullish Harami Pattern'
|
||||
},
|
||||
'INVERTED_HAMMER': {
|
||||
'function': talib.CDLINVERTEDHAMMER,
|
||||
'description': 'Inverted Hammer Pattern'
|
||||
},
|
||||
'THREE_INSIDE_UP': {
|
||||
'function': talib.CDL3INSIDE,
|
||||
'description': 'Three Inside Up Pattern'
|
||||
},
|
||||
'THREE_OUTSIDE_UP': {
|
||||
'function': talib.CDL3OUTSIDE,
|
||||
'description': 'Three Outside Up Pattern'
|
||||
},
|
||||
'BELT_HOLD': {
|
||||
'function': talib.CDLBELTHOLD,
|
||||
'description': 'Bullish Belt Hold Pattern'
|
||||
},
|
||||
'LADDER_BOTTOM': {
|
||||
'function': talib.CDLLADDERBOTTOM,
|
||||
'description': 'Ladder Bottom Pattern'
|
||||
},
|
||||
'MATCHING_LOW': {
|
||||
'function': talib.CDLMATCHINGLOW,
|
||||
'description': 'Matching Low Pattern'
|
||||
},
|
||||
'UNIQUE_THREE_RIVER': {
|
||||
'function': talib.CDLUNIQUE3RIVER,
|
||||
'description': 'Unique Three River Bottom Pattern'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user