draft: false
Winning Paths
To succeed in the investment market, we need to transform theoretical knowledge into practical decision-making abilities. This experiment will help you progress from identifying signals to making investment decisions through specific paths and methods, gradually improving your investment skills.Investment Experiment Learning Path
Experiment 1: Simulating Volume-Price Signal Analysis
Volume-price relationships are important tools for identifying market trends and institutional behavior. By programming to simulate volume-price signal analysis, we can more objectively evaluate market conditions and reduce the bias of subjective judgment.Experiment Objective
Develop a simple Python program to detect volume-price breakout signals and help identify potential institutional entry or exit timing.Code Implementation
Volume-Price Signal Analysis Process
Experiment Explanation
- Data Preparation: The program first loads or generates historical price and volume data for stocks
- Indicator Calculation: Calculates 5-day and 20-day moving averages, as well as the 5-day average of trading volume
- Signal Detection: Marks as a volume-price breakout signal when the price breaks through the 20-day moving average and trading volume exceeds twice the 5-day average
- Result Visualization: Intuitively displays price trends, moving averages, and volume-price breakout signals through charts
In practical applications, you can adjust parameters according to your needs, such as the period of moving averages, the threshold for volume anomalies, etc. You can also add more technical indicators, such as Relative Strength Index (RSI), Bollinger Bands, etc., to improve signal accuracy.
Volume-Price Breakout Signal Detection Process
Experiment 2: A/B Testing Take-Profit Strategies
Take-profit strategies are one of the key factors for investment success. Through A/B testing, we can compare the effects of different take-profit strategies and find the most suitable method for ourselves.Experiment Objective
Compare the performance of two common take-profit strategies in simulated trading: fixed percentage take-profit and trailing take-profit.Introduction to Take-Profit Strategies
- Fixed Percentage Take-Profit
- Trailing Take-Profit
Sell all or part of the holdings when the investment return reaches a preset percentage (such as 15%, 20%, or 30%).
Advantages
- Simple and clear, easy to execute
- Can ensure a certain level of profit
- Avoid profit retracement caused by greed
Disadvantages
- May sell too early and miss larger upward opportunities
- May be triggered frequently in volatile markets
Experiment Steps
1
Prepare Test Data
Select historical data of multiple stocks as test samples, covering different industries and market environments
2
Set Test Parameters
- Fixed percentage take-profit: Set different take-profit percentages (such as 10%, 15%, 20%, 25%, 30%)
- Trailing take-profit: Set different retracement percentages (such as 3%, 5%, 8%, 10%)
- Initial capital: 100,000 yuan
- Transaction costs: Commission 0.025%, stamp duty 0.1%
3
Simulate Trading Process
For each stock and each take-profit strategy, perform the following simulation:
- Buy stocks at random time points
- Apply the take-profit strategy, record selling time and returns
- Calculate final return rate and win rate
4
Analyze Test Results
Compare the performance of different take-profit strategies, including:
- Average return rate
- Win rate (percentage of profitable trades)
- Trading frequency
- Maximum drawdown
5
Optimize Strategy Parameters
Adjust parameters of take-profit strategies based on test results to find the optimal combination
Experiment Result Example
The following are the simulation test results using 2024 historical data of 5 stocks (Kweichow Moutai, Tencent Holdings, Alibaba, Contemporary Amperex Technology, BYD):Fixed 15% Take-Profit
Average return rate: 12.8%, Win rate: 68%, Trading frequency: 0.8 times/month
Fixed 25% Take-Profit
Average return rate: 19.5%, Win rate: 52%, Trading frequency: 0.4 times/month
Trailing 5% Take-Profit
Average return rate: 15.6%, Win rate: 61%, Trading frequency: 0.6 times/month
Trailing 10% Take-Profit
Average return rate: 21.3%, Win rate: 48%, Trading frequency: 0.3 times/month
Take-Profit Strategy Comparison Analysis
Experiment 3: Building a Personal Investment System
Integrating the knowledge and methods learned earlier to build an investment system suitable for yourself is a crucial step from novice to mature investor.Core Components of an Investment System
Market Environment Judgment
Market Environment Judgment
- Macroeconomic analysis (GDP, CPI, PMI and other indicators)
- Market sentiment assessment (trading volume, margin financing and securities lending balance, investor sentiment index, etc.)
- Technical analysis (market index trends, moving average systems, trading volume changes, etc.)
Selection Criteria
Selection Criteria
- Fundamental screening (financial indicators, industry position, competitive advantages, etc.)
- Technical screening (volume-price relationships, trend strength, relative strength, etc.)
- Valuation analysis (P/E, P/B, PEG and other valuation indicators)
Buying Strategy
Buying Strategy
- Entry signal confirmation (breakout, retracement, reversal and other technical signals)
- Position management (single position size, total position control)
- Staged buying plan (price range, time interval, etc.)
Selling Strategy
Selling Strategy
- Take-profit strategies (fixed percentage, trailing take-profit, etc.)
- Stop-loss strategies (percentage stop-loss, technical level stop-loss, etc.)
- Position adjustment (gradual reduction, liquidation conditions, etc.)
Risk Control
Risk Control
- Diversification (industry, region, asset class, etc.)
- Capital management (total risk exposure, maximum drawdown control, etc.)
- Hedging strategies (used in high-risk periods)
Investment Records and Summary
Investment Records and Summary
- Trading journal (record the decision-making process and results of each trade)
- Regular review (analyze the reasons for success and failure)
- System optimization (adjust strategies based on market changes and experience)
Steps to Build an Investment System
- Clarify Investment Goals: Determine your investment goals (such as long-term wealth growth, short-term returns, retirement planning, etc.) and risk tolerance
- Learn and Research: Systematically learn investment theories and methods, understand different investment strategies and tools
- Develop Initial Framework: Based on your goals and preferences, develop the basic framework of your investment system
- Simulate and Test: Verify the effectiveness of the investment system through simulated trading or small position testing
- Optimize and Perfect: Continuously optimize and perfect the investment system based on test results and market changes
- Strictly Execute: Strictly execute the investment system in actual investment and avoid emotional decision-making
Experiment Task: Create Your Investment Journal
A good investment journal can help you record the investment process, analyze decision-making effects, and continuously improve your investment level. Now, let’s create a standardized investment journal template.Investment Journal Template
Investment is a process of continuous learning and progress. Through systematic experiments and practice, you can gradually improve your investment skills and find a winning path suitable for yourself. Remember, successful investment requires a combination of knowledge, discipline, and patience.