DAX P (1d): Deep CCI Mean Reversion with ATR Targets | PF 1.28, DD 18%

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #258814 quote
    ProRealQuant
    Participant
    New

    🧠 Trading Logic

    This strategy is a very simple, fully mechanical long-only system built around the Commodity Channel Index (CCI) as an oversold signal, combined with volatility-based profit targets and a fixed-percentage stop loss. It looks for moments when the 18-period CCI drops below -147, which is a relatively deep oversold threshold, and then buys immediately at market. Because it only opens a new trade when no long position is currently open (cumulateorders = false and NOT LONGONMARKET), it will hold at most one long trade at a time. Risk and exits are handled in two ways. The downside is controlled by a fixed 6.7% stop-loss from the entry price, so the maximum loss per trade is defined in percentage terms. The upside, however, is tied to market volatility: the profit target is set at 4.7 times the 20-period Average True Range (ATR). This means that in more volatile conditions the take-profit level is further away in price terms, aiming to capture larger swings, while in quieter markets the target is correspondingly closer. From a market-conditions perspective, the logic suggests it may be better suited to instruments and timeframes where “buying the dip” after a strong oversold reading has a reasonable chance of mean-reverting. It is inherently contrarian: it steps in when CCI shows strong negative momentum (oversold) rather than following a trend. There are no additional filters for trend direction, volume, or higher timeframes, and no short-selling logic, so it’s quite bare-bones and easy to understand, but also exposed to prolonged downtrends where oversold can stay oversold. Traders might consider this code as a starting template to refine with trend filters, time-of-day constraints, or position sizing rules, depending on their own risk tolerance and preferred markets.

    📊 Performance Metrics

    Metric Value Metric Value
    Score (SQN)1.13Sharpe Ratio0.93
    Profit Factor1.28Max Drawdown18.10%
    Ulcer Index0.046Stability (R²)0.944
    Trades65PnL ($)20,065
    Time in Market43.80%MC Score62.0

    📈 Backtest Context

    InstrumentDAX P (^GDAXI) Timeframe1d
    Period2010-01-13 → 2026-03-03 Seed217126686

    📉 Equity Curve

    Equity Curve

    ⚠️ Community-generated strategy — please read before trading
    This strategy was automatically generated by a community member using ProRealQuant, a free tool for automated strategy generation on ProRealTime. It is shared purely for educational and discussion purposes. Past backtest results do not guarantee future performance. Always conduct your own analysis, apply sound risk management, and never trade with capital you cannot afford to lose.

    💻 ProBuilder Code

    // Generated ProBuilder Strategy
    // Auto-generated from ProRealQuant
    DEFPARAM cumulateorders=false
    DEFPARAM preloadbars = 200
    
    // Entry Condition (LONG)
    IF NOT LONGONMARKET AND CCI[18] < -147 THEN
        BUY AT MARKET
        // Stop Loss Exit
        SET STOP %LOSS (6.7)
        // Take Profit Exit
        SET TARGET PROFIT (4.7 * AVERAGETRUERANGE[20])
    ENDIF

    💬 Join the discussion! Feel free to share your own backtest results on different instruments or timeframes, suggest improvements, propose forks or parameter variations — the community learns best together.

    🔧 Generated with ProRealQuant — a free community tool for automated strategy generation and backtesting on ProRealTime. Try it yourself!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

ProRealQuant: Strategy Generator

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProRealQuant: Strategy Generator Forum
Started: 03/06/2026
Status: Active
Attachments: No files
Logo Logo
Loading...