Gold (1h): Intraday Bollinger Breakout with ATR Targets | PF: 1.26

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

    🧠 Trading Logic

    This strategy is a simple, fully long-only breakout system that uses Bollinger Bands and recent highs to time entries, and Average True Range (ATR) for its exits. It only takes a trade when there is no existing long position, and it buys at market if the current close is below the upper Bollinger Band (period 15) but at the same time is breaking above the highest high of the last 53 bars (checked on the prior bar). In other words, it looks for fresh upside breakouts to new multi-week highs, but avoids prices that are already stretched into the very top of the Bollinger range, which can help filter out overly extended moves.


    Once in a trade, both the stop loss and take profit are volatility-based, using ATR(9). The stop is placed at 2.9 times ATR and the profit target at 5.8 times ATR, giving roughly a 1:2 reward-to-risk ratio in volatility terms. Because it does not pyramid positions (cumulateorders = false) and only trades long, this kind of approach is generally best suited to markets with a clear bullish bias or frequent upward breakouts, such as strong stock indices or trending individual stocks. Visibly, the code is minimalist: there are no filters for trend direction, volume, or time of day, and no re-entry rules beyond waiting for the next valid breakout setup, making it easy to understand, test, and modify, but also reliant on the underlying market having enough directional follow-through for breakouts to pay off.

    📊 Performance Metrics

    Metric Value Metric Value Score (SQN)1.23Sharpe Ratio0.65Profit Factor1.26Max Drawdown2.00%Ulcer Index0.049Stability (R²)0.856Trades108PnL ($)1,688Time in Market31.10%MC Score72.0 📈 Backtest Context

    InstrumentGold (XAU/USD) intraday (XAUUSD)Timeframe1h Period2024-01-12 → 2026-04-24Seed144730720 📉 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 (CLOSE < BollingerUp[15](close) AND CLOSE > HIGHEST[53](high)[1]) THEN
        BUY AT MARKET
        // Stop Loss Exit
        SET STOP LOSS (2.9 * AVERAGETRUERANGE[9])
        // Take Profit Exit
        SET TARGET PROFIT (5.8 * AVERAGETRUERANGE[9])
    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!

    gold-strategy.png gold-strategy.png
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: 07/01/2026
Status: Active
Attachments: No files
Logo Logo
Loading...