Exp - Swing Pendulum or Swing Algorithm

Exp - Swing Pendulum or Swing Algorithm

21 June 2019, 12:58
Vladislav Andruschenko
0
4 811
🔄 Exp Swing for MetaTrader 4 & Exp5 Swing PRO for MetaTrader 5

Automatic Pendulum / Swing Expert Advisor based on two opposite pending orders, OCO logic and configurable lot increase after activation.

Swing is designed for traders who want to automate the classic pendulum strategy: Buy Stop and Sell Stop orders, opposite order replacement, basket management and take-profit based series closure.



💎 Exp Swing MT4 💎 Exp5 Swing PRO MT5
⬇ Download Demo / File 📘 Full Instruction
▶ Watch Video 🛒 All Expforex Products


🏠 Main 🎓 Documentation ⚙ Settings
❓ FAQ ⭐ Reviews 💬 Comments


🎬 Watch How the Swing / Pendulum Strategy Works

The video demonstrates the idea of placing two opposite pending orders and replacing the opposite order after activation until the series is closed by take profit.


🚀 What is Exp Swing?

Exp Swing is an automatic Expert Advisor based on the well-known Swing / Pendulum / Cheburashka strategy model. The main idea is the sequential opening of opposite pending orders with a configurable lot increase.

The Expert Advisor places two opposite pending orders: Buy Stop and Sell Stop. When one of the orders is activated, the opposite pending order is deleted and placed again with a new lot according to the configured multiplier or fixed lot logic.

This creates a pendulum-style trading sequence. The EA continues managing the order series until the basket is closed by the configured Take Profit or until your protection settings stop the sequence.

🔄 Pendulum Logic

Two opposite pending orders are placed around the current price.

⚖ OCO Principle

When one order is triggered, the opposite pending order is deleted and replaced.

📈 Lot Increase

The next opposite order can be opened with an increased lot using Martin or fixed lot settings.

🎯 Basket Closure

The sequence continues until the basket reaches the configured Take Profit or closing condition.


⚠ Important: Swing / Pendulum logic can be aggressive because it may increase the lot after losing movement. The higher the Martin value and the more order steps you allow, the higher the deposit load and risk.


⭐ Why Traders Use Swing

  • Automates the classic Pendulum strategy with opposite pending orders
  • Uses Buy Stop and Sell Stop orders around the current price or selected High/Low levels
  • Applies OCO-style logic: one order triggers, the opposite order is replaced
  • Supports lot increase through Martin or fixed lot sequences
  • Provides three TypeofTrade modes: AutoTrade, ManualTrade and TFTrade
  • Can work after manual opening when the trader starts the sequence from EAPADPRO
  • Can calculate High/Low levels using selected timeframe and number of bars
  • Includes trading time filters, spread filters and trailing options
  • Can be tested and optimized in the MetaTrader Strategy Tester
  • Now available for both MT4 and MT5, including Exp5 Swing PRO for MetaTrader 5


⚙ Core Swing Logic

At startup, the Expert Advisor can place two pending orders at a distance from the current price. If the Buy Stop is activated, the Sell Stop is deleted and placed again. If the Sell Stop is activated, the Buy Stop is deleted and placed again.

To achieve the classic Swing effect, the distance between pending orders and Stop Loss logic must be configured carefully. In the original strategy model, StopOrderDeltaifUSE and StopLoss should be aligned correctly so the pendulum sequence works as expected.

Step What Happens
1 The EA places Buy Stop and Sell Stop orders at the configured distance.
2 One of the pending orders is activated by market movement.
3 The opposite pending order is deleted and placed again with recalculated lot.
4 The EA continues the sequence while the basket is not closed.
5 When Take Profit or closing condition is reached, the series is closed and the EA can start again.


🧩 Three Trading Modes

Swing includes three main modes for opening and managing pending orders. These modes change how the initial pending orders are created and how the sequence begins.

Mode Main Idea Best Use
AutoTrade EA automatically places two opposite pending orders after installation. For fully automatic pendulum sequence testing.
ManualTrade EA waits for a manual position and then manages the opposite pending order. For traders who want to start the sequence manually.
TFTrade EA calculates High/Low levels using selected timeframe and bar count. For traders who want pending orders based on previous market range.


🤖 AutoTrade Mode

In AutoTrade mode, the Expert Advisor starts working immediately after installation. It places Buy Stop and Sell Stop orders at the configured distance from the current price.

If one pending order is activated, the opposite pending order is replaced with a recalculated lot. The sequence continues until the basket reaches the configured Take Profit or another closing condition.

AutoTrade Scheme

Exp Swing AutoTrade mode scheme

AutoTrade places opposite pending orders automatically after attaching the EA to the chart.

AutoTrade Result Example

Exp Swing AutoTrade result example

The result example shows how the pendulum sequence can develop during market movement.


🖱 ManualTrade Mode

In ManualTrade mode, the EA waits until the trader opens a position manually. After the manual position appears, Swing places the opposite pending order and starts managing the sequence.

This mode is useful when the trader wants to decide the first entry manually, but wants the Expert Advisor to manage the opposite order and the pendulum logic after that.

ManualTrade Scheme

Exp Swing ManualTrade mode scheme

ManualTrade starts after the trader opens the first position manually.

ManualTrade Result Example

Exp Swing ManualTrade result example

The EA manages the opposite pending order after the first manual trade.


📐 TFTrade Mode — High / Low Levels

In TFTrade mode, the Expert Advisor calculates High and Low levels using the selected timeframe and number of bars. The distance for pending orders is based on the previous market range.

This mode is useful when you want the pendulum sequence to use recent market structure instead of only a fixed distance from the current price.

Setting Meaning
TFTrade_PERIOD Timeframe used to determine High and Low levels.
TFTrade_Num Number of bars used to calculate the High/Low range.


TFTrade Scheme

Exp Swing TFTrade mode scheme

TFTrade calculates levels based on selected High and Low range.

TFTrade Result Example

Exp Swing TFTrade result example

The example shows a sequence created using High / Low logic.


⚙ Main Settings You Should Understand

Swing includes many parameters because it can work in several modes and manage a full pending-order sequence. The full documentation is available on the product page. Below are the most important settings.

Setting Why it matters
TypeofTrade Selects the main mode: AutoTrade, ManualTrade or TFTrade.
StopOrderDeltaifUSE Distance for placing pending orders from the current price or calculated level.
MaxOrders Maximum number of steps / knees in the pendulum order series.
Magic Magic number used to identify positions and pending orders opened by Swing.
StopLoss Stop Loss value. For classic swing effect, it should be configured together with pending order distance.
TakeProfit Take Profit value. If TakeProfit = -1, it can use StopOrdersDistance logic.
DeleteOppositeOrder Deletes the opposite pending order after one order is triggered.
CloseOppositePositionsAfterTP Can close opposite orders or positions after current position closes by Take Profit.
Lots Fixed starting lot for the first trade.
Martin Martingale multiplier for the next order after losing movement. Powerful but dangerous if used aggressively.
LotFix Fixed lot sequence separated by commas, for example 0.1,0.2,0.3,0.6.
MartinFix Custom multiplier sequence separated by commas.
MaxSpreadToNotTrade / MinSpreadToNotTrade Spread filters that control whether the EA can open the grid.
TrailingStopUSE Enables trailing stop logic.
TradebyVolatility Allows the EA to consider volatility when opening the initial order grid.


📘 Want the full parameter list? Open the complete Swing Settings documentation before using advanced Pendulum / Martingale scenarios.


🧪 Optimization Tips

The Swing algorithm is mathematical and depends strongly on distance, number of steps and lot multiplier. It is possible to optimize many parameters, but in practice the most important ones are the distance, MaxOrders and Martin.

Parameter Optimization Meaning
StopOrdersDistance / StopOrderDeltaifUSE Main distance between pending orders. Should be selected individually for each symbol and timeframe.
MaxOrders Limits how many steps can be opened in one sequence. This protects the deposit from unlimited growth.
Martin Controls lot increase. Values above 1 increase risk quickly.
TFTrade_PERIOD / TFTrade_Num Important for TFTrade mode because they define the High/Low range used by the strategy.


⚠ Martingale warning: If Martin is more than 1, each next position can become larger than the previous one. The higher the Martin value, the more dangerous the trading sequence becomes. Always calculate the deposit load before live trading.


📊 Examples of Work

The original documentation includes practical visual examples of how Swing can behave during real chart movement. I keep these images because they help users understand the Pendulum logic better than text alone.

Example 1 — Swing Sequence on Chart

Exp Swing work example on chart

Example 2 — Pendulum Strategy Result

Exp Swing pendulum strategy result example


✅ When Swing Can Be Useful

  • You want to automate a Pendulum / Swing strategy with opposite pending orders.
  • You want the EA to replace the opposite pending order after activation.
  • You want to test OCO-style pending order behavior in MetaTrader.
  • You want AutoTrade mode for automatic sequence start.
  • You want ManualTrade mode to start the first entry yourself.
  • You want TFTrade mode based on High / Low levels.
  • You understand the risk of lot increase and want configurable limits.
  • You want the same strategy direction now available for both MT4 and MT5.


⚠ When You Must Be Careful

  • Swing / Pendulum logic can open a sequence of positions.
  • Martin / Martingale lot increase can quickly increase deposit load.
  • Too small pending order distance can cause frequent activations.
  • Too high MaxOrders can increase risk during strong directional movement.
  • Spread widening and slippage can affect the result.
  • Always test the EA in the Strategy Tester and on demo before real trading.
  • For MT5, make sure your account type and broker conditions support the required trading logic.


🌐 Broker, Account and VPS Recommendations

Swing uses pending orders, order deletion, order replacement, lot increase and basket management. Broker conditions matter.

✅ Recommended

  • Broker with stable pending order execution
  • Reasonable spread and stop levels
  • Sufficient margin for the whole sequence
  • Careful testing of MaxOrders and Martin
  • Reliable VPS for continuous monitoring
  • Demo and Strategy Tester validation before real use

⚠ Check Carefully

  • Minimum stop distance
  • Freeze levels and order modification rules
  • Spread widening during news
  • Slippage during volatile movement
  • Margin requirements for increased lots
  • Account type compatibility, especially for MT5


🛠 How to Install Swing

Installation is standard for MQL5 Market products. The key part is to choose the correct version for your terminal and configure the strategy mode carefully.

Step Action
1 Open MetaTrader 4 or MetaTrader 5 and log in to your MQL5 account.
2 Install Exp Swing for MT4 or Exp5 Swing PRO for MT5 from the MQL5 Market.
3 Open the chart of the symbol you want to test.
4 Attach Swing to the chart from Navigator → Expert Advisors.
5 Enable Algo Trading / Auto Trading in the terminal.
6 Allow automated trading in the EA settings window.
7 Select TypeofTrade: AutoTrade, ManualTrade or TFTrade.
8 Configure StopOrderDeltaifUSE, StopLoss, TakeProfit, MaxOrders, Lots and Martin.
9 Test the settings in the Strategy Tester and then on demo account.
10 Monitor pending orders, activated positions, lot growth, margin and basket closure.


🔗 Useful Links

🔹 How to Buy and Install a Market Advisor

🔹 Download / Full Swing Guide

🔹 Read Full Documentation

🔹 Open Settings Section

🔹 Read FAQ

🔹 Recommended Brokers


🆚 Swing vs Manual Pending Order Management

Manual pending order management is possible, but it becomes difficult when the trader must constantly delete, replace and recalculate opposite orders. Swing automates this process according to predefined rules.

Manual Pending Orders Exp Swing
Trader manually places Buy Stop and Sell Stop EA places and manages opposite pending orders automatically
Opposite order must be deleted manually EA can delete and replace the opposite order after activation
Lot increase must be calculated manually EA can use Martin, LotFix or MartinFix logic
Hard to maintain during fast movement EA follows the configured sequence automatically
Easy to make mistakes under pressure Rules are configured in advance and executed mechanically


📌 Practical Recommendations Before You Start

  • Start with the Strategy Tester and demo account.
  • Do not use aggressive Martin values without calculating deposit load.
  • Use MaxOrders to limit the maximum number of order steps.
  • Test StopOrderDeltaifUSE separately for each symbol and timeframe.
  • Check spread and stop levels before using pending orders.
  • Use ManualTrade if you want to control the first entry yourself.
  • Use AutoTrade only after understanding the full sequence logic.
  • Use TFTrade when you want High / Low levels to define the structure.
  • For MT5 version, make sure you use the correct product: Exp5 Swing PRO for MT5.
  • Read the full settings documentation before enabling aggressive scenarios.


⚠ Risk Warning

Trading Forex and CFDs involves risk. Swing / Pendulum strategies can use increased lots and a sequence of pending orders. No Expert Advisor can guarantee profit. Incorrect distance, MaxOrders, Martin, StopLoss, spread filters or account size can lead to significant drawdown. Always test your settings before real trading.


🏁 Final Thoughts

Exp Swing is created for traders who want to automate the Pendulum / Swing model with two opposite pending orders and OCO-style replacement logic.

The product is especially interesting for traders who understand pending orders, basket logic, lot increase and the need for strict risk control. With the new MT5 version, the strategy is now available not only for MetaTrader 4 but also for MetaTrader 5 users.

If you test the distance, limit the number of steps, control Martin, check broker stop levels and manage risk correctly, Swing can become a structured tool for testing and using Pendulum-style trading logic.

🚀 Start with Swing Today

Watch the video, download the product, read the full instruction, test AutoTrade, ManualTrade and TFTrade modes, and decide whether the Swing / Pendulum model fits your trading workflow.

▶ Watch Video ⬇ Download / Full Guide
📘 Read Documentation ⚙ Open Settings
💎 Buy Exp5 Swing PRO MT5 💎 Download Exp Swing MT4



SEO Tags

Exp Swing, Exp5 Swing PRO for MT5, Swing Expert Advisor, Pendulum strategy, Cheburashka strategy, MetaTrader Swing EA, MT4 Swing robot, MT5 Swing robot, OCO orders, One Cancels Other, Buy Stop Sell Stop strategy, opposite pending orders, pending order Expert Advisor, Swing trading robot, Forex pendulum strategy, Martingale pending orders, Martin, MaxOrders, StopOrderDeltaifUSE, TypeofTrade, AutoTrade, ManualTrade, TFTrade, High Low pending orders, Forex Expert Advisor, MQL5 Market Expert Advisor, Expforex Swing