Flexible Moving Average Strategy by oanstein
By oanstein
Performance Metrics
- Author: oanstein
- Symbol: SP:SPX
- Timeframe: 1 month
- Net P&L: +104,006.40 USD (+865.26%)
- Win Rate: 45.8%
- Profit Factor: 2.402
- Max Drawdown: 14,050.40 USD (36.27%)
- Total Trades: 83
- Sharpe Ratio: −0.001
Description
Sep 23, 2024This strategy offers flexibility to choose between SMA and EMA, and allows users to set the review frequency to Daily, Weekly, or Monthly. It adapts to different market conditions by providing full control over the length and timeframe of the Moving Average.### Key Features:- **Moving Average Method**: Select between SMA and EMA.- **Review Frequency**: Choose Daily, Weekly, or Monthly review periods.- **Customizable**: Set the Moving Average length and timeframe.- **Entry/Exit Rules**: - **Enter Long**: When the close price is above the Moving Average at the end of the period. - **Exit**: When the close price falls below the Moving Average.### Parameters:- **Review Frequency**: Daily, Weekly, Monthly- **Moving Average Method**: SMA or EMA- **Length & Timeframe**: Fully adjustableThis strategy suits traders who prefer a flexible, trend-following approach based on long-term price movements.Sep 23, 2024Release NotesAdded more types of Moving AveragesSep 25, 2024Release NotesAdded input to specify the percentage of the portfolio to sell when MA is crossed belowSep 28, 2024Release NotesImmediate Full Investment: On the very first bar (is_first_bar), the strategy now opens a long position with 100% of the capital Oct 16, 2024Release NotesAdd input "Allow Initial Buy Without MA Data"