Gold / Prop FirmSeptember 9, 2026 · 9 min read

Customize GoldRush for Topstep Rules: A Trader's Guide

You've got the GoldRush strategy, and now you're facing the Topstep combine. This guide will walk you through the practical steps to adjust your strategy's parameters to align with prop firm trading rules, helping you navigate these challenges.

Alright, so you've got the GoldRush strategy, and you're looking to put it to work in a prop firm challenge, specifically Topstep. This isn't about setting it and forgetting it; it's about understanding the engine and tuning it for a specific race track. The core question on your mind is likely: "how to customize GoldRush strategy for Topstep rules?" It's a critical question because Topstep, like all prop firms, has non-negotiable rules around daily loss limits, trailing drawdown, and profit targets. Just throwing GoldRush, or any strategy, at these rules without adjustment is a recipe for a quick fail. We need to talk about how to adapt the strategy's logic to respect these boundaries, not just hope for the best.

The GoldRush strategy, by its nature, is designed to identify specific market conditions and execute trades. But a prop firm challenge adds another layer of complexity: risk management imposed from an external entity. Your job isn't just to make profit; it's to make profit *within their framework*. This means we'll be looking at specific parameters within the strategy's code and its application that can be tweaked to keep you compliant. This isn't about changing the fundamental market logic of GoldRush, but rather about integrating a Topstep-aware safety net and target mechanism directly into how you run it. We're talking about practical, hands-on adjustments.

Understanding Topstep's Core Rules and Their Impact on Strategy

Before we dive into the code, let's nail down what Topstep cares about most. You've got your Daily Loss Limit, your Trailing Drawdown, and your Profit Target. These aren't suggestions; they're hard stops. The Daily Loss Limit is straightforward: hit it, and your day is done. The Trailing Drawdown is trickier – it moves with your peak equity. Fail to understand how your strategy's potential fluctuations interact with these, and you're out. The Profit Target is what you're aiming for, but you can't get there by blowing up on the way. Your strategy needs to be designed not only to hit the target but to protect your capital within these limits as it progresses. Every trade the strategy takes has to be considered in the context of these three pillars.

Most off-the-shelf strategies, including a raw GoldRush, are not inherently aware of a prop firm's account balance or dynamic drawdown. They operate based on market signals. Our customization task is to inject this awareness. This means thinking about how position sizing, stop-loss placement, and even trade frequency contribute to breaching these limits. A strategy might generate a signal, but if taking that trade puts you too close to your daily loss limit or pushes your trailing drawdown into dangerous territory, the smart move is to either skip it, reduce size, or tighten the stop beyond the strategy's default. We're essentially building a risk-aware wrapper around the strategy's core logic.

How to Customize GoldRush Strategy for Topstep Rules: Focusing on Daily Loss

The daily loss limit is often the first rule traders hit. To adapt GoldRush for this, you need to implement a daily PnL check. In TradingView's Pine Script, this involves tracking your PnL from the start of the trading session. You can define variables for your daily start equity and update them. If your current PnL for the day crosses your defined daily loss threshold (e.g., $500 for a $50k account), the strategy should stop taking new trades and close any open positions. This isn't an 'after the fact' check by Topstep; it's a 'before the fact' control you implement.

A concrete setup detail for this: within your GoldRush Pine Script code, you'd integrate logic that evaluates `strategy.openprofit` and `strategy.closedtrades.profit` at the start of each new bar. You'd declare a `var float dailyProfit = 0.0` and update it. Then, before any `strategy.entry` or `strategy.order` calls, you'd add a conditional statement like `if dailyProfit > -dailyLossLimit then ...`. You could also add `strategy.close_all()` if `dailyProfit <= -dailyLossLimit`. This direct integration ensures the strategy itself enforces the daily loss, preventing further trades once the limit is breached. This ensures the strategy won't dig a deeper hole beyond what Topstep allows.

Adjusting for Trailing Drawdown Protection

The trailing drawdown is probably the trickiest. It moves with your peak realized PnL. This means if you make $1,000, your drawdown floor also moves up. The GoldRush strategy, left unchecked, might make a series of good trades, push your equity up, then give back a significant portion, potentially hitting your trailing drawdown. To mitigate this, you need to implement peak equity tracking within the strategy and calculate your current distance from the trailing drawdown floor. This isn't just about limiting daily loss; it's about protecting accumulated gains.

For a practical approach, your Pine Script needs to store the `highest(strategy.netprofit)` achieved so far and calculate the dynamic drawdown floor. Then, before the strategy enters any new trade, you check if the potential maximum loss of that trade, combined with your current PnL, would breach this trailing drawdown floor. You might decide to skip the trade entirely, or significantly reduce the position size to manage the risk. For instance, if your trailing drawdown is $2,000 and your current equity is $52,000 (meaning your floor is $50,000), but your strategy signals a trade with a $1,500 stop loss, and your current open PnL is -$800, that trade could push you below your trailing drawdown floor. The strategy needs to be smart enough to recognize this and not execute that trade, or at least size it down drastically.

Optimizing Position Sizing and Stop Loss for Compliance

Position sizing is your primary leverage in managing risk. GoldRush, like many strategies, will have default position sizing based on a fixed risk per trade or a percentage of capital. For Topstep, you need to dynamically adjust this. If you're close to your daily loss limit, your position size for subsequent trades should be drastically reduced, or even set to zero. Similarly, if your account equity is low relative to your trailing drawdown floor, you might need to trade smaller. The strategy needs to be able to calculate available risk capital based on the remaining headroom to your daily loss and trailing drawdown limits.

When it comes to stop losses, GoldRush will have its own internal logic for placement. However, for prop firm challenges, you might need to override or tighten these stops. If a strategy's calculated stop is $1,000 away, but you only have $700 left until your daily loss limit, you cannot take that trade at full size. You either skip it, or you dynamically tighten the stop loss to, say, $300, and reduce your contract size to match the lower risk, even if it's less than the strategy's 'ideal' stop. This ensures that even if a trade goes against you immediately, it doesn't automatically fail your account. In Pine Script, this often means checking `(close - strategy.position_avg_price) * strategy.position_size * syminfo.mintick * syminfo.pointvalue` for open positions, and comparing potential new trade entry risks against your dynamic limits before defining the `stop_price` parameter in `strategy.exit()`.

Backtesting and Forward Testing with Prop Firm Constraints

You can't just write these rules into the code and assume it'll work. Extensive backtesting within TradingView is essential, but it needs to simulate the Topstep environment as closely as possible. This means manually setting initial account balances, daily loss limits, and trailing drawdown values in your strategy's input parameters. Then, you run the backtest, meticulously reviewing the results. Does the strategy respect the daily loss? Does it avoid breaching the trailing drawdown? If not, you iterate. This isn't just about PnL; it's about rule compliance.

Beyond backtesting, forward testing in a Topstep simulated account is non-negotiable. Trade the strategy with your customized rules in a demo environment for a significant period. This will expose any edge cases or logic flaws that the backtest might have missed. Watch how the strategy behaves under real-time market conditions with your integrated risk management. Does it consistently stop trading when it hits the daily loss? Does it correctly manage its trailing drawdown? These real-world dry runs are crucial before you ever consider putting real capital or starting an actual combine challenge on the line.

GoldRush Strategy Customization Checklist for Topstep

Here’s a quick rundown of the parameters and logic you’ll want to review and potentially modify within your GoldRush strategy's Pine Script source code to align with Topstep rules:

  • **Daily PnL Tracker:** Implement variables to track net profit/loss specifically for the current trading day. Reset this at the start of each new day.
  • **Daily Loss Limit Conditional:** Add `if` statements before `strategy.entry()` or `strategy.order()` calls to prevent new trades if the daily loss limit is hit.
  • **Close All on Daily Loss:** Include `strategy.close_all()` functionality to exit any open positions immediately if the daily loss limit is breached.
  • **Peak Equity Tracker:** Store the highest `strategy.netprofit` achieved since the start of the challenge to dynamically calculate the trailing drawdown floor.
  • **Trailing Drawdown Limit Check:** Before entering a trade, calculate the potential maximum loss of that trade and check if it, combined with current open PnL, would breach the trailing drawdown floor.
  • **Dynamic Position Sizing:** Modify the position sizing logic to reduce contract count if close to daily loss or trailing drawdown limits.
  • **Adjustable Stop Loss:** Parameterize GoldRush's internal stop loss values or add external overrides. Consider tightening stops if you're operating with limited headroom to your daily loss or trailing drawdown.
  • **Time-Based Trading Restrictions:** Implement parameters for specific trading hours (`time` function) to match Topstep's allowable trading windows for futures contracts.
  • **Max Open Positions/Contracts:** Add logic to limit the total number of open contracts or concurrent trades if GoldRush's default behavior exceeds Topstep's rules for your chosen account size.
  • **Slippage Consideration:** While not directly in the code, factor in slippage when testing your limits. A stop that's theoretically just above your limit might get executed below it in volatile markets, causing a breach.

Next Steps for Your Topstep Journey

Getting a strategy like GoldRush aligned with Topstep's rules is a significant undertaking. It requires more than just running the code; it demands an understanding of Pine Script, careful risk management integration, and rigorous testing. The goal isn't just to generate signals, but to generate signals responsibly within the prop firm's framework. If you're serious about passing these challenges, you need a strategy that you can adapt and control.

This level of customization means you need access to the strategy's inner workings. If you’re looking for a robust foundation to start this process, consider a strategy that provides its full source code, allowing you to implement these vital Topstep-specific risk management rules directly. Without that access, you're always going to be operating with one hand tied behind your back when it comes to prop firm challenges.

Related system

Get GoldRush Prop Firm Strategy for TradingView

The GoldRush Prop Firm Strategy for TradingView is available as full source code, complete with customizable alerts and a setup guide, exclusively on Etsy.

Secure checkout and instant digital delivery through Etsy — buyer protection included, no account with us required.

Keep reading