Skip to content
All library documents

Long-Only S&P 500 Strategy Combining MACD, Stochastic, Moving Average, and Ichimoku

Article ProRealCode

Summary

The document presents a long-only automated strategy for a mini S&P 500 instrument. Entries require the MACD line to be above its smoothed value, the stochastic to be above its average, price to remain above a moving average, and price to be below a custom Ichimoku-derived boundary. The custom indicator adapts the selected cloud boundary as price changes relative to the Ichimoku spans, and includes ATR-based bands. Exits occur when price crosses below the indicator boundary, or when the configured profit target or stop is reached.

The post shares indicator and robot logic as a starting point for community improvement. It specifies a spread and contract sizing, but supplies no backtest, live results, parameter rationale, or evidence that the conditions are profitable. The entry description and code should be checked carefully: the listed conditions and indicator outputs may not map cleanly to the verbal explanation. Results will also depend on platform behavior, instrument costs, and execution assumptions.

Key ideas

  • The system opens long positions when MACD, stochastic, moving average, and Ichimoku-related conditions align.
  • A custom Ichimoku boundary is used for entries and for a price-cross exit.
  • The strategy also specifies a stop loss and profit target.
  • The document supplies implementation logic but no evidence of backtested or live performance.

Tags

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