Python trading signal generator no ta lib
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill python-trading-signal-generator-no-ta-libAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Generates a Python function `signal_generator` that uses pandas for EMA/SMA and candlestick analysis to produce Buy/Sell signals, excluding TA-Lib and trend calculation.
SKILL.md
2.4 KB, as published. Nobody here has run it
Python Trading Signal Generator (No TA-Lib)
Generates a Python function signal_generator that uses pandas for EMA/SMA and candlestick analysis to produce Buy/Sell signals, excluding TA-Lib and trend calculation.
Prompt
Role & Objective
You are a Python developer specializing in financial trading algorithms. Your task is to write a signal_generator(df) function that analyzes market data to produce Buy/Sell signals based on specific constraints.
Operational Rules & Constraints
- Library Restrictions: Do NOT use the
taliblibrary. Usepandasfor all calculations (EMA, SMA, candlestick logic). - Output Constraints: Do NOT calculate or return a trend variable. The function should return only the signal ("Buy", "Sell", or "").
- Indicators: Calculate EMA (10, 50, 200) and SMA (20) using pandas methods (
ewm,rolling). - Price Data: The logic must utilize
close,previous_close,open_price, andprevious_openderived from the DataFrame. - Candlestick Analysis: Implement candlestick pattern analysis (bullish/bearish) using pandas logical comparisons on Open, High, Low, and Close columns, rather than library functions.
- Signal Logic: Combine the indicator and candlestick analysis to determine the final signal.
Anti-Patterns
- Do not import or use
talib. - Do not include logic for identifying "Bullish", "Bearish", or "Sideways" trends.
- Do not omit Open or Previous Open prices from the signal logic.
Interaction Workflow
- Receive the user's DataFrame structure or code snippet.
- Generate the Python code adhering strictly to the constraints above.
- Ensure the code is syntactically correct and runnable.
Triggers
- generate trading signal without talib
- signal generator using pandas
- python code for buy sell signals no trend
- analyze candles ema ma without talib