Skip to content
All library documents

MACD Crossover Entries and the Claimed KDJ Confirmation

Article Strategy library · Author: ChaoZhang

Summary

The document describes a trend-following method built around MACD crossovers: a buy signal occurs when the MACD line crosses above its signal line, and a sell signal when it crosses below. Its written overview also presents KDJ as an overbought and oversold filter, identifying J readings above 100 or below 10 as notable thresholds. It recommends parameter tuning, stop-loss rules, and representative testing periods as possible refinements.

There is a material difference between that description and the included strategy code. The code calculates MACD from 12- and 26-period exponential averages, but uses a 9-period simple moving average as the signal line; it does not calculate or apply KDJ. It enters long on an upward crossover and closes on a downward crossover, with no short entries. Date inputs are present, but the code's time-window function always returns true, so the stated date range does not constrain trading. The BTC-USDT futures backtest settings are supplied, but no results are reported. The document warns that MACD can generate repeated false signals in extended ranges and that selected test windows can distort apparent performance.

Key ideas

  • The implemented rules open a long position on an upward MACD crossover and close it on a downward crossover.
  • The code uses a simple moving average for the MACD signal line, despite the overview describing an exponential average.
  • KDJ thresholds are discussed in the text but are absent from the supplied strategy code.
  • The date-window inputs do not constrain the source code because its window condition always evaluates as true.
  • The document supplies BTC-USDT futures test settings but reports no performance results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.