Skip to content

MetaTrader 5

Scalping vs Swing Trading: Holding Periods, Costs and Execution

Scalping vs swing trading is a difference of holding period. Scalping holds positions for minutes or less and trades often; swing trading holds for several sessions to weeks and trades less often. The same trading cost is a far larger share of a scalp's small stop, so scalping rules need more from costs and execution. Swing rules pay overnight swap and carry gap risk instead.

Illustrative cover comparing scalping and swing trading, showing many short price segments beside one long price swing, with the official PineConnector logo.
Scalping and swing trading differ in holding period, and so in what costs and execution matter most. Illustrative.

This page is the holding-period comparison in PineConnector's trading strategy library. Horizon is not a strategy family: a trend, breakout or mean reversion rule can run at any of them. Nothing here says which horizon suits a reader; the page sets out what each one demands.

Scalping, day, swing and position trading at a glance

Scroll horizontally to read every column.

Horizon Typical holding period What the rule has to handle
Scalping Seconds to minutes, within one session Costs that are a large share of a small stop; spread at the moment of entry; many alerts
Day trading Minutes to hours, closed before the session ends A stated session close rule; time zones; news windows
Swing trading Several sessions to a few weeks Overnight swap; weekend gaps; stops that sit through closed markets
Position trading Weeks to months or longer Accumulated swap; broker contract and symbol changes; long flat periods

The CFTC's glossary describes a scalper as someone who "buys and sells rapidly, with small profits or losses, holding his positions for only a short time during a trading session". A day trader offsets positions within the same session, and a position trader holds "for an extended period of time".[1] Swing trading sits between day and position trading. The boundaries are conventions, so write your own holding rule as a measurable condition.

What is scalping?

Scalping is a trading style that takes many short trades aiming at small price moves, typically closing within minutes. The traditional exchange scalper in the CFTC definition bought at the bid and sold at the offer to capture the spread. A retail forex scalper using market orders often does the opposite: pays the spread on every round trip, which is why costs dominate the style.

An earlier PineConnector guide to scalping gave three example rules: a 20/50 moving average crossover on a 5-minute chart, an RSI divergence entry on a 1-minute chart, and a Bollinger Band touch combined with RSI below 30 or above 70. Each can be written as a rule, with two corrections. RSI divergence depends on swing points, and pivots are only confirmed several bars later; TradingView notes that scripts often plot them back on the pivot bar.[14] And a small target does not make risk per trade small. Risk per trade is set by position size and stop distance, not by the target.

What is swing trading?

Swing trading holds positions across several sessions, aiming at moves measured in days. Rules are often evaluated on 4-hour or daily bars, so there are fewer entries and each alert has hours to be delivered and processed before the next bar. The costs move elsewhere: the position pays or earns overnight financing, and it is open when the market is closed.

In MT5, overnight financing is the broker's swap. The symbol specification lists swap long and swap short, with a multiplier for each weekday. MetaQuotes' example uses a base swap of USD 1.5 with a Wednesday ratio of 3, so rolling a position from Wednesday to Thursday charges USD 4.5.[3] In that example, a long held from Monday's close to Friday's close rolls four times: 1.5 + 1.5 + 4.5 + 1.5 = USD 9.0. Your broker's values and signs will differ; read them in the specification. The swap and rollover guide covers the details, and weekend gaps at the market open covers what a swing stop can meet on Monday.

How do costs scale with trade frequency?

Express cost in R, the initial risk per trade, and the effect of horizon becomes plain. The same spread and commission are a fixed number of pips, but R grows with the stop distance. Using the house break-even formula for a target of T R and a stop of 1 R with cost c R:

Break-even win rate with costs = (1 + c) / (T + 1)

With no cost this reduces to 1 / (T + 1), the before-costs rule in PineConnector's Analytics guide.[2] Illustrative values, not a recommendation: a round-trip cost of 1 pip and a target twice the stop, T = 2, which matches the 10-pip target and 5-pip stop in the earlier scalping example.

Stop (target = 2 × stop) Cost in R (1 pip ÷ stop) Break-even win rate
5 pips, scalping 0.2R 1.2 / 3 = 40.0%
20 pips, day 0.05R 1.05 / 3 = 35.0%
100 pips, swing 0.01R 1.01 / 3 = 33.7%

Before costs, all three need 1 / 3 = 33.3%. The 1-pip cost adds 6.7 percentage points to the scalp's requirement and 0.3 points to the swing trade's, before swap. The swing row still has to add its swap, which the scalp avoids. Neither version is shown to be profitable; the example shows only how the same cost weighs on each horizon. The transaction costs guide and the break-even win rate guide go further.

Illustrative diagram showing a 1-pip cost as 0.2R on a 5-pip scalping stop, 0.05R on a 20-pip day-trading stop and 0.01R on a 100-pip swing stop, with break-even win rates of 40.0%, 35.0% and 33.7%.
Illustrative 1-pip cost and a target of twice the stop. The cost is the same in pips; its share of R is not.

Spreads also move within the day. Ito and Hashimoto's study of USD-JPY and EUR-USD quotes reports: "A negative correlation is observed between the number of deals and the width of bid-ask spread during business hours."[10] A scalping rule tested on an average spread may meet a much wider one at the hour it actually trades. The forex market sessions guide covers the clock.

What does each horizon need from execution and hosting?

Every automated horizon depends on the same chain: the alert condition, the alert trigger, webhook delivery, PineConnector processing, the EA's order request, and the broker's acceptance and fill. What changes is how much of a trade's life that chain uses up.

  • Measure delay; do not assume it. PineConnector's FAQ on latency says to measure the path you actually use, from webhook delivery to broker execution, and that hosting and broker execution can change the result.[7] A delay that is trivial for a daily swing rule can be most of a one-minute scalp.
  • Keep the terminal running. TradingView runs alerts on its servers, but in a self-hosted setup the MetaTrader terminal and PineConnector EA must stay running and connected on your computer or VPS.[8] If that is a VPS, ForexVPS (affiliate link) offers Windows VPS plans for MetaTrader. With Edge, the hosted MT5 terminal runs remotely.
  • Server location. MetaQuotes' virtual hosting help describes choosing a server close to your broker's trade server to cut network delay when sending orders.[9] Distance is one part of the chain, not all of it. To see which server location is closest to your broker, try a broker latency checker (affiliate link): pick your broker and it lists the lowest-latency location.
  • Alert limits. TradingView stops a regular alert that exceeds 15 triggers over a 3-minute window.[4] A scalping rule that fires on many ticks can reach that.
  • Spread at arrival. PineConnector's spread= parameter sets a maximum spread at arrival for entries; passing it is not a confirmed order.[11]

An older version of this page said PineConnector executes trades instantly and runs strategies around the clock. Neither is a documented property. What runs, and when, depends on the alert, the terminal, the broker's session and the rule.

Which horizon is easier to express as TradingView alerts?

Rules evaluated once per closed bar on longer timeframes map most directly to alerts. TradingView alerts trigger only on realtime bars, and the once-per-bar-close frequency fires when that bar closes.[5] A daily swing rule then sends one message per decision, with hours of slack before the next bar.

Scalping rules are harder to express. They often act inside the bar, which exposes them to intrabar repainting; they depend on the broker's spread at that second; and a backtest on chart data may not reflect real fills. A Pine strategy applies no commission unless its settings specify one, and TradingView calls slippage "dynamic and unpredictable".[6] Set both in the Strategy Tester before comparing horizons.

Verify on a demo account first. PineConnector's demo testing guide says a successful demo order verifies the tested setup, not that the strategy will be profitable.[12] Choose your own symbol, size and rules. Illustrative messages for the TradingView alert's Message field, not an instruction to trade:

LicenseID,buy,EURUSD,vol_lots=0.01,sl_pips=5,spread=1
LicenseID,buy,EURUSD,vol_lots=0.01,sl_pips=100

The first requests a 0.01-lot buy with a 5-pip stop, filtered to spreads of 1 PineConnector pip or less at arrival. The second requests the same size with a 100-pip stop. Both use the documented field order: License ID, command, symbol, parameters.[13] The same lot size carries 20 times the price risk in the second message, so size and stop have to be chosen together; the position sizing guide explains how.

What goes wrong when comparing scalping and swing trading?

  • Comparing before costs. A scalping backtest without spread, commission and slippage ranks a rule that cannot be traded as tested.
  • Counting trades as opportunity. More trades mean more costs and more samples of the same edge, or of no edge. Frequency does not add expectancy.
  • Ignoring swap. A swing test that leaves out swap can differ from the broker account by the whole financing bill, in either direction.
  • Treating automation as monitoring. Automation sends orders when alerts fire. It does not watch for a stopped terminal, a disconnected account or a rejected order unless you check.

Frequently asked questions

What is scalping in trading?

Scalping is a trading style that takes many short trades, holding each for seconds to minutes within one session, and aims at small price moves. Because the stop and target are small, spread, commission and slippage are a large share of each trade. A scalping rule has to be tested after those costs to mean anything.

What is swing trading?

Swing trading holds positions across several sessions, typically days to a few weeks, and aims at moves larger than a single session's range. Rules are often evaluated on 4-hour or daily bars. Swing positions pay or earn overnight swap in MT5 and stay open through weekends, so they are exposed to gaps at the market open.

Is scalping or swing trading more profitable?

Neither scalping nor swing trading is more profitable in general. Results depend on the rule, the market, costs and execution. Scalping pays the same costs on a much smaller stop, so a scalping rule needs a larger edge per trade to cover them. Swing trading adds swap and gap risk. Only a test after costs can compare two specific rules.

Can scalping be automated with TradingView alerts?

Scalping can be sent through TradingView alerts, but each stage from alert trigger to broker fill uses part of a very short holding period. TradingView stops a regular alert that triggers more than 15 times over a 3-minute window. Measure the actual delay and spread on a demo account before relying on a scalping rule.

Reviewed 25 September 2026. Facts were checked against the linked sources on that date. Nothing in this article was tested on a trading account and no code was compiled.

Sources

  1. CFTC – Futures Glossary: Scalper, Day Trader, Position Trader, accessed 25 September 2026.
  2. PineConnector – Analytics: win rate, reward-to-risk and expectancy, accessed 25 September 2026.
  3. MetaQuotes – MetaTrader 5 Help: Market Watch, symbol specification, accessed 25 September 2026.
  4. TradingView Help Center – Alert was triggered too often and stopped, accessed 25 September 2026.
  5. TradingView – Pine Script User Manual: Alerts, accessed 25 September 2026.
  6. TradingView – Pine Script User Manual: Strategies, accessed 25 September 2026.
  7. PineConnector – Frequently asked questions: latency, accessed 25 September 2026.
  8. PineConnector – Frequently asked questions: do I have to leave TradingView open?, accessed 25 September 2026.
  9. MetaQuotes – MetaTrader 5 Help: Virtual Hosting, accessed 25 September 2026.
  10. NBER – Intra-Day Seasonality in Activities of the Foreign Exchange Markets (Ito and Hashimoto), Working Paper 12413, accessed 25 September 2026.
  11. PineConnector – Syntax: spread=, accessed 25 September 2026.
  12. PineConnector – Demo testing: test an active setup on a broker demo account, accessed 25 September 2026.
  13. PineConnector – Syntax: message structure, accessed 25 September 2026.
  14. TradingView – Pine Script User Manual: Repainting, accessed 25 September 2026.

PineConnector executes the instructions you send it. It does not select trades, manage money, or hold funds. Trading carries risk, and past performance of any strategy does not indicate future results.

Back to PiCo Blog

Run your strategies on our managed infrastructure

Bridge routes TradingView alerts to MetaTrader. Edge hosts and runs MT5 for you.

Core Trial

Then $59/month unless you cancel.

$7for 7 days

  • 1 account connection
  • 1 hosted MT5
  • Unlimited alerts, routed by Bridge
Try Core for $7

Trusted by 66,000+ traders in 156 countries and territories · <1s typical latency

Your Edge MT5 runs in our cloud · nothing to install · built on Microsoft Azure