Botoid Gestionnaire de position SL TP
- Utilità
-
Jeremie Rene Hortion
Trader ! - Versione: 1.45
- Aggiornato: 24 novembre 2026
- Attivazioni: 20
Botoid Position Manager SL-TP A chart panel for position management: plan, SL/TP, trailing, risk budget.
In one sentence Botoid Position Manager SL-TP is a visual utility for MetaTrader 5. It draws your open positions and pending orders as readable blocks on the chart, and lets you adjust entry, Stop Loss and Take Profit with the mouse, with safety checks before every modification.
What it is for
- See your chart clearly. Each position becomes a block: a frame around the risk zone, an entry line, an SL line, a TP line, with money or R values displayed right on the levels.
- Modify levels without mental math. You drag the SL or TP line and the tool checks the broker's minimum distance, the price validity and your risk budget before sending the change.
- Prepare a trade before sending it. You build a plan (entry, SL, TP, lot), review it, then execute. Until you execute, nothing is sent to the market.
- Protect gains automatically. Two trailing tiers and a hunter mode follow the price. Tiers can be counted in R, in points, or as a percentage of the entry-to-TP distance.
- Keep a hard risk ceiling. A global budget (account and per symbol) blocks actions that would exceed your limit, and blocks positions or orders without a Stop Loss if you ask it to.
- Work in your language. Interface available in English, French, Spanish, Portuguese, German, Italian, Russian, Chinese, Japanese and Arabic.
Main features
1. One single block for the plan and the position The prepared plan and the live position use the same drawing: exact frame of the zone, straight horizontal lines, labels centred on their level. When two levels are close, the text is shortened instead of moving the label.
2. Mouse editing
- Drag the entry anchor to change the entry price.
- Drag the top or bottom edge to resize the SL or the TP.
- Drag inside the block to translate all levels together.
- Mouse wheel adjusts the block width (time window).
- Escape cancels the current adjustment.
3. Live SL and TP editing With lines unlocked, you can drag the SL or TP of an open position or a pending order. The tool applies a confirmation step, an OrderCheck , the broker's minimum distance and, if you loosen the SL, the risk budget check.
4. Two-tier trailing, with hunter mode
- Tier 1: the SL is secured (at entry or at a chosen offset).
- Tier 2: the SL follows the price at a defined distance.
- Hunter mode: tighter tracking once the trade is well advanced.
- Three ways to count: in R (initial risk), in points, or as a percentage of the entry-to-TP distance.
- The trailing only tightens the SL, it never loosens it. A minimum step and a time interval prevent modification spam.
5. Risk budget and safeguards
- Maximum risk per account and per symbol, as a percentage of equity.
- Pending orders can be included in, or excluded from, the committed-risk calculation.
- Refusal to act on a position or order without a Stop Loss, when enabled.
- Action blocked when the position already exists on a netting account.
- An unexpected SL change pauses management instead of overwriting another tool's decision.
6. Precise management scope You choose what the tool manages: its own positions (magic number), the whole account, one specific magic, or manually opened positions only. Positions from other robots can stay in observe-only mode.
7. Cooperation with another Expert Advisor A lease and heartbeat mechanism lets an external EA declare that it already owns the SL of a position. Botoid then steps back and observes, instead of fighting for the same line.
8. Panel and display comfort
- Compact order bar: BUY / SELL / lot ( 0 = automatic lot) / EXECUTE .
- Table panel listing positions, with pagination and a shortcut to each symbol's chart.
- Frame colours (buy, sell, selected position), thickness, entry / SL / TP colours, label placement (right, middle, left).
- Translucent loss and gain zones, with adjustable opacity, borders and width.
- Floating P/L and results shown in money or in R. No misleading equity percentage on the chart.
9. Memory and traceability
- State restored when the terminal restarts.
- Archives of closed positions and cancelled orders, with duration and maximum count.
- Stop Loss movement history (markers on the chart).
- CSV journal so you can review what was done, and when.
How to use it
- Attach the tool to a chart and check the panel.
- Set your risk, budget and trailing parameters.
- Prepare a plan ( BUY or SELL ) and adjust entry, SL, TP and lot.
- Review the block on the chart, then execute.
- Let the trailing follow, or edit the SL/TP by hand whenever you decide.
Important
- This tool is a management assistant, not an automated strategy: it does not open positions by itself.
- It does not guarantee execution at a given price, nor a maximum loss level in case of a gap, slippage or broker rule.
- Test it first on a demo account.
- Past performance and test results do not predict future results.
Language
- InpLanguage — enum, AUTO. Interface language: AUTO , LANG_FR , LANG_EN , LANG_ES , LANG_PT , LANG_DE , LANG_IT , LANG_RU , LANG_ZH , LANG_JA , LANG_AR . In AUTO the language follows the terminal.
Risk
- InpMagic — ulong, 15112601. Magic number of the tool. It identifies the positions and orders the tool considers its own.
- InpRiskMode — enum, RISK_EQUITY_PERCENT. Risk expressed as a fixed amount ( RISK_CASH ) or as a percentage of equity ( RISK_EQUITY_PERCENT ).
- InpRiskCash — double, 100. Amount at risk per trade when cash mode is active.
- InpRiskPercent — double, 0.5. Percentage of equity at risk per trade when percent mode is active.
- InpRR — double, 2. Risk/reward ratio used to place the default TP.
- InpInitialSLPoints — int, 500. Initial Stop Loss distance in points. Used to prefill the plan and estimate the lot size.
- InpDeviationPoints — int, 20. Maximum allowed price deviation on execution (slippage), in points.
- InpConfirmActions — bool, true. Ask for confirmation before sensitive actions (close, modify, liquidate).
- InpBlockExistingNettingPosition — bool, true. Blocks the action when a netting position already exists on the symbol (useful on netting accounts).
Execution
- InpExecConfirm — enum, 0. When to show the execution confirmation box: 0 = always, 1 = pending orders only, 2 = never (single click).
Scope
- InpObserveAllSymbols — bool, true. Monitors positions on every symbol, not only the chart symbol.
- InpManagementScope — enum, OWN_MAGIC. Managed scope: OWN_MAGIC (the tool's magic), MANUAL_ONLY (manually opened positions), MAGIC_FILTER (one specific magic), ALL_ACCOUNT (whole account, observe-only).
- InpFilterMagic — long, 0. Magic to watch when the scope is MAGIC_FILTER .
- InpAllowExternalPositions — bool, false. Allows managing positions opened by another program or by hand.
- InpAllowExternalPending — bool, false. Allows managing pending orders created elsewhere.
Account risk budget
- InpEnforceRiskBudget — bool, true. Enables the global risk ceiling. When disabled, budget checks are ignored.
- InpMaxAccountRiskPercent — double, 3. Maximum cumulative risk allowed on the account, as a percentage of equity.
- InpMaxSymbolRiskPercent — double, 1.5. Maximum risk allowed on a single symbol, as a percentage of equity.
- InpIncludePendingOrdersInRisk — bool, true. Also counts pending orders in the committed-risk calculation.
- InpBlockWhenPositionHasNoSL — bool, true. Refuses to act on a position without a Stop Loss.
- InpBlockWhenPendingHasNoSL — bool, true. Refuses to act on a pending order without a Stop Loss.
SL ownership
- InpDefaultManager — enum, MANAGER_OBSERVE. Who controls the Stop Loss: MANAGER_OBSERVE (observation only), MANAGER_BOTOID (this tool), MANAGER_EXTERNAL (an external manager).
- InpExternalPrefix — string, "BOTOID_EXT". Prefix of the objects and markers used by the external manager.
- InpLeaseSeconds — int, 120. Lease duration during which the tool is considered the owner of the SL.
- InpExternalMaxTTLSeconds — int, 300. Maximum lifetime of an external lease before it expires.
- InpPauseUnexpectedSL — bool, true. Pauses management when an unexpected SL is detected, instead of overwriting it.
- InpBreakEvenOffsetPoints — double, 0. Offset applied to break-even, in points (positive value = SL slightly beyond entry).
Trailing
- InpTrailing — enum, OBSERVE_EXTERNAL. Trailing mode: TRAIL_OFF (disabled), OBSERVE_EXTERNAL (observe the SL set by another tool), TWO_STAGE (two tiers), TWO_STAGE_HUNTER (two tiers + hunter).
- InpTrailingUnits — enum, INITIAL_R. Tier unit: POINTS or INITIAL_R (multiples of the initial risk). 1 R = risk committed at entry.
- InpAcceptObservedSLAsRReference — bool, false. Accepts an observed Stop Loss as the R reference even if the tool did not set it.
- InpStage1Trigger — double, 1. Tier 1 trigger level, in the selected unit.
- InpStage1Lock — double, 0.05. Level secured at tier 1 (fraction of the move or value in the selected unit).
- InpStage2Trigger — double, 1.5. Tier 2 trigger level.
- InpStage2Distance — double, 0.7. Tier 2 trailing distance.
- InpMinimumStepPoints — int, 10. Minimum SL move in points, to avoid unnecessary modifications.
- InpTrailIntervalMs — int, 1500. Minimum interval between two trailing updates, in milliseconds.
- InpHunterTrigger — double, 2.5. Level at which hunter mode starts.
- InpHunterDistance — double, 0.35. Hunter mode trailing distance.
- InpHunterStepPoints — double, 20. Minimum move step in hunter mode, in points.
- InpTrailPercentMode — bool, false. If true , tiers are expressed as a percentage of the entry-to-TP distance, and distances in points.
- InpPalier1Percent — double, 40. Tier 1 is reached at x % of the way to TP.
- InpPalier1LockPts — double, 0. Tier 1: SL is placed at entry + x points ( 0 = exactly at entry).
- InpPalier2Percent — double, 65. Tier 2 is reached at x % of the way to TP.
- InpPalier2DistancePts — double, 1000. Tier 2 trailing distance, in points.
- InpHunterPercent — double, 85. Hunter mode is reached at x % of the way to TP.
- InpHunterDistancePts — double, 400. Hunter mode trailing distance, in points.
- InpMaximumQuoteAgeSec — int, 15. Maximum age of a tick to be considered fresh for execution, in seconds.
Entry type
- InpEntryMode — enum, ENTRY_AUTO. Order type proposed by the plan: ENTRY_AUTO (derived from the entry price), ENTRY_MARKET , ENTRY_LIMIT , ENTRY_STOP .
Expert link
- InpLinkEnabled — bool, true. Enables heartbeat exchange with another Expert Advisor.
- InpLinkMode — enum, LINK_OBSERVE. Link behaviour: LINK_OFF , LINK_OBSERVE (observe), LINK_DEFER (give priority to the other program).
- InpLinkPrefix — string, "BOTOID_LINK". Prefix of the heartbeat keys. They include server, account, symbol hash or position identifier.
- InpManualOpen — enum, MANUAL_ALWAYS. Manual opening allowed: MANUAL_ALWAYS , MANUAL_LINK_ONLY (only when the link is active), MANUAL_NEVER .
- InpLinkColor — color, clrGold. Colour of the chart elements linked to the partner.
Panel
- InpPanelMode — enum, PANEL_BAR. Panel type: PANEL_TABLE (0, positions table), PANEL_BAR (1, compact bar), PANEL_LEGACY_HIDDEN (2, legacy hidden mode).
- InpPanelScalePercent — int, 100. Overall panel scale, in percent.
- InpPanelX — int, 12. Panel horizontal position, in pixels from the top-left corner.
- InpPanelY — int, 12. Panel vertical position, in pixels.
- InpPanelWidth — int, 980. Panel width, in pixels.
- InpBaseFontSize — int, 9. Base font size of the panel.
- InpUIFont — string, "Arial". Font used by the interface.
- InpButtonHeight — int, 25. Button height, in pixels.
- InpFieldWidth — int, 100. Input field width, in pixels.
- InpRowHeight — int, 29. Height of one list row, in pixels.
- InpShowPanelBackground — bool, true. Draws the panel background.
- InpShowPanelBorders — bool, true. Draws the panel borders.
- InpPanelBackground — color, clrDarkSlateGray. Panel background colour.
- InpPanelBorderColor — color, clrSlateGray. Panel border colour.
Plan frame & labels
- InpLatentDisplay — enum, LATENT_MONEY. Floating P/L and results shown in money ( LATENT_MONEY ) or in R ( LATENT_R ). No equity percentage is drawn on the chart.
- InpLabelPlacement — enum, LABELS_RIGHT. Label placement: LABELS_RIGHT (outside the right edge), LABELS_MIDDLE (centred on the line), LABELS_LEFT (outside the left edge). Near a chart edge, the label moves inside the frame.
- InpFrameBuyColor — color, clrDodgerBlue. Frame colour for a buy plan or position.
- InpFrameSellColor — color, clrOrange. Frame colour for a sell plan or position.
- InpFrameSelectedColor — color, clrGold. Frame colour of the selected position.
- InpFrameThickness — int, 2. Frame thickness, in pixels (1 to 5).
- InpEntryColor — color, clrDodgerBlue. Colour of the entry line and label.
- InpSLColor — color, clrTomato. Colour of the Stop Loss line and label.
- InpTPColor — color, clrLimeGreen. Colour of the Take Profit line and label (also used for a protected SL).
Trade zones
- InpShowTradeZones — bool, true. Draws the translucent loss and gain zones.
- InpLossOpacityPercent — int, 20. Loss zone opacity, in percent.
- InpGainOpacityPercent — int, 20. Gain zone opacity, in percent.
- InpShowZoneBorders — bool, true. Draws the zone borders.
- InpZoneBorderWidth — int, 1. Zone border thickness, in pixels.
- InpZoneBars — int, 25. Zone width in number of bars.
- InpLossColor — color, clrCrimson. Loss zone colour.
- InpGainColor — color, clrSeaGreen. Gain zone colour.
Lines and persistence
- InpVisualMode — enum, LIVE_LEVELS. What stays displayed: REMOVE_ON_FILL (remove after fill), INITIAL_PLAN (initial plan), LIVE_LEVELS (live levels), INITIAL_AND_LIVE (both).
- InpLineExtent — enum, LINES_FULL_WIDTH. Line length: LINES_FULL_WIDTH (full chart width) or LINES_SHORT (limited to a few bars).
- InpShortLineBars — int, 12. Number of bars used for short lines.
- InpKeepAfterClose — bool, true. Keeps a position displayed after it closes (visual archiving).
- InpKeepAfterCancel — bool, false. Keeps a pending order displayed after it is cancelled.
- InpArchiveMinutes — int, 120. Display duration of an archive, in minutes.
- InpMaximumArchives — int, 30. Maximum number of archives kept.
- InpRestoreState — bool, true. Restores the state (tracked positions, plans, archives) on restart.
- InpShowSLHistory — bool, true. Shows the Stop Loss movement history.
- InpMaxSLMarkers — int, 15. Maximum number of SL markers per position.
- InpRowsPerPage — int, 6. Number of rows per page in the positions list.
- InpCSVJournal — bool, true. Writes a CSV journal of actions and modifications.
Plan shape
- InpPlanRiskMultiple — double, 1.5. Plan SL = this value × InpInitialSLPoints .
- InpPlanRewardMultiple — double, 2.5. Plan TP = this value × InpInitialSLPoints .
- InpLineLabels — bool, true. Displays price labels on the lines.
- InpLineLabelFontSize — int, 8. Font size of the line labels.
- InpOrderWindowOnStart — bool, false. Opens the order window when the tool starts.
