cTrader

AlgoWay Blog

Guides, manuals and platform references.

Core
JSON & Alerts
MT5 / Expert Advisors
Errors
Integrations
Other Publications
AlgoWay Strategy Lab

Scaling In: Average Entry Price vs Total Stop-Loss Risk

Published November 28, 2026 · View Markdown

AlgoWay trading automation

A lower average entry looks comforting. It can also accompany a larger loss at the very same stop. The average describes the price of the inventory; it does not count how much inventory you now own.

When scaling into one instrument, calculate both the quantity-weighted entry price and the cash result if the whole position exits at the planned stop. An extra entry changes both numbers. Checking only the distance from the average entry to the stop leaves half the arithmetic asleep.

For an AlgoWay workflow, treat this as a decision to make before another alert becomes an order. The stop-distance and position-sizing calculation should include the existing position and the proposed addition. The worksheet here is a planning method, not a claim that AlgoWay automatically enforces a combined scale-in risk budget.

Weight the entry by quantity

For entries in the same linear instrument, with no intervening exits, average entry equals the sum of each filled quantity multiplied by its entry price, divided by total filled quantity. Use executed prices and quantities, not requested ones.

Consider a hypothetical share position: buy 100 shares at $100, then another 50 at $94. Total cost before fees is $14,700, and total quantity is 150 shares. Average entry is $14,700 / 150 = $98. The simple midpoint of $100 and $94 is $97, but that would give the smaller purchase the same weight as the larger one.

The distinction matters whenever additions have unequal quantities. It also matters when an order fills only partly. A submitted order for 50 shares is not yet evidence that 50 shares belong in the filled-position average.

A better average can come with more stop risk

Keep a hypothetical common stop at $90 and assume every share exits exactly there. The original 100 shares would lose 100 × ($100 − $90) = $1,000. The additional 50 shares would lose 50 × ($94 − $90) = $200. Together, the planned loss is $1,200 before costs.

The average-entry method gives the same answer: 150 × ($98 − $90) = $1,200. The average fell by $2, but the loss at the stop rose by $200. Neither calculation contradicts the other.

For a long position with one common stop below all entries, use total quantity × (average entry − stop) × cash value per price unit. For a short with a stop above all entries, reverse the price subtraction. Shares in this dollar example have a value of $1 per dollar of price change per share. Futures and other contracts require their own multiplier and, where relevant, currency conversion. Nonlinear or inverse contracts need their actual profit-and-loss formula.

CME's position-sizing lesson connects stop distance, tick value and contract quantity. Apply that same cash-distance logic to each filled leg, then add the results.

Calculate room for the next entry

Suppose the illustrative maximum planned loss for this idea is $1,100. The original position already uses $1,000. With the proposed entry at $94 and the stop unchanged at $90, each additional share consumes $4 of the remaining $100 allowance. That permits at most 25 additional shares before fees and slippage allowances, not 50.

In this restricted case, additional quantity equals remaining cash allowance divided by loss per new unit at the stop, rounded down to the instrument's valid quantity increment. A nonpositive allowance leaves no room for an addition under that plan. If the proposed entry or stop changes, calculate again; yesterday's answer does not reserve today's price.

This is a loss measured from entry cost to the planned exit. It differs from the decline in current equity if price moves from the current market quote to the stop. An existing unrealized gain can make those measures quite different. State which budget you are enforcing instead of switching denominators halfway through a trade.

Moving the stop changes the trade, too

After buying the full 150 shares at an average of $98, a stop at $92 would imply a $900 gross loss if filled there. That is less than the original $1,000, but the stop has moved closer. The lower figure comes from a different exit rule, not from a free reduction in risk supplied by averaging.

A revised stop needs its own strategy justification and execution check. Do not count on a proposed modification until the trading platform confirms the protective order actually changed. If legs have different stops, calculate each leg separately; a single average and one imaginary shared stop no longer describe the exit plan.

As the SEC explains in its stop-order bulletin, a stop price is not a guaranteed fill price. A stop-limit order can remain unfilled. These examples are arithmetic scenarios, not observed trades or maximum-loss guarantees. Fees, gaps and execution slippage can increase the realized loss.

Make the automated addition use current state

Before accepting another entry, reconcile filled quantity, actual average entry, working entry orders and confirmed protection. Include pending additions in the exposure decision so two signals cannot each spend the same remaining allowance. Recalculate after partial fills, rejected modifications or cancellations.

Pine pyramiding limits answer how many entries a strategy may open; they do not replace this cash-risk calculation. Likewise, a budget for one scaled position is only part of the shared exposure across several bots.

Keep a compact decision record: filled quantity, weighted entry, proposed addition, confirmed stop, estimated costs and combined planned loss. The useful approval is not “the average improved.” It is “this complete position still fits the stated plan.”

Last updated: November 28, 2026