Equity Curve Feedback: The ON/OFF Switch Is Only the Beginning

There’s More Beneath the Surface.

The concept of equity curve feedback has been around for many years. I worked with Murray Ruggiero on several large projects that involved weaving trading ON/OFF switches into EasyLanguage strategies. It was arduous work, requiring considerable trial and error to keep the original strategy running in the background while automating the feedback decisions and measuring their results. But the idea offered a different avenue of research: instead of continually optimizing entry and exit parameters, we could investigate an overlay that controlled when to participate. That overlay effectively created a second version of the original system—one whose behavior depended on both the feedback model and the mechanics of stopping and restarting trading.

Only the Shadow Knows!

Equity curve feedback can be implemented using a “shadow system.” The original strategy casts a continuous shadow, following every entry and exit rule whether we are participating or sitting out. The feedback model opens and closes a viewing window onto that shadow, accepting eligible trades—or portions of trades—to build a parallel equity curve.

The challenge is keeping these two paths synchronized. The shadow must continue tracking every trade while the feedback-controlled system manages its positions and determines when to stop or resume new entries. Closing the window cannot stop the shadow: its continuing history provides the information we need to decide when to open the window again.

In my tests, I separate the feedback model from the mechanics of acting on its signals. The model determines when new entries are permitted. The Trading Settings determine when equity is sampled, what happens to existing positions when trading turns OFF, and how participation resumes when it turns ON.

Consider a longer-term trend-following strategy that may hold a position for several months. If we sample only closed-trade equity, the feedback model receives no new equity observation until that trade exits. A substantial open profit—or the loss of that profit—can develop before the model evaluates another result. Sampling at session close or every bar lets the model respond while the position is still open.

The execution choices matter just as much:

  • Finish existing trades at original exits: An OFF signal stops new entries, but an accepted position continues until the original strategy exits.
  • Liquidate at next bar close: An OFF signal schedules the accepted position to close at the following bar’s close.
  • New entries only: After an ON signal, wait for the original strategy to generate a fresh entry.
  • Adopt existing positions at next bar open: After an ON signal, join an eligible position the shadow system is already holding, using the following bar’s opening price.

For a long-term system, waiting for a fresh entry can create a lengthy pause. The shadow strategy might recover enough to turn participation ON while still holding the same trade that produced the recovery. With New entries only, we cannot join that trade. We must wait for it to end and for another entry to occur—potentially weeks or months later.

Adopting the existing position allows earlier participation, but we enter at the adoption price, not the shadow system’s original entry price. We do not receive the profits earned while we were sitting out.

This is why I made these settings explicit. The same feedback model and thresholds can produce substantially different results depending on when we observe equity and how we leave and rejoin the strategy.

Real World Examples

Here is an example of a trading system that one of my clients has used over the years.

Turning off and turn on – trading with feedback

 

Because this strategy trades every day, closed-trade equity provides frequent observations for the feedback model. TS-EquityCurve_FB offers three sampling options:

  • Closed Trades: Evaluate realized equity when trades exit.
  • Session Close: Evaluate equity, including open-position profit and loss, at each session’s close.
  • Every Bar: Evaluate equity, including open-position profit and loss, at every source bar’s close.

For this example, I selected Closed Trades, let accepted trades finish at their original exits, and resumed with fresh entries when trading turned back ON. The four execution combinations are:

  • Finish existing trades; resume with fresh entries.
  • Finish existing trades; resume by adopting an existing shadow position.
  • Liquidate at the next bar’s close; resume with fresh entries.
  • Liquidate at the next bar’s close; resume by adopting an existing shadow position.

Because positions turn over quickly, these execution choices may have less impact than in a longer-term strategy. Their actual effect must still be tested; daily trading alone does not guarantee similar results.

How Trading Settings Change the Results

For this test, I applied the Drawdown / Retracement model to a daily E-mini S&P 500 strategy using 10% drawdown, 50% recovery, and $100,000 starting account equity. The model monitors the original strategy and stops new entries after a 10% decline from peak account equity. It resumes after recovering 50% of the eventual peak-to-trough loss.  Here are examples of where bad equity curves can be improved and worsened by feedback.

The table shows how changing equity sampling and the exit/restart settings affects the results over April 2007 through November 2026.

Equity sampling When trading turns OFF When trading resumes Net profit Maximum drawdown Closed trades
Original system — — −$27K $86,212.50 228
Closed trades Finish existing trades New entries only −$5K $53,362.50 103
Closed trades Finish existing trades Adopt existing position −$4K $59,587.50 105
Closed trades Liquidate next bar close New entries only −$4K $53,362.50 103
Closed trades Liquidate next bar close Adopt existing position −$3K $59,587.50 105
Session close Finish existing trades New entries only −$17K $66,650 102
Session close Finish existing trades Adopt existing position −$76K $110,387.50 121
Session close Liquidate next bar close New entries only −$28K $86,000 102
Session close Liquidate next bar close Adopt existing position −$96K $139,875 128

Every Bar is omitted because this file contains daily bars and produces the same results as Session Close. Closed-trade sampling uses realized equity, while session-close sampling includes open-position profit and loss.

None of these configurations made money. However, all four closed-trade configurations reduced both the original strategy’s $27,150 loss and its $86,212.50 maximum drawdown. Session-close results were mixed, with some settings substantially increasing losses and drawdown.

Even with closed-trade sampling, execution settings can matter. A trade can exit and another enter during the same daily bar, before the drawdown model evaluates equity at bar close. An open position may therefore remain available to finish, liquidate, or adopt.

Equity curve feedback does not automatically improve a strategy. Its effect depends on the model, when equity is sampled, and how trading stops and restarts.

In this daily-bar example, liquidation takes place at the following bar’s close and adoption at the following bar’s open. Results include the recorded commission and slippage costs.

Equity curve feedback is easy to describe: stop trading when a rule says conditions have deteriorated, and resume when they improve. Putting that idea into practice requires more decisions than the simple ON/OFF switch suggests. When do we measure equity? What happens to an open position? When permission returns, do we wait for a fresh entry or join a trade already underway?

These examples show why those details deserve attention. Feedback can reduce drawdown, but it can also skip important winners, increase losses, or weaken a strategy’s contribution to a portfolio. The timing of winning trades matters just as much as the timing of losing trades.

I created software to make these questions easier to investigate. We can compare models and execution settings, then examine the audit trail to understand exactly how the results were produced. A better historical curve is a starting point for further testing—not proof that we have found a better trading system.

Bridge TradeStation’s Lumber Contracts

A fix for the lumber futures contracts

In TradeStation, most of the lumber history is represented by the custom continuous @LB_11INC symbol (note – you must make sure you plot enough history to surpass the April 2023 date to see any data.) The new contract is @LBR=11INC symbol. If you want to test both contracts and get realistic results, then you need the following “BRIDGE” function and strategy.

What changed:  the April 2025 introduction of a Southern Yellow Pine futures contract alongside the existing lumber contract, theoretically gave the market a targeted, species‑specific price standard for the most widely used U.S. framing timber.   During the pandemic the price of lumber went parabolic.

The new lumber contract is one\-quarter the size of the original contract. CME believed the smaller contract would be more accessible to traders, which in turn would improve liquidity and have a positive impact on both slippage and price volatility. While the results have been encouraging, the history of the new contract is still relatively short.

Because of this limited sample size, it makes sense to combine the old and new contracts using my “Lumber Bridge” methodology when conducting long-term backtesting. This provides a much broader historical perspective while maintaining continuity across the contract transition.

For traders building a portfolio of non\-correlated markets, lumber may be worth considering. Its unique supply\-and\-demand drivers can provide diversification benefits that are difficult to find in more traditional financial and commodity markets.

If you plot @LB=11INC going back a few years you and apply a system that has an open position at the end of the data you will get either an unrealistic profit or loss.

And if you just want to look at the newer contract you will get this in the early stages of the new contract.

If you are including lumber in your portfolio, you can use the following code to stop trading the old lumber LB=11INC and start trading the LBR=11INC on appropriate dates.  I determined you should get out of LB=11INC at the open of 4/25/2023 and wait for a new signal on or after 4/25/2023 in LBR=11INC.  

I exit on the open of 4/25/2023 in the old contract and start trading the new contract on the same date.

Here is a combined equity curve where there is no overlap.

LumberStrategy Code:

if symbol = "@LB=11INC" and date = 1230424 Then
Begin
if marketPosition = 1 then sell("OldLumber:lx") next bar at open;
if marketPosition = -1 then buyToCover("OldLumber:sx") next bar at open;
end;
A simple signal to get you out of the old contract

LumberBridge Function


LumberBridge = False;
if symbol = "@LB=11INC" and date < 1230424 Then
LumberBridge = True
else if symbol = "@LBR=11INC" and date >= 1230421 Then
LumberBridge = True;
if symbol <> "@LB=11INC" and symbol <> "@LBR=11INC" Then
LumberBridge = True;
If you will be testing lumber use this funciton

Incorporate the following code into your logic if testing lumber

includeSystem: "lumberBridgeStrategy";

if lumberBridge Then
begin

buy("le:Turt20") next bar at highest(h,20) + minMove/priceScale stop;
sellShort("se:Turt20") next bar at lowest(l,20) - minMove/priceScale stop;
end;
if marketPosition = 1 then sell("lx:Turt10") next bar at lowest(low,10) stop;
if marketPosition =-1 then buyToCover("sx:Turt10") next bar at highest(high,10) stop;
Use this code to properly bridge the lumber contracts

Why do all this work

This tool is absolutely necessary when working with portfolio-based trend following systems.  The lumber futures contract has demonstrated a high level of non-correlation against most other futures for years.  It is a unique market.