Type/to search

Hourly Fluctuation Trading Strategy

Cryptocurrency
Created: 2023-09-20 16:50:27
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy targets SPY to trade hourly fluctuations for short-term reversals. It belongs to short-term trading strategies.

Strategy Logic

  1. 5-day and 13-day MA crossovers determine hourly price reversals.

  2. Requires RSI above 50 for MA crossover buy signals.

  3. 13-day MA crossover below 5-day MA, and MACD line crossover below signal line generate sell signals.

  4. Stop loss and take profit lines are set, with partial profit taking at 2x target.

  5. Option to trade short side after completing current round.

  6. Customizable parameters like MA periods, stop/profit ratios etc.

Advantages

  1. Captures short-term trades from hourly price changes.

  2. Multi-indicator combo improves signal accuracy.

  3. Stop and profit setups aid in risk management.

  4. Partial profits help lock in gains.

  5. Customizable parameters suit short-term traders.

Risks

  1. Hourly fluctuations may cause false signals and losses.

  2. Improper stop/profit ratios lead to premature exit or overholding.

  3. Parameters need optimization for some symbols.

  4. Optimization risks overfitting.

  5. High trading frequency increases transaction costs.

Enhancement

  1. Test parameter combinations to find optimum.

  2. Evaluate additional indicators to confirm signals.

  3. Optimize stops and targets for risk-return balance.

  4. Add trend filter to avoid counter-trend trades.

  5. Relax partial profit conditions for extended gains.

  6. 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.

Source
Pine
//@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
Strategy parameters
Strategy parameters
Include Short Trades!
Input Stop Loss Percentage (0.02 = 2%)
Input Take Profit Percentage (0.03 = 3%)
Partial Profit Percentage in whole numbers (50 is 50%)
Fast EMA Period
Slow EMA Period
RSI Length
MACD Fast Length
MACD Slow Length
MACD Signal Length
ADX Length
Stochastic Length
Stoicastic Smooth K
Stoicastic Source
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)