top of page

MACD Cross on Nasdaq

Updated: Aug 6

A Classic MACD Strategy for Nasdaq 100


The Idea

This is a classic MACD crossover strategy with a tiny twist. The entry signal comes when the two lines cross (and the histogram crosses over 0), and the exit signal is given when the histogram has been climbing upwards for three days in a row. To ensure the market has a decent overall momentum we avoid trades if MACD is at its 20-period highest.


A concept of an entry and exit signal

Setup for Backtest

Market: US Tech 100 (Nasdaq 100)

Contract: 1 € per point

Broker: IG

Testing environment: ProRealtime 12

Timeframe: Daily

Time zone: CET

No fees and commissions are included.

Result

Total gain: 5 165.3 €

Average gain: 19.6€

Total trades: 264

Winners: 175

Losers: 86

Breakeven:

Max drawdown: 593.7 €

Risk/reward ratio: 1.4

Total time in the market: 6.7 %

Average time in the market: 2 days, 6 hours

CAGR (10 000 € in starting capital): 2.71 %


Backtest Results

Entry Conditions

  1. MACD crosses over 0.

  2. MACD is less than its highest 20-period value.


Exit Conditions

  1. MACD is up three days in a row.


Code

ProRealTime


FAQ

Q: Am I free to use this strategy however I want?

A: Sure! But we're happy if you refer to our website and keep the creator's name in the code.


Q: I'm using another platform, can you write the code in another language?

A: No, sorry. We might add code in more languages later to the website, but until then, we recommend you try ChatGPT or something similar to help you rewrite it.


Q: Why does my backtest look different when I run the code?

A: The strategy might give different backtest results for several reasons, like added spread or fees, the wrong time-zone settings, or that you're using another type of contract.


Q: Will I make money if I run this strategy live?

A: We don't know. We're not financial advisors, we're just traders sharing our ideas.

bottom of page