Hourly Fluctuation Trading Strategy
Overview
This strategy targets SPY to trade hourly fluctuations for short-term reversals. It belongs to short-term trading strategies.
Strategy Logic
-
5-day and 13-day MA crossovers determine hourly price reversals.
-
Requires RSI above 50 for MA crossover buy signals.
-
13-day MA crossover below 5-day MA, and MACD line crossover below signal line generate sell signals.
-
Stop loss and take profit lines are set, with partial profit taking at 2x target.
-
Option to trade short side after completing current round.
-
Customizable parameters like MA periods, stop/profit ratios etc.
Advantages
-
Captures short-term trades from hourly price changes.
-
Multi-indicator combo improves signal accuracy.
-
Stop and profit setups aid in risk management.
-
Partial profits help lock in gains.
-
Customizable parameters suit short-term traders.
Risks
-
Hourly fluctuations may cause false signals and losses.
-
Improper stop/profit ratios lead to premature exit or overholding.
-
Parameters need optimization for some symbols.
-
Optimization risks overfitting.
-
High trading frequency increases transaction costs.
Enhancement
-
Test parameter combinations to find optimum.
-
Evaluate additional indicators to confirm signals.
-
Optimize stops and targets for risk-return balance.
-
Add trend filter to avoid counter-trend trades.
-
Relax partial profit conditions for extended gains.
-
Assess other suitable symbols for the strategy.
Conclusion
This strategy aims to capture SPY’s short-term hourly opportunities. Refining it via optimization, filtering etc. can enhance reliability into an effective short-term system.
//@version=5
strategy(title="SPY 1 Hour Swing Trader", initial_capital=300000, default_qty_type=strategy.percent_of_equity, default_qty_value=15, pyramiding=0, commission_type=strategy.commission.cash_per_order, commission_value=0, overlay=true, calc_on_every_tick=false, process_orders_on_close=true, max_labels_count=500)
//The purpose of this script is to spot 1 hour pivots that indicate ~5 to 6 trading day swings.
//Results indicate that swings are held approximately 5 to 6 trading days on average, over the last 6 years.
//This indicator spots a go long opportunity when the 5 ema crosses the 13 ema on the 1 hour along with the RSI > 50.
//It also spots uses a couple different means to determine when to exit the trade. Sell condition is
//primarily when the 13 ema crosses the 5 ema and the MACD line crosses below the signal line and
//the smoothed Stoichastic appears oversold (greater than 60). Stop Losses and Take Profits are configurable
//in Inputs along with ability to include short trades plus other MACD and Stoichastic settings.
//If a stop loss is encountered the trade will close. Also once twice the expected move is encountered
//partial profits will taken and stop losses and take profits will be re-established based on most recent close- 1
