<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pterido on Medium]]></title>
        <description><![CDATA[Stories by Pterido on Medium]]></description>
        <link>https://medium.com/@pterido?source=rss-db10aad56bc0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KD2IooFh-9aa_v9DaxXG4Q@2x.jpeg</url>
            <title>Stories by Pterido on Medium</title>
            <link>https://medium.com/@pterido?source=rss-db10aad56bc0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:00:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pterido/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[05 | A Backtest Is Not a Promise]]></title>
            <link>https://medium.com/@pterido/05-a-backtest-is-not-a-promise-3e52ab9559ad?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e52ab9559ad</guid>
            <category><![CDATA[trading-system]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 14:50:48 GMT</pubDate>
            <atom:updated>2026-11-28T14:50:48.683Z</atom:updated>
            <content:encoded><![CDATA[<h4>When a trading strategy performs beautifully on historical data, how much of that success can we reasonably expect to survive live execution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*Kue7GGgHC-ZUsE-j4ZOntA@2x.jpeg" /></figure><p>Good looking backtest equity curve. A reasonable profit factor. Well managed risk. And seemingly many profitable trades — all seemingly indicative of a sound strategy.</p><p>However, I have learnt to ask myself whether have I actually uncovered an edge for trading or simply identified a rule- based system which coincidentally performed well in the past?</p><p>That distinction matters more than the appearance of the equity curve.</p><h4>Optimization or Overfitting</h4><p>Imagine testing 100 variations of a futures strategy, changing entry, stop distances, and trading hours.</p><p>One combination yielded an impressive 25% return. Most others perform poorly. It is tempting to select the winner and call it optimized. But what we have done was only to effectively give the strategy 100 opportunities to look successful.</p><p>Bailey and colleagues demonstrate how repeated testing and selecting the best historical configuration can produce misleading performance, even without a durable underlying advantage.¹</p><p>The more combinations we examine, the greater the danger of fitting historical noise.</p><h4>Imaginary Backtest Profit</h4><p>Consider a hypothetical backtest with these assumptions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*UfwT9BcQ5tdgQsVxq3KFPw@2x.jpeg" /></figure><p>The strategy still appears profitable. But suppose live slippage averages $9 instead of $5. Net expectancy becomes:</p><p>$12 − $4 − $9 = −$1 per trade.</p><p>Across 200 hypothetical trades, the expected result changes from +$600 to −$200. An additional $4 in execution cost has erased the apparent edge.</p><p>The CFTC cautions that simulated trading cannot fully represent actual execution, including liquidity effects and hindsight.²</p><h4>Out of Sample Data</h4><p>A useful validation process separates strategy development from genuine evaluation. Parameters can be selected using training data, then tested against a later period that was not used to design or refine them.</p><p>Walk-forward testing can extend this principle by repeating development and evaluation across successive periods. But there is a catch.</p><p>If we repeatedly modify the strategy after seeing the supposedly unseen historical market moves, that data is no longer truly independent. The final evaluation must be insulated from our own curiosity, as even a successful out-of-sample test cannot guarantee future profitability.</p><h4>Closing Thought</h4><p>A backtest is valuable because it allows us to reject weak ideas before risking capital. Its purpose is not to promise what tomorrow will deliver.</p><p>Historical performance should earn a strategy further investigation, not automatic trust.</p><p>Before deployment, I would rather see a modest edge that survives costs, parameter changes and unseen market conditions than a spectacular equity curve that depends on perfect historical settings.</p><p>Reader question: Would you trust a strategy with a 25% optimized backtest return or one with a smaller return that survives independent testing?</p><p><em>Learning. Trading. Automating. Becoming Free.</em></p><p>— PteridoTrader</p><h4>Sources</h4><p>¹ Bailey, D. H., Borwein, J., López de Prado, M., and Zhu, Q. J. (2014). <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2308659">Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance</a>. Notices of the American Mathematical Society, 61(5), 458 — 471.</p><p>² U.S. Commodity Futures Trading Commission. <a href="https://www.ecfr.gov/current/title-17/chapter-I/part-4/section-4.41">17 CFR § 4.41 — Advertising by Commodity Pool Operators, Commodity Trading Advisors, and Their Principals</a>. Explains limitations of simulated and hypothetical performance reporting.</p><p><em>For educational purposes only; not financial or investment advice. Numerical examples are hypothetical and do not represent actual trading results. Futures and leveraged trading carry substantial risk of loss</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e52ab9559ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algo Reinforcement]]></title>
            <link>https://medium.com/@pterido/algo-reinforcement-0a2730745e91?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a2730745e91</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automated-trading]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 20:42:55 GMT</pubDate>
            <atom:updated>2026-11-27T20:42:55.310Z</atom:updated>
            <content:encoded><![CDATA[<h4>How automation reinforces discipline when skill, capital, and willpower reach their limits.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*ypW6RNwnZoKpvZugCD1yMw@2x.jpeg" /></figure><p>I was fighting a battle. My training came in handy. But my weapon wasn’t effective against every enemy. And my ammunition was running dry. I fought harder, hoping to turn things around. Only to find myself losing more ground.</p><p>With my capital thinning and my discipline fading. I knew I needed a different way of fighting. So I called in reinforcements. Not to guarantee victory. But to execute with precision. Without fear, fatigue, or hesitation.</p><p>The enemy remains unpredictable. The mission remains the same. But with a tested weapon and disciplined reinforcements. I now stand a better chance.</p><p>The battle continues. But I no longer fight it alone.</p><p>A short literary reflection with the following allegorical meanings:</p><ul><li>Battle — The trading journey</li><li>Combat training — Trading skills and experience</li><li>Weapon — Trading strategy</li><li>Ammunition — Trading capital and discipline</li><li>Enemy — Market uncertainty</li><li>Losing ground — Drawdowns and financial losses</li><li>Reinforcements — Algorithmic automation</li><li>Mission — Consistent profitability</li><li>Victory — Greater financial freedom</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a2730745e91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When the Bot Is Right but the System Is Wrong]]></title>
            <link>https://medium.com/@pterido/when-the-bot-is-right-but-the-system-is-wrong-63b2ca5387ad?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/63b2ca5387ad</guid>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[money]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 10:08:20 GMT</pubDate>
            <atom:updated>2026-11-26T10:08:20.039Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why profitability and operational reliability are two different things.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*pm9A5EHaQyCvk95xl-v6HQ@2x.jpeg" /></figure><p>Imagine reviewing your automated trading results at the end of a session. The account is profitable. The trades have been recorded. The dashboard shows no apparent problems. By most conventional measures, the system has performed well.</p><p>But what if one of those profitable trades was never supposed to happen? Perhaps the position was larger than intended. Perhaps an order was submitted twice. Perhaps the strategy used information that was no longer current. The financial outcome was favorable, but the process was defective. Would you classify that as a successful trading day?</p><p>As I spend more time developing automated trading software, I find this distinction increasingly important. Profitability tells me something about the financial outcome of a decision. It does not necessarily tell me whether the system responsible for that decision is functioning correctly.</p><h4>Other Definitions of Success</h4><p>Most traders evaluate their strategies through familiar measures: net profit, win rate, expectancy, drawdown and risk-adjusted returns.</p><p>These remain essential. But automated trading introduces another dimension of performance that deserves its own assessment. Operational integrity.</p><p>Consider below four hypothetical outcomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*bqTczVPTm7F1yo-qzRs2CQ@2x.jpeg" /></figure><p>The third outcome concerns me most. Whilst poor software can cause losses, it can also generate profits and yet there may be no inquiry into the latter.</p><p>The profits can even mask poor software design which in turn can lead to further problems. And this becomes not just an issue of traders’ behaviour but also of measurement.</p><h4>Test Automated System’s Rules &amp; Decisions</h4><p>It is useful to evaluate an automated trading system through three separate questions.</p><ol><li>Was the decision correct?</li></ol><p>Whilst it is not about market prediction, a good decision will be one that has been made according to rules and based on appropriate information which was available to the decision maker.</p><p>A losing signal can satisfy this requirement. A profitable signal generated from incorrect data cannot.</p><p>2. Was the decision executed correctly?</p><p>An analysis should be made between the planned and the broker’s position.</p><p>Prior to a strategy believing it has successfully implemented its orders, order confirmations, partial executions, order cancellations and full executions must be analysed.</p><p>Generating a correct signal and establishing the intended market exposure are separate achievements.</p><p>3. Could the controls contain a failure?</p><p>If either of the preceding processes becomes unreliable, can the system prevent additional unintended exposure?</p><p>Such controls must not solely rely on the same data and/or programme which they are controlling.</p><p>Just because controls pass the first two tests in normal circumstances it does not necessarily mean that they will also be successful in abnormal circumstances.</p><h4>System Goes Wayward</h4><p>The Knight Capital incident of August 2012 illustrates why these distinctions matter.</p><p>A failed computer programme caused the company’s computerised trading system to malfunction, according to the U.S. Securities and Exchange Commission. It was then no longer able to consistently identify which orders had been executed.</p><p>While attempting to process just 212 customer orders, it submitted more than four million orders within approximately 45 minutes. Knight ultimately suffered losses exceeding $460 million.¹</p><p>Although these issues were not related to those of an individual futures trader, they do raise an important issue for algorithmic trading. Can a computerised system assess on its own whether it is behaving in line with its goals?</p><p>In addition to the coding problem, the SEC highlighted inadequacies in risk, implementation and response processes.</p><p>A fault became financially catastrophic because the surrounding system could not adequately contain it.</p><h4>Is Strategy Blind Spot a Problem?</h4><p>Imagine a futures trading bot with a maximum daily loss limit of $500. The bot uses its internal execution journal to calculate realized losses and automatically prohibits new entries once the threshold is reached.</p><p>Now suppose two completed losing trades are missing from that journal. The broker records a realized loss of $600. The bot calculates only $400. Trading continues.</p><p>Although there may be a correctly implemented limit on losses, lack of information means that this is not always effective. The execution and protection processes both suffer from the same blindspot.</p><p>An additional process could be used to cross check data relating to execution and position size, as provided by brokers, with in house information. Further trading could then be prevented if differences were identified which were beyond an agreed level of acceptability.</p><p>Such controls cannot eliminate every failure. External information can also become unavailable or inaccurate. However, it does provide a further avenue at which a discrepancy can be identified prior to further position building.</p><h4>Testing Strategy To Fail</h4><p>Backtesting asks how a strategy might have performed under specified historical conditions. Operational testing asks a different question: what happens when the conditions required for correct execution are no longer satisfied?</p><p>In April 2026, U.S. banking regulators issued revised guidance on model risk management, reinforcing the importance of risk-based oversight appropriate to an organization’s activities and complexity.²</p><p>Although the guidance is directed toward supervised banking organizations, its underlying approach offers useful principles for independent system developers.</p><p>An automated trading system should be tested against scenarios such as:</p><ul><li>Market data stops updating while the application remains connected.</li><li>An order is filled, but its acknowledgement is delayed.</li><li>The broker’s position differs from the internal execution journal.</li><li>The application restarts while a position remains open.</li><li>A risk-control component becomes unavailable.</li></ul><p>For each scenario, three things should be established: how the failure is detected, how additional exposure is restricted, and what must happen before normal trading resumes.</p><p>A safeguard that has never been tested under failure conditions remains an unverified assumption.</p><h4>If You Stop, Is it Discipline?</h4><p>In <a href="https://medium.com/@pterido/the-trade-the-bot-would-have-taken-f5aad37ebe1a">The Trade the Bot Would Have Taken</a>, I explored the effect of human involvement on a systematic approach to trading. However, there is an important distinction to be made between these two forms of involvement.</p><p>Whilst one involves humans overriding a system’s decision making process in order to pursue what they consider to be the right course of action — the other is concerned with maintaining the integrity of the environment within which the system has been authorised to trade.</p><p>One substitutes personal judgment for an approved strategy. The other protects the conditions under which that strategy was authorized to operate.</p><p>This distinction allows the trader to remain disciplined without becoming blindly dependent on automation.</p><h4>Closing Thought</h4><p>I’m beginning to see automated trading as requiring two separate records. One measures financial performance. The other measures whether the system consistently operated within its intended conditions. Neither can substitute for the other.</p><p>A correctly executed loss may be an acceptable outcome. An incorrectly executed profit may be a warning that deserves immediate attention.</p><p>The quality of an automated trading system should therefore be judged not only by how much money it makes when everything works, but also by how reliably it recognizes and contains failures when something does not.</p><p>A profitable strategy earns the opportunity to trade. A reliable system earns the responsibility of executing it.</p><p><em>Learning. Trading. Automating. Becoming Free</em>.</p><p>— PteridoTrader</p><h4>Sources</h4><p>¹ U.S. Securities and Exchange Commission (2013). SEC Charges Knight Capital With Violations of Market Access Rule. <a href="https://www.sec.gov/newsroom/press-releases/2013-222">Press Release 2013–222</a>, October 16, 2013.</p><p>² Board of Governors of the Federal Reserve System, Office of the Comptroller of the Currency, and Federal Deposit Insurance Corporation (2026). Revised Guidance on Model Risk Management. <a href="https://www.federalreserve.gov/supervisionreg/srletters/SR2602.htm">Federal Reserve Supervisory Letter SR 26–2</a>, April 17, 2026.</p><p><em>PteridoTrader documents my personal trading, software-development and learning journey. Nothing here is financial or investment advice, and past or simulated performance does not guarantee future results. Futures and leveraged trading involve substantial risk of loss. Any results discussed from practice, simulation, evaluation or funded accounts should be understood within the specific rules and limitations of those environments</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63b2ca5387ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[04 | The Leverage Trap: Small Margins, Large Exposure]]></title>
            <link>https://medium.com/@pterido/04-the-leverage-trap-small-margins-large-exposure-ff9a72566d76?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff9a72566d76</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 12:33:41 GMT</pubDate>
            <atom:updated>2026-11-21T12:33:41.503Z</atom:updated>
            <content:encoded><![CDATA[<h4>When a futures contract requires only a fraction of its value as margin, are we measuring the actual exposure or just the cost of opening the position?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*bo-n5793Tenovh7N3-c9oA@2x.jpeg" /></figure><p>One of the most attractive features of futures trading is capital efficiency. A trader can control a substantial market position without depositing its full notional value.</p><p>That flexibility makes futures useful for hedging, portfolio management, and active trading. But it also creates an easily misunderstood distinction.</p><p>The margin required to open a position is not the amount the position can lose. And confusing those two numbers can make an account appear much safer than it really is.</p><h4>The Exposure Behind the Margin</h4><p>Consider a hypothetical futures position with:</p><p>Contract notional value: $200,000</p><p>Required initial margin: $10,000</p><p>Trading account equity: $20,000</p><p>The position requires $10,000 in margin, representing just 5% of its notional value. But it creates exposure equivalent to ten times the account’s equity.</p><p>Now suppose the underlying market moves against the position by 2%. Assuming a linear contract payoff:</p><p>2% × $200,000 = $4,000 loss</p><p>Before trading costs, that is 40% of the initial margin and 20% of the total account equity. A relatively modest market movement has created a substantial account loss.</p><p>CME Group explains that futures margin is a performance bond, not a down payment on the contract’s underlying value.¹</p><h4>Margin Is Not a Stop-Loss</h4><p>This distinction matters because margin requirements do not necessarily indicate the maximum amount that the trader is willing to lose.</p><p>If a trader does not meet the margin requirements in their account, the broker may ask them to deposit further funds, limit positions, or close positions. This will depend on margin requirements and account requirements.</p><p>The CFTC explains that futures positions are marked to market and that additional funds may be required when account equity falls below maintenance requirements.²</p><p>It should be noted that even if a stop loss has been placed, it may not be executed at the desired price due to gapping, fast market movement or low liquidity.</p><p>Consideration must be made for the level of the stop loss and possible deviation from the desired stop loss price.</p><h4>When Small Margins Encourage Oversizing</h4><p>The low margin requirement may mean that buying more contracts looks very appealing.</p><p>However, if 1 contract results in a loss of $4,000 on a certain adverse price movement, buying 2 identical contracts will result in roughly double the loss ($8,000). However, at first glance the margin may still be very manageable. In reality you have doubled your exposure.</p><p>For traders at a prop firm, the daily loss limit, cumulative drawdown and liquidation requirements, may mean that risk capacity is limited much sooner than when buying power appears to be used up.</p><h4>Closing Thought</h4><p>Leverage is neither inherently good nor inherently bad. It is a mechanism that magnifies exposure relative to capital.</p><p>The problem begins when we judge a trade by how little margin it requires rather than by how much the account could lose.</p><p>Before asking how many contracts we can open, we should ask how much adverse movement the account can survive.</p><p><em>Reader question</em>: When sizing a futures position, do you begin with available margin or with the maximum loss your account can tolerate?</p><p><em>Learning. Trading. Automating. Becoming Free.</em></p><p>— PteridoTrader</p><p><strong>Sources</strong></p><p>¹ CME Group, The Power of Leverage. Explains notional exposure, capital efficiency and futures initial margin.</p><p>² U.S. Commodity Futures Trading Commission, Economic Purpose of Futures Markets and How They Work. Explains futures margin, daily marking to market and maintenance obligations.</p><p><em>For educational purposes only; not financial or investment advice. Numerical examples are hypothetical and do not represent actual trading results. Futures and leveraged trading carry substantial risk of loss.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff9a72566d76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Journal Records Fills, Not Opportunities]]></title>
            <link>https://medium.com/@pterido/your-journal-records-fills-not-opportunities-5cd94a58b029?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cd94a58b029</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automated-trading]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 09:41:49 GMT</pubDate>
            <atom:updated>2026-11-19T09:41:49.800Z</atom:updated>
            <content:encoded><![CDATA[<h4>If we measure every trade we execute but ignore the opportunities we reject, how much of our strategy’s performance are we actually seeing?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*8645J-m7jTXkHCknxlExAQ@2x.jpeg" /></figure><p>A losing trade is easy to remember. It appears in the trading journal. It changes the account balance. There is an entry, an exit, a timestamp, and a number that tells us how much we gained or lost. But what about a trade we never took?</p><p>A setup appears. The signal is valid. Yet something stops us from entering. Perhaps we hesitate. Perhaps the market looks uncomfortable. Perhaps the previous trade was a loss, or we simply decide that this particular opportunity does not feel right. Nothing gets executed. The account balance remains unchanged. And unless we deliberately record the decision, the opportunity disappears from our performance history.</p><p>I have been thinking about how much information traders leave behind this way. A trading journal records what we did. But it may tell us very little about the decisions we avoided.</p><h4>The Unseen Side of Performance</h4><p>In my previous article, The Trade the Bot Would Have Taken, we looked at how inserting discretion into an automated trading system can affect performance.</p><p>But let’s look at all of the valid signals that we have ignored. Some trades would have made money, some would have lost. It may be that some of these trades were not even possible given the price movements shown in the chart.</p><p>If we do not log the full population we may not know if we have a consistently useful filter or just one that has been lucky. This is where a trading journal begins to resemble a research database rather than simply a record of transactions.</p><h4>Why Missing a Trade Feels Different</h4><p>Research in behavioral psychology suggests that people sometimes judge harmful actions differently from equally harmful failures to act.</p><p>Spranca, Minsk, and Baron examined this tendency in their research on omission bias.¹ Their experiments found that participants often judged harmful omissions less negatively than harmful actions under otherwise comparable circumstances.</p><p>This may not be the case in practice, but it is interesting to note that we may pay more attention to losing trades we have made than losing trades which occurred due to inaction. In addition to this, we may experience more regret with a large missed profit opportunity, but this gives us no indication of whether the decision made was statistically sensible.</p><p>Missing out on $500 of profit may be very memorable. However, missing out on 20 trades with a collective loss of $1000 is much more easily ignored. Therefore, our memory is not a reliable representation of a full data set.</p><h4>Missed Signals</h4><p>If a trading strategy has 120 valid signals during a backtesting period, but only 80 are taken and 40 are missed, then 80 trades will be present in the trading journal.</p><p>However, by applying the same entry, stop loss, exit and time conditions, we can create a record of what would have happened with the 40 missed signals.</p><p>Imagine that when we do this we get the following results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*iJIXsOatR42-M9g6Gg_D2Q@2x.jpeg" /></figure><p>These are indicative results only. While the overall net expectation for rejected signals was positive at $7.50, it does not necessarily mean that $300 worth of profit was lost.</p><p>It may be that the signals would overlap existing positions. The account may also not have had enough risk capacity. Actual trade execution may differ to the simulation due to latency, slippage.</p><p>Accepting these trades may have altered exposure at a later stage in the account, or caused restrictions.</p><p>The $300 is therefore a standalone hypothetical outcome, not an established amount of lost profit. But the exercise reveals something useful. The rejected trades deserve investigation.</p><h4>Filtering vs Justifying</h4><p>It may be correct to filter out trades. For example, during high volatility, low liquidity, expected news, or once risk limits have been exceeded. These may be valid reasons.</p><p>Distinguishing between filters and justifications is important. If a trade is filtered out due to high volatility, and clearly exceeds the defined volatility limit, this is a valid filter. However, if a trade is avoided because ‘it looked risky’ then this may be a useful discretionary decision. However it is difficult to assess how well the decision was made, if there is no coherent set of rules.</p><p>Including a category in your trading journal for the reason that a signal was missed (filter, risk limits, execution, technical issues or discretionary) can allow for analysis of each category.</p><p>This is not necessarily trying to remove discretion. It is just trying to understand if any discretion is providing quantifiable benefit.</p><h4>Avoiding the Trap of Selecting Winners</h4><p>There is another danger. Once we have historical outcomes, it becomes tempting to design rules that would have accepted the missed winners while avoiding the missed losers. That is exactly where a promising analysis can become an overfitted backtest.</p><p>Bailey and López de Prado explain how selecting favorable results from repeated historical tests can inflate apparent strategy performance.² Their work is a reminder that a successful historical filter may reflect the selection process rather than a durable trading advantage.</p><p>Suppose we discover that rejected trades taken after 10:15 AM would have performed particularly well. Was that time genuinely informative? Or did we test dozens of time thresholds and select the one producing the most attractive historical result? Those are very different conclusions.</p><p>A filter should be evaluated on data not used to choose it, with realistic execution assumptions and appropriate attention to repeated testing. Otherwise, we risk turning yesterday’s missed opportunities into tomorrow’s false confidence.</p><h4>Building the Shadow Journal</h4><p>For an automated system, I would treat rejected signals as part of the execution architecture. Where a valid signal has been generated, the following should be recorded: time, symbol, trade direction, conditions for entry, stop and exit levels, and reason for rejection/acceptance.</p><p>Simulations may be run on the rejected signals, with specific assumptions. The analysis should consider three distinct questions.</p><p><strong>First</strong>: What would each rejected signal have produced if evaluated independently?</p><p><strong>Second</strong>: What would have happened if the complete strategy had accepted those signals, including position overlap and risk limits?</p><p><strong>Third</strong>: Did the rejection policy improve performance after accounting for costs, drawdowns, uncertainty, and changes in market conditions?</p><p>The first question evaluates opportunities. The second evaluates a feasible trading policy. The third evaluates whether the decision rule adds value. These should not be confused.</p><p>Studies of off-policy learning consider the problem of determining the performance of an alternate policy given observed data.³ This literature (although not specific to future trading) shows that observation of the results of unmade decisions is not trivial.</p><p>Shadow journal is a measuring system, not a second broker statement.</p><h4>Closing Thought</h4><p>We spend considerable effort analyzing trades that lost money. We review entries, study exits, adjust filters, and search for mistakes.</p><p>But perhaps some of the most useful evidence sits outside the transaction history. In signals we rejected. In opportunities we hesitated over. In orders the system prevented. And in decisions that left no visible trace on the account balance.</p><p>The goal is not to regret every missed winner or convince ourselves that every skipped trade should have been taken. It is to stop allowing unexecuted decisions to disappear from our evidence.</p><p>A strategy should be evaluated not only by the trades it took, but also by the opportunities it systematically chose to leave behind.</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— PteridoTrader</p><h4>Sources</h4><p>¹ Spranca, Mark, Elisa Minsk, and Jonathan Baron (1991). “Omission and Commission in Judgment and Choice.” Journal of Experimental Social Psychology, 27(1), 76 — 105. Examines how judgments can differ between acting and failing to act. Research paper.</p><p>² Bailey, David H., and Marcos López de Prado (2014). “The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting, and Non-Normality.” The Journal of Portfolio Management, 40(5), 94 — 107. Examines the dangers of strategy selection after repeated historical testing. Research paper.</p><p>³ Dudík, Miroslav, John Langford, and Lihong Li (2011). “Doubly Robust Policy Evaluation and Learning.” Proceedings of the 28th International Conference on Machine Learning. Examines evaluation of alternative decision policies from incomplete historical feedback. Research paper.</p><p><em>PteridoTrader documents my personal trading, software-development and learning journey. Nothing here is financial or investment advice, and past or simulated performance does not guarantee future results. Futures and leveraged trading involve substantial risk of loss. Any results discussed from practice, simulation, evaluation or funded accounts should be understood within the specific rules and limitations of those environments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cd94a58b029" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[03 | When Staying In Cash Is A Position]]></title>
            <link>https://medium.com/@pterido/03-when-staying-in-cash-is-a-position-db4266a808bc?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/db4266a808bc</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automated-trading]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 12:47:42 GMT</pubDate>
            <atom:updated>2026-11-14T12:47:42.899Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sometimes the decision not to invest is deliberate risk management. But what are we paying for that flexibility?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*JGJ-nrl-PwvJRID8RVBQiw@2x.jpeg" /></figure><p>We often describe cash as money that is doing nothing. No position. No market exposure. No opportunity to capture the next rally.</p><p>For active traders, staying in cash can feel like missing out. But cash is not necessarily the absence of a decision. Sometimes, staying out of the market is itself a position, with benefits, costs, and risks worth measuring.</p><h4>The Price of Waiting</h4><p>Consider a hypothetical investor holding $50,000 in cash. Assume the cash earns 2% annually, while an available investment opportunity could earn 6%.</p><p>Over one year, ignoring taxes, fees, and compounding:</p><ul><li>Cash income: $1,000</li><li>Hypothetical investment return: $3,000</li><li>Difference: $2,000</li></ul><p>If the investment achieves that 6% return, the investor sacrifices $2,000 by remaining in cash. That is the opportunity cost of waiting. But the 6% is an assumption, not a guaranteed return.</p><p>Suppose the same investment instead declines by 12%. The investment would lose $6,000, while the cash position would still earn its assumed $1,000.</p><p>In that scenario, cash finishes $7,000 ahead. The same decision can therefore look expensive or prudent depending on what happens afterward.</p><p>The challenge is that we do not know the outcome in advance.</p><h4>Liquidity Can Be Useful</h4><p>Cash equivalents can be useful for short-term goals, but they expose investors to inflation risk.1</p><p>Vanguard highlights the importance of considering cash allocations in relation to your investment goals, time horizon and risk tolerance.2</p><p>For a futures trader, available cash or unused risk capacity may provide flexibility to withstand unfavorable conditions without being forced into additional exposure. That flexibility has value, even if it is difficult to express as a fixed percentage.</p><p>However, if you’re avoiding risk completely it can be expensive especially if you have a strategy with positive net expectancy. You could be losing out by ignoring legitimate signals.</p><h4>When Cash Becomes an Excuse</h4><p>There is a big difference between having a plan when to sit and sitting because you are emotionally unsure about the market.</p><p>“My volatility filter stops me from entering new positions”. That is a defined risk decision. “The market looks a bit confusing so I’ll sit”. That may be reasonable judgment, but it is harder to test consistently.</p><p>If you write down why you are sitting in cash and what would make you enter again then it becomes clear. Otherwise, you could end up sitting in your hands indefinitely.</p><h4>Closing Thought</h4><p>Being invested is not always productive. Being in cash is not always defensive. Both decisions carry an opportunity cost.</p><p>The objective is not to stay permanently invested or permanently safe. It is to know what risk we are accepting — and what opportunity we are giving up.</p><p>Reader question: Do you measure the cost of staying out of the market as carefully as the cost of entering it?</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— PteridoTrader</p><p><strong>Sources</strong></p><p>¹ U.S. Securities and Exchange Commission, Things to Consider Before You Make Investing Decisions. Explains investment horizons, risk tolerance, cash equivalents and inflation risk.</p><p>² Vanguard, A Framework for Considering Cash in Your Portfolio, April 2024. Discusses liquidity, investment objectives and the trade-offs of holding cash.</p><p><em>For educational purposes only; not financial or investment advice. Numerical examples are hypothetical and do not represent actual trading results. Futures and leveraged trading carry substantial risk of loss.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db4266a808bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design the Rule Before the Trade]]></title>
            <link>https://medium.com/@pterido/design-the-rule-before-the-trade-90755c1a5fba?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/90755c1a5fba</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 13:38:47 GMT</pubDate>
            <atom:updated>2026-11-12T13:38:47.443Z</atom:updated>
            <content:encoded><![CDATA[<h4>If we only decide what our trading rules mean when the market tests them, were they ever really rules?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*ArQ0jVnYEzOQ2PvdPX5QpQ@2x.jpeg" /></figure><p>Imagine an engineer beginning a Building construction and calculating the load capacity on the fly. The foundation is already poured. Steel is rising. Only when the structure begins to move does someone ask what “safe” was supposed to mean.</p><p>It sounds absurd. Yet traders do something similar when they write rules such as; avoid high volatility, take only good setups, exit if conditions change, override the bot when the market looks abnormal. These sentences express intentions. They are not yet rules.</p><p>To consider something a trading rule there needs to be two people (or two independent pieces of code) who have access to the same information and can make the same decision. Any ambiguity in what the rule means will cause the market to help define the rule, and usually it is too late.</p><h4>A Rule Needs Details</h4><p>Psychological studies into implementation intentions have shown that by being specific about when, where and how you will do something, increases the chance of turning an intention into action. This has shown to be a medium to large effect in 94 tests.¹</p><p>With trading, rules can be executed at machine speeds and so need to be much more specific. Any trading rule that can be used should include the following at minimum:</p><p><strong>Trigger</strong>: What is the exact trigger?</p><p><strong>Inputs</strong>: What prices, indicators or account values are allowed?</p><p><strong>Time</strong>: Is it based on a completed bar? What time is it using?</p><p><strong>Action</strong>: What order or change should happen?</p><p><strong>Exclusions</strong>: What can stop or change the action?</p><p><strong>Fail</strong>: What should happen if there is uncertainty with data, connection or execution?</p><p>The rule “Stop trading after a large loss” is not very specific. However “Disable new entries until the next session after realized daily P&amp;L, including commissions, reaches –1.5% of start-of-day equity” is more of a rule.</p><p>However, there are still questions to be answered. What happens if the limit is breached by fees? Will protective stop orders still be in place? What timezone is the session using? Can an operator enable the strategy? Ambiguity can still exist.</p><h4>Test Edge Cases</h4><p>A lot of rules will pass with ease using some obvious examples.</p><p>Should a trade be placed on a signal which is exactly 09:30:00 for a strategy that only places trades after 9:30am? What if there is a discrepancy between the market data feed and execution server of 400 milliseconds?</p><p>If the maximum spread to allow is 2 ticks, should we allow exactly 2 ticks? Or below 2 ticks? What if one side of the book is out of date?</p><p>Should we wait for the bar to finish? Should we use the last value we know, or will the data vendor have updated it? These aren’t trivial software questions. These will dictate what trades we place.</p><p>The recent paper ‘Hard to Fool’ tackles this by having a rule that means the language model cannot judge whether it was successful in its research. The model suggests a declarative approach. Trusted code will split the data based on time, costs, sample requirements and a locked holdout. 2 The key takeaway is having a separation of concerns.</p><p>This should be the case within your trading system. Just because you receive a signal suggesting you should do something, it shouldn’t mean you can change the conditions of when this is valid.</p><h4>Institutional Rules</h4><p>This isn’t just for retail traders. The SEC rules state that institutions must have controls in place that can be documented to prevent orders being accepted that are above set limits for credit, capital, price or quantity. 3 The guidance highlights that “limits should be established as part of the due diligence process, documented, monitored and adjusted as appropriate.” 4</p><p>The CME Globex Credit Controls allow pre-trade exposure and maximum quantity limits. The kill switch function can cancel existing orders and prevent new orders if pre-defined actions need to be taken. 5</p><p>This really isn’t about the small trader needing the infrastructure of an institution. It’s about having a mature system which dictates who can do what, and when.</p><h4>Exception Handling</h4><p>A common mistake is to think the main rule is the rule and exceptions are judgement calls. This can create a dangerous scenario where the system is handling the regular trades and the trader is handling those which are important emotionally.</p><p>If you are going to allow manual overrides, then they should have rules around them.</p><p>What is the trigger? Can the operator only reduce the risk? Can they increase the risk? Must there be a reason documented? How long does the override last? Can the system automatically revert? Who will check whether the override helped?</p><p>Without these rules the override is just permission.</p><p>The aim is not to remove all judgement, but to move the judgement to an area where they are calmer. They have had time to look at the evidence.</p><h4>Versioning</h4><p>Your rules should also be versioned. If there is a change to the rule, ensure you note; What the rule was previously. What the new rule is. What evidence shows it should change. When it comes into effect. What test cases it needs to pass.</p><p>Do not apply the new rule to old data to improve your backtest. If you lost money yesterday and realise there was some ambiguity, this is good evidence. You can’t pretend there wasn’t.</p><p>For a single person quant desk you could simply have a rule that no changes will take effect in the same session they were caused. Any emergency actions may reduce exposure, but logic changes will need to be checked.</p><p>This provides a gap between risk management and strategy changes.</p><h4>Testing Your Rule</h4><p>Ask yourself: Would someone else be able to apply the rule without me explaining my intent? Have I tested equality, time and null cases? Is the exception handling specific? Does the safe option reduce exposure? Will all future changes be auditable?</p><p>If you answer ‘No’ to any of these questions then you may have a great idea, but it’s not ready to be used to control a trade.</p><h4>Closing Thought</h4><p>The market is an expensive place to discover what our own rules mean. Good rules do not predict every event. They define how the system will respond when an event arrives — including the awkward cases we would prefer to decide later.</p><p>Designing the rule before the trade is not rigidity. It is choosing the moment when we want our clearest thinking to matter.</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— PteridoTrader</p><p>Sources</p><ol><li>Peter M. Gollwitzer and Paschal Sheeran, “<a href="https://doi.org/10.1016/S0065-2601(06)38002-1">Implementation Intentions and Goal Achievement: A Meta-analysis of Effects and Processes</a>”⁠, 2006.</li><li>Henry Zhang, “<a href="https://arxiv.org/abs/2611.06607">Hard to Fool: A Bounded LLM Research Loop for Quantitative Finance, and What Two Dozen Campaigns Found”⁠, November 4, 2026.</a></li><li>U.S. Securities and Exchange Commission, <a href="https://www.law.cornell.edu/cfr/text/17/240.15c3-5">17 CFR §240.15c3–5: Risk Management Controls for Brokers or Dealers With Market Access⁠.</a></li><li>U.S. Securities and Exchange Commission, <a href="https://www.sec.gov/divisions/marketreg/faq-15c-5-risk-management-controls-bd.htm">Responses to Frequently Asked Questions Concerning Rule 15c3–5⁠.</a></li><li>CME Group, <a href="https://www.cmegroup.com/tools-information/webhelp/globex-credit-controls/Content/Overview.html">Globex Credit Controls</a>⁠ and <a href="https://www.cmegroup.com/tools-information/webhelp/cme-core/Content/Kill-Switch.html">Kill Switch</a>⁠.</li></ol><p><em>Disclaimer: Pteridotrader documents my personal trading, software-development and learning journey. Nothing here is financial or investment advice, and past or simulated performance does not guarantee future results. Futures and leveraged trading involve substantial risk of loss. Any results discussed from practice, simulation, evaluation or funded accounts should be understood within the specific rules and limitations of those environments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90755c1a5fba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[02 | A High Win Rate Can Still Lose Money]]></title>
            <link>https://medium.com/@pterido/02-a-high-win-rate-can-still-lose-money-a4f71c986f37?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4f71c986f37</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[automated-trading]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 13:54:48 GMT</pubDate>
            <atom:updated>2026-11-07T13:54:48.801Z</atom:updated>
            <content:encoded><![CDATA[<h4>Being right more often does not necessarily mean making more money</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*49rqFO5ftcg6-C63xIdOyA@2x.jpeg" /></figure><p>A 70% win rate sounds impressive. Seven successful trades out of ten. More green results than red. A strategy that appears consistently accurate. But there is a number that a win rate alone cannot reveal.</p><p>How much do we earn when we win, compared with how much we lose when we are wrong?</p><p>In trading, being correct is not the same as being profitable.</p><h4>The Mathematics Behind Accuracy</h4><p>Imagine a hypothetical futures strategy completing 100 trades:</p><p>Winning trades: 70</p><p>Losing trades: 30</p><p>Average winning trade: $40</p><p>Average losing trade: $120</p><p>The strategy generates $2,800 from its winners but loses $3,600 from its losers. That produces a gross loss of $800, despite a 70% win rate.</p><p>Now assume $4 in combined round-trip trading costs per completed trade. Another $400 disappears. The final hypothetical result becomes a $1,200 net loss. The trader was right seven times out of ten and still lost money.</p><p>CME Group’s trading education distinguishes this mathematical expectancy model from an accuracy-based approach.¹ Winning frequency must be evaluated alongside the magnitude of wins and losses.</p><h4>The Break-Even Win Rate</h4><p>For this example, the win rate required to break even after costs is:</p><p>($120 + $4) ÷ ($40 + $120) = 77.5%</p><p>The strategy needs to win approximately 78 of every 100 trades just to produce a small positive result under these assumptions. That is a demanding threshold.</p><p>Now consider a different hypothetical strategy with a 40% win rate, $150 average winners, $80 average losers, and the same $4 cost per trade. Its expected net result is:</p><p>(40% × $150) − (60% × $80) − $4 = +$8 per trade.</p><p>It loses more often than it wins but has positive modeled expectancy. Neither example proves future profitability. Both simply demonstrate why the payoff structure matters.</p><h4>The Caveat</h4><p>Win rate is useful for understanding strategy behavior, but it should never stand alone.</p><p>I would want to see average win, average loss, net expectancy, actual execution costs, drawdown, and the number of observations behind the results.</p><p>Even positive historical expectancy can be unreliable when the sample is small or market conditions change. A higher win rate may feel more comfortable, but comfort is not the objective.</p><h4>Closing Thought</h4><p>Trading rewards the size and distribution of outcomes, not the satisfaction of being right.</p><p>A strategy can lose frequently and remain profitable. Another can win frequently and slowly destroy capital.</p><p>The question is not how often we win, but what remains after the winners and losers are counted together.</p><p>Reader question: Would you prefer a 70% win-rate strategy that loses money or a 40% win-rate strategy with verified positive net expectancy?</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— PteridoTrader</p><p>Source</p><p>¹ CME Group, The Mathematics of Trading Success. Explains trading expectancy and the difference between winning accuracy and financial outcomes.</p><p><em>For educational purposes only; not financial or investment advice. Numerical examples are hypothetical and do not represent actual trading results. Futures and leveraged trading carry substantial risk of loss</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4f71c986f37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Winning Changes Your Risk Budget]]></title>
            <link>https://medium.com/@pterido/when-winning-changes-your-risk-budget-5bd7d7cdd604?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bd7d7cdd604</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[automated-trading]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 09:04:12 GMT</pubDate>
            <atom:updated>2026-11-05T09:04:12.422Z</atom:updated>
            <content:encoded><![CDATA[<h4>If a winning streak makes us more confident, when does that confidence become permission to take risks we never planned?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*1hLz2EOLgdZAT64Btc6yhg@2x.jpeg" /></figure><p>Losing trades get most of the attention when we talk about trading psychology. We discuss revenge trading, hesitation, fear, and the temptation to recover losses. We write rules to stop ourselves from making emotional decisions when things go wrong. But I have been thinking about another side of the problem. What happens when things go right?</p><p>A winning streak feels like confirmation. The strategy appears to be working. The market seems more predictable. Decisions become easier, and the hesitation that once slowed us down begins to disappear.</p><p>That sounds like progress. Yet somewhere between the third profitable session and the decision to increase position size, confidence can quietly become something else. We begin treating recent profits as evidence that we deserve a larger risk budget.</p><p>And sometimes, we make that decision without realizing we have changed the rules.</p><h4>The House Money Effect</h4><p>In 1990, Richard Thaler and Eric Johnson examined how previous gains and losses influence subsequent risky decisions. Their research identified what became known as the house money effect: after experiencing gains, people may become more willing to accept risk.¹</p><p>The underlying idea is familiar. Money recently won can feel different from money originally deposited, even though both have exactly the same purchasing power.</p><p>A trader who would hesitate to risk $300 from the original account balance might feel comfortable risking that amount after making $1,000. The reasoning sounds harmless: I am only risking some of what I made.</p><p>But the market does not distinguish between original capital and recent profits. Once earned, the money is part of the account’s equity. The next loss is real regardless of where the funds came from.</p><p>The important qualification is that the house money effect is a behavioral tendency, not a universal law. Prior gains do not make every person more aggressive in every situation.</p><p>Still, it gives us a useful question to examine in our own trading: Would I accept this exact risk if I had not just experienced a winning streak?</p><h4>When Success Becomes Evidence of Skill</h4><p>Winning can also change what we believe about ourselves. Simon Gervais and Terrance Odean developed a theoretical model showing how traders can become overconfident when they attribute too much of their success to personal ability.² This distinction matters because trading outcomes contain both skill and randomness.</p><p>A profitable week might reflect a genuine strategy advantage. It might also reflect a favorable market regime, unusually clean price movements, or simply a small sample of outcomes. Often, it is some combination.</p><p>Consider a strategy that wins six of its last eight trades. That is a 75% realized win rate over eight observations. But eight trades are not enough to establish that the strategy’s underlying probability of success has permanently improved.</p><p>Increasing position size solely because of those eight outcomes is not the same as responding to statistically convincing evidence.</p><p>The risk is that we confuse two statements: My strategy has recently performed well. And: My strategy is now better than it was before.</p><p>The first describes an observation. The second makes a claim that requires evidence. They are not interchangeable.</p><h4>The Risk Budget Nobody Officially Changed</h4><p>Imagine a hypothetical futures trader with a $20,000 account. The documented trading plan permits a maximum loss of $100 per trade, equivalent to 0.5% of the starting account equity.</p><p>After several successful sessions, the account reaches $21,000. The trader feels more comfortable and increases the planned loss to $200. Position risk has doubled. Yet account equity has increased by only 5%.</p><p>The new $200 risk represents approximately 0.95% of current equity — not merely the original 0.5% adjusted for growth.</p><p>Nothing about the underlying trading signal necessarily changed. The trader simply became more willing to lose money.</p><p>This is different from a predefined compounding rule. If the strategy specifies a constant 0.5% risk of current equity, the permitted risk at $21,000 would increase mechanically to $105.</p><p>That adjustment is governed by a rule established before the winning streak. Doubling risk because confidence increased is a discretionary change to the system.</p><p>The distinction is not whether increasing size is always wrong. It is whether the authority to increase size came from the trading plan or from the trader’s recent emotional state.</p><h4>The Hidden Interaction Between Size and Drawdown</h4><p>A larger position does not require a lower win rate to become dangerous.</p><p>Suppose a strategy experiences four consecutive losing trades. At $100 risk per trade, the hypothetical cumulative loss is $400. At $200 risk per trade, it is $800. The trading signals, outcomes and sequence are identical. The difference comes entirely from the decision to change exposure.</p><p>For a futures prop-firm trader, the consequences can become more significant because a trailing drawdown or other account-specific loss limit may restrict the room available for subsequent trades.</p><p>An increase in account balance does not necessarily create an equivalent increase in usable risk capacity. It depends on the firm’s rules, the drawdown calculation and whether previous gains have changed the applicable threshold.</p><p>A trader can therefore be profitable over several sessions while becoming structurally more vulnerable to a perfectly ordinary losing sequence.</p><p>The danger is not necessarily that the strategy stopped working. The danger is that the trader altered how much failure the account could survive.</p><h4>When More Trading Feels Justified</h4><p>Confidence can affect not only position size but also trading frequency.</p><p>Brad Barber and Terrance Odean studied more than 66,000 brokerage households and found that the most active traders substantially underperformed the broad market in their sample.³</p><p>Their research concerned stock investors, not specifically automated futures strategies, so it should not be treated as a direct estimate of futures trading performance.</p><p>Nevertheless, it reinforces an important principle: additional activity has costs, and confidence alone does not establish that additional trades have positive expectancy.</p><p>After a winning session, it is easy to justify one more setup, a slightly weaker signal, or an extra position that would normally be rejected.</p><p>A single such decision may look insignificant. Repeated over time, those exceptions change the strategy being traded.</p><h4>Designing a Risk Budget That Does Not Follow Our Mood</h4><p>I increasingly see value in separating the trading strategy from the mechanism that grants it permission to take risk. That mechanism can be simple. A maximum loss per trade, a daily loss limit, a position-sizing formula and a documented review process.</p><p>For an automated system, risk limits should be enforced independently of the entry signal whenever practical. A trading bot might identify an opportunity, but that does not mean it should have unrestricted authority to expand exposure after recent success.</p><p>Any proposed risk increase can first be examined through questions such as:</p><ul><li>Has the strategy demonstrated improved risk-adjusted performance over a meaningful sample?</li><li>Does the evidence survive transaction costs, slippage and changes in market conditions?</li><li>Has the account’s actual loss capacity increased under its governing rules?</li><li>Would I approve the same sizing change immediately after a losing week?</li></ul><p>The final question is especially useful. If the decision only feels reasonable after profits, then confidence may be influencing the calculation more than evidence.</p><p>A formal review does not guarantee the correct sizing decision. It simply makes the decision observable, repeatable and open to challenge.</p><h4>Closing Thought</h4><p>We often describe trading discipline as the ability to withstand losses. But perhaps an equally important test is what we do after winning.</p><p>A losing streak challenges our patience. A winning streak challenges our restraint. Both can tempt us to abandon the same rules, for different reasons.</p><p>The solution is not to distrust every profitable result or refuse to increase risk forever. It is to demand that a larger risk budget earn its approval through evidence — not through the temporary confidence created by recent profits.</p><p>A good trading system should know how much it is allowed to lose, even when its operator feels almost certain it will win.</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— <em>PteridoTrader</em></p><p>Sources</p><p>¹ Thaler, Richard H., and Eric J. Johnson (1990). “Gambling with the House Money and Trying to Break Even: The Effects of Prior Outcomes on Risky Choice.” Management Science, 36(6), 643 — 660. Research paper.</p><p>² Gervais, Simon, and Terrance Odean (2001). “Learning to Be Overconfident.” The Review of Financial Studies, 14(1), 1 — 27. Research paper.</p><p>³ Barber, Brad M., and Terrance Odean (2000). “Trading Is Hazardous to Your Wealth: The Common Stock Investment Performance of Individual Investors.” The Journal of Finance, 55(2), 773 — 806. Research paper.</p><p><em>PteridoTrader documents my personal trading, software-development and learning journey. Nothing here is financial or investment advice, and past or simulated performance does not guarantee future results. Futures and leveraged trading involve substantial risk of loss. Any results discussed from practice, simulation, evaluation or funded accounts should be understood within the specific rules and limitations of those environments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bd7d7cdd604" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[01 | When Fees Turn a Winning Strategy Into a Loser]]></title>
            <link>https://medium.com/@pterido/01-when-fees-turn-a-winning-strategy-into-a-loser-cc66dc39d7d5?source=rss-db10aad56bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc66dc39d7d5</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[trading-psychology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automated-trading]]></category>
            <dc:creator><![CDATA[Pterido]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 12:34:53 GMT</pubDate>
            <atom:updated>2026-10-31T12:34:53.386Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your trading strategy can be profitable before costs and still lose money after execution. How much of an edge is actually left?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*dSMSrnp_nzrNmDvbUCLM1w@2x.jpeg" /></figure><p>A strategy can win more often than it loses, produce a positive backtest and still fail to make money in live trading. Sometimes the problem is not the trading signal. It is the cost of executing it.</p><p>In my earlier article, The Cost of One More Trade, I explored how unnecessary trading activity can undermine discipline. This time, I want to examine something more measurable: how much profit must a strategy generate per trade just to overcome its costs?</p><h4>The Edge Before Costs</h4><p>Consider a hypothetical futures strategy with the following results:</p><p>Win rate: 55%</p><p>Average winning trade: $80</p><p>Average losing trade: $90</p><p>Total trades: 100</p><p>Using the standard expectancy formula explained by CME Group,¹ the expected gross result per trade is:</p><p>(55% × $80) − (45% × $90) = $3.50</p><p>That is a positive expectancy. Over 100 trades, the strategy generates a hypothetical gross profit of $350. But that is before commissions, exchange fees and slippage.</p><h4>When the Edge Disappears</h4><p>Now assume each completed trade incurs $2 in round-trip commissions and fees, plus $3 in estimated round-trip slippage.</p><p>Total execution cost: $5 per trade. The original $3.50 gross expectancy becomes:</p><p>$3.50 − $5.00 = −$1.50 per trade</p><p>Over the same 100 trades, the hypothetical $350 gross profit becomes a $150 net loss.</p><p>Nothing changed about the strategy’s win rate or gross average winning and losing trades. Only the execution costs were included.</p><p>CME Group identifies commissions and market impact as components of transaction costs, while the CFTC emphasizes that fees reduce trading returns.² ³</p><p>The numbers above are illustrative, not actual broker charges or my Bot performance.</p><h4>The Break-Even Threshold</h4><p>Here is the part I find most useful. With an $80 average gross win, a $90 average gross loss and $5 in average costs per completed trade, the break-even win rate is:</p><p>($90 + $5) ÷ ($80 + $90) = 55.88%</p><p>Without costs, the required win rate is approximately 52.94%. That difference of nearly three percentage points can determine whether a strategy survives.</p><p>And slippage is not necessarily constant. During volatile periods, the realized cost of execution may be higher than the estimate used in a backtest.</p><p>A strategy with only a small positive expectancy has little room for such uncertainty.</p><h4>The Caveat</h4><p>Before increasing trading frequency, optimizing entries or celebrating a promising backtest, I think there is a simpler question worth answering:</p><p>What is the strategy’s net expectancy after actual execution costs?</p><p>For systematic trading, that means reconciling broker charges, measuring realistic slippage and checking whether profitability survives less favorable execution assumptions.</p><p>A positive backtest is a starting point, not proof of a durable edge.</p><h4>Closing Thought</h4><p>A trading strategy does not need to be wrong about market direction to lose money. It only needs an edge smaller than the cost of participating.</p><p>Perhaps the first number worth optimizing is not the win rate, but the profit that remains after every trade has paid its way.</p><p>Reader question: Have you ever tested how much additional slippage your strategy can absorb before its expectancy turns negative?</p><p>Learning. Trading. Automating. Becoming Free.</p><p>— <em>PteridoTrader</em></p><p>Sources</p><p>¹ CME Group, The Mathematics of Trading Success. Explains mathematical expectancy through winning frequency and average win/loss size.</p><p>² CME Group, The Big Picture for the Active Individual Trader. Discusses futures transaction costs, including commissions and market impact.</p><p>³ U.S. Commodity Futures Trading Commission, Understand Your Contractual Obligations. Explains futures-account obligations and the effect of fees on returns.</p><p><em>For educational purposes only; not financial or investment advice. Numerical examples are hypothetical and do not represent actual trading results. Futures and leveraged trading carry substantial risk of loss.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc66dc39d7d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>