Type/to search

MACD Cross Period Trading Strategy

Cryptocurrency
Created: 2023-09-12 15:39:04
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy uses MACD on higher timeframes (e.g. daily) for trend bias and trades on lower timeframes (e.g. 5-min) for execution. The cross-period approach aims to improve the reliability of basic MACD strategies.

Strategy Logic:

  1. Calculate MACD on higher timeframe for overall trend direction.

  2. Enter trades on lower timeframe when MACD crosses signal line.

  3. Add MFI overbought/oversold for additional signal confirmation.

  4. Use stops and take profits for risk management.

  5. Optimize parameters for greater stability.

Advantages:

  1. Cross-period analysis filters short-term noise.

  2. MFI helps avoid false signals and improves accuracy.

  3. Stop loss/take profit controls single trade risks.

Risks:

  1. Cross-period operations lag, potentially missing best entries.

  2. Both MACD and MFI can give false signals, require caution.

  3. Strict risk management needed to offset whipsaw risks.

In summary, this approach uses cross-period MACD for bias and MFI for filtring, trading off lower timeframes for stability. But lag issues remain so prudent trading is still required.

Source
Pine
/*backtest
start: 2022-09-11 00:00:00
end: 2023-01-18 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//(c) Wunderbit Trading
//Modified by Mauricio Zuniga - Trade at your own risk
//This script was originally shared on Wunderbit website as a free open source script for the community. (https://www.tradingview.com/u/Wunderbit/)
// 
Strategy parameters
Strategy parameters
Highlight Oversold/Overbought?
Fixed SL (%)
Min ATR
Strategy
Resolution
Period
Open Long Comment (Optional)
Close Long Comment (Optional)
MACD
Fast Length
Slow Length
Signal Smoothing
Source
Simple MA(Oscillator)
Simple MA(Signal Line)
MFI
length
lower
upper
Trailing Profit
Enable Trailing
Long TP (%)
TTP Dev %%
Filters
Show Data
Use Trend
Trend EMA
Use RSI
RSI Length
Buy Below RSI Filter
Backtest
Fr Year
Fr Month
Fr Day
To Year
To Month
To Day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)