What Is a Trading Strategy?
A trading strategy is not an indicator or an entry signal. It is a complete set of rules for entering, managing, and exiting positions under defined conditions.
Most traders begin with an entry idea.
Buy when two moving averages cross. Sell when price reaches a new low. Enter when the RSI becomes oversold. Trade when the market breaks out of a range.
These can all be useful ideas, but none of them is a complete trading strategy.
An entry signal answers only one question:
When might I open a position?
A trading strategy must answer several more:
What will I trade?
On which timeframe?
How much will I buy or sell?
When will I exit?
How much am I willing to lose?
What happens when several signals occur together?
How will commissions, spread, and slippage affect the result?
Under which conditions should the strategy remain inactive?
Until these questions have explicit answers, there is nothing that can be tested consistently.
There is only an idea.
A strategy is a decision-making system
A trading strategy is a set of rules that converts market information into trading decisions.
Those decisions normally include:
Whether to enter
Whether to remain in a position
Whether to reduce or increase exposure
When to exit
How much capital to risk
The rules do not have to be complicated.
A strategy may be based on one moving average, a price breakout, a volatility measurement, or the relationship between two markets. Complexity does not automatically make a system more effective.
What matters is that the rules are sufficiently clear that two people applying them to the same data would reach the same decision.
Consider this instruction:
Buy when the market looks strong.
It may sound reasonable, but it is not testable. Different traders will interpret “strong” differently.
Now consider this rule:
Enter long when today’s closing price is higher than the highest closing price of the previous 20 completed bars.
This rule is explicit.
It can be coded, tested, repeated, and challenged.
That is the beginning of a systematic strategy.
Strategy, setup, indicator, and system
These terms are often used as though they mean the same thing, but they describe different things.
Indicator
An indicator transforms market data into another value.
A moving average, Average True Range, RSI, and MACD are indicators. They describe some aspect of price, momentum, or volatility.
An indicator does not automatically tell you what action to take.
Setup
A setup describes a market condition that may be interesting.
Examples include:
Price trading above a long-term moving average
Volatility falling to a six-month low
A market reaching a new 50-day high
A fast moving average crossing above a slow moving average
A setup helps identify a possible opportunity, but it may not define the complete trade.
Entry signal
An entry signal defines the event that opens a position.
For example:
Enter long at the next bar’s open after the market closes above its previous 20-bar high.
This is more precise than a setup, but it still does not explain position size or exit logic.
Trading strategy
A strategy combines the entry rule with position sizing, risk management, exit rules, trading costs, and execution assumptions.
Trading system
The terms “strategy” and “system” are often used interchangeably.
A broader trading system may also include:
A portfolio of several strategies
Market-selection rules
Capital allocation
Operational controls
Broker and execution procedures
Monitoring and review processes
In AlgoSolo, a strategy means the complete rules required to test and execute one defined trading approach.
The components of a complete trading strategy
A well-defined strategy should contain at least the following components.
1. Market universe
The strategy must define which instruments it is allowed to trade.
Examples:
Stocks in the S&P 500
Major currency pairs
Liquid cryptocurrency markets
Equity-index futures
Gold and crude-oil futures
One specific instrument, such as Bitcoin or the S&P 500
A result obtained on one market should not automatically be assumed to work on another.
Different instruments have different:
Trading hours
Volatility patterns
Liquidity
Contract specifications
Transaction costs
Long-term behaviour
The chosen market universe is therefore part of the strategy.
2. Timeframe
The same rule may produce very different results on a five-minute chart and a daily chart.
A strategy should identify:
The chart timeframe
The decision frequency
Whether signals are evaluated during the bar or after it closes
The trading session used
The timezone used for session-based rules
For example:
Evaluate the strategy once per day after the official market close.
This is substantially different from recalculating the strategy after every price change.
3. Setup and market filter
A market filter determines when the strategy is permitted to trade.
A long-only strategy might require price to be above its 200-day moving average. A mean-reversion strategy might trade only when volatility is below a certain level. A futures strategy might avoid entering shortly before the contract expires.
Filters may improve a strategy, but they also create additional parameters. Every extra condition should have a defensible purpose.
4. Entry rule
The entry rule should specify:
Long, short, or both
The exact signal condition
When the condition is evaluated
The type of order used
The assumed execution price
Compare these two descriptions:
Buy after a breakout.
and:
After the daily bar closes, enter long at the next bar’s open when the closing price is above the highest closing price of the previous 20 completed bars.
The second rule can be tested without interpretation.
5. Position size
A strategy must determine how much to trade.
Possible methods include:
A fixed number of shares or contracts
A fixed amount of capital
A percentage of account equity
A fixed percentage of equity at risk
Volatility-adjusted sizing
Equal allocation across markets
Position sizing can change the character of a strategy even when the entry and exit rules remain unchanged.
A strategy that risks 0.5% of account equity per trade is not equivalent to the same strategy risking 5%.
The signals may be identical, but the drawdowns and probability of ruin are not.
6. Exit rule
A strategy is incomplete without an exit.
Common exit methods include:
Stop-loss exits
Profit targets
Trailing stops
Moving-average exits
Opposite signals
Time-based exits
Volatility-based exits
Closing the position after a fixed number of bars
The exit rule often has as much influence on performance as the entry rule.
A trend-following entry combined with a tight profit target may prevent the strategy from capturing long trends. A mean-reversion strategy without a protective exit may remain exposed while a temporary deviation turns into a lasting market move.
The entry and exit must be designed as parts of the same system.
7. Risk controls
Position sizing controls risk at the trade level, but a complete strategy may also need broader limits.
Examples include:
Maximum number of simultaneous positions
Maximum exposure to one market
Maximum sector exposure
Maximum daily loss
Maximum portfolio leverage
Rules for correlated positions
Suspension after a specified drawdown
These controls are especially important when the same strategy trades several instruments.
Ten positions do not necessarily represent ten independent risks. They may all respond to the same underlying market event.
8. Trading costs
Backtests that ignore trading costs can create an unrealistic impression of profitability.
Relevant costs may include:
Broker commissions
Exchange fees
Bid-ask spread
Slippage
Borrowing costs for short positions
Financing or funding costs
Market-data costs
Contract rollover costs
The impact depends on the strategy.
A long-term system making ten trades per year may be relatively insensitive to small commissions. A short-term strategy making hundreds of trades may become unprofitable after realistic costs are included.
Costs should be treated as part of the strategy, not added as an afterthought.
9. Execution assumptions
A backtest must make assumptions about how orders are filled.
Suppose a daily strategy produces a signal using the closing price. It cannot normally assume that the trade was also executed at that same closing price unless an appropriate order was actually available before the close.
A more conservative rule may be:
Calculate the signal after the bar closes and execute at the next bar’s open.
Other execution questions include:
Can a limit order remain unfilled?
What happens when price gaps beyond a stop?
Are several orders allowed on the same bar?
Is the strategy allowed to reverse immediately?
Are partial fills possible?
Is sufficient volume available?
These details can materially change a result.
10. Evaluation criteria
A strategy should be judged using more than net profit.
Useful measurements include:
Total return
Annualized return
Number of trades
Win rate
Average winning trade
Average losing trade
Payoff ratio
Profit factor
Maximum drawdown
Recovery time
Exposure
Sharpe ratio
Performance after costs
No single number tells the complete story.
A high win rate can conceal rare but very large losses. A high total return may have required unacceptable leverage. An attractive Sharpe ratio may be based on too few trades to provide meaningful evidence.
The objective is not to find one flattering statistic. It is to understand how the strategy produces returns and what risks it takes while doing so.
An example of a complete strategy
Consider a simple long-only breakout strategy.
This example is deliberately basic. It is not a recommendation to trade.
Market
A liquid instrument with reliable daily price data.
Timeframe
Daily bars.
Evaluation
Signals are calculated after each daily bar has closed.
Market filter
The closing price must be above its 200-day simple moving average.
Entry
Enter long at the next bar’s open when the current closing price is higher than the highest closing price of the previous 20 completed bars.
Position size
Risk no more than 1% of current account equity based on the distance between the entry price and initial stop.
Initial stop
Place the initial stop two Average True Ranges below the entry price.
Exit
Exit at the next bar’s open when the closing price falls below the lowest closing price of the previous 10 completed bars.
Costs
Include commission and an estimated amount of slippage for every entry and exit.
Maximum exposure
Only one position may be open in the instrument at a time.
This description is still not perfect. For example, it should specify the ATR period, how position size is rounded, and what happens when price gaps beyond the stop.
But it is already much closer to a strategy than the statement:
Buy 20-day breakouts.
Why explicit rules matter
Clear rules make a strategy easier to improve.
When the result is disappointing, you can identify the component responsible:
Does the entry occur too late?
Does the exit cut profitable trades too quickly?
Is the stop too close for the market’s normal volatility?
Are costs consuming the expected return?
Is the strategy active during unsuitable market regimes?
Is position sizing creating excessive drawdowns?
Without explicit rules, changes tend to become emotional and inconsistent.
One losing trade leads to a wider stop. A missed trend leads to an earlier entry. A drawdown leads to adding another indicator. Soon the original strategy has been replaced by a collection of reactions.
Systematic research requires changing one defined assumption at a time and measuring the effect.
A strategy is not validated by one profitable backtest
Turning an idea into rules makes it testable. It does not prove that the strategy works.
A profitable historical result may be caused by:
Random chance
Overfitting
Selection of a favourable market
Selection of a favourable period
Unrealistic execution
Missing trading costs
Lookahead bias
Survivorship bias
A market regime that may not return
The purpose of a backtest is not to manufacture the best possible result.
It is to challenge the strategy.
A useful research process asks:
Does the idea remain reasonable when the assumptions become less favourable?
That may involve testing:
Different markets
Different periods
Nearby parameter values
Higher trading costs
Delayed execution
Out-of-sample data
Different volatility regimes
A robust strategy does not need to produce identical results everywhere. But its performance should not depend entirely on one perfect combination of settings.
Before testing a strategy, write it down
A practical habit is to write the complete strategy before running the backtest.
Use this checklist:
Market
What instruments may be traded?
Timeframe
When are decisions made?
Setup
What conditions must exist before an entry is permitted?
Entry
What exact event opens the position?
Position size
How much capital is allocated or placed at risk?
Exit
What exact event closes the position?
Costs
What commission, spread, and slippage assumptions are included?
Risk limits
What prevents one trade or group of trades from becoming excessively large?
Evaluation
Which measurements will determine whether the test is promising?
Writing these rules first reduces the temptation to repeatedly change the strategy until the historical result looks attractive.
The core principle
A trading strategy is not defined by how sophisticated it sounds.
It is defined by how clearly it makes decisions.
A useful strategy should allow you to explain:
What am I trading, why am I entering, how much am I risking, when will I exit, and under what conditions might the idea fail?
When those questions have precise answers, the strategy can be coded and tested.
That is where systematic trading begins.
Next in Strategy
From Trading Idea to Testable Rules
The next article will show how to take a general observation about market behaviour and convert it into rules that can be researched without ambiguity.
Subscribe to AlgoSolo for practical strategy research, realistic backtesting, and Pine Script v6 tutorials.
Educational content only. Nothing in this publication is investment advice or a recommendation to trade any financial instrument.
