BreakevenBoost
- Utilities
-
Sergey Batudayev
Hello!
My name is Sergey, I have been trading in financial markets since 2014. Since 2018, I have been developing applications and utilities that I myself use in my trading.
I have a master's degree in finance. - Version: 1.2
- Updated: 25 August 2025
- Activations: 5
BreakevenBoost automatically sets Take Profit levels for all open orders on the current symbol to the breakeven price plus a specified offset in points. Whenever a new order is opened, the utility recalculates and updates the TP for all positions based on their combined weighted entry price.
Key Features- Supports Buy and/or Sell orders
- Filters orders by a specified Magic Number
- Automatically recalculates and applies TP whenever the number of orders changes
- Logs success messages and errors to the terminal journal
Join our community and share your results, questions, and feedback on MQL5 and TG:
- MQL5 Channel
- TG Channel @AlgoTrader_Sergey
- ProfitOffsetPoints — offset from breakeven in points (default: 150)
- ConsiderBuyOrders — include Buy orders in calculations (true/false, default: true)
- ConsiderSellOrders — include Sell orders in calculations (true/false, default: true)
- MagicNumber — filter orders by Magic Number (0 = all orders on the current symbol, default: 0)
- On each tick, reads all open orders for the symbol matching the Magic Number.
- Sums total volume and entry cost separately for Buy and Sell orders.
- Calculates the weighted entry price (breakeven):
- For Buy: BE_buy = (∑lotᵢ × priceᵢ) / ∑lotᵢ
- For Sell: BE_sell = (∑lotᵢ × priceᵢ) / ∑lotᵢ
- Determines the target TP:
- For Buy: TP_buy = BE_buy + ProfitOffsetPoints × point
- For Sell: TP_sell = BE_sell − ProfitOffsetPoints × point
- For each order of the given type, checks if the current TP differs from the calculated value. If so, calls OrderModify to set the new TP.
- Logs results or error codes for each modification in the terminal journal.
- Attach BreakevenBoost to the chart of the desired symbol in MT4.
- Configure the TP offset and order filters in the input settings.
- Whenever a new order is opened, TP values are recalculated and applied automatically.
- If an order already has the target TP, it will not be modified.
- Error codes from OrderModify are displayed in the journal if modifications fail.
- Works correctly with any number of orders and volumes, always using the weighted entry price.

