Part 2 of 4 of the Shepherd Pilot settings guide. The other parts are in the seller's blog.
GENERAL 08 - Orders - placed from plans A and B
These settings decide whether and how the AI's plans become orders. Orders are always pending orders, never market orders. A plan is never placed if its entry was already touched since the analysis, if the price has already left the plan, or if the stop is on the wrong side. During a strong announcement it is held, then placed afterwards if the plan still holds.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Order placement: off, on confirmation, or automatic InpTrMode | Off (display only) | Off: the Pilot shows the plans, you decide. On confirmation: a PLACE A or PLACE B button appears next to each plan. Automatic: orders go out by themselves. Default: Off: watch the Pilot on a demo account first. If you change it: Orders are always pending orders, never market orders. |
| Risk profile (Custom = the settings below as they are) InpTrProfil | Custom: the settings below, as they are | A profile replaces five settings of this group at once: volume (always as % of balance), risk per plan, plans placed, minimum R:R and maximum number of orders. Default: Custom: the settings below apply as they are. If you change it: Cautious: 0.5 % per plan, strongest plan only, R:R 1.5, at most 2 orders. Normal: 1 %, A and B, 1.0, 6. Aggressive: 2 %, A and B, 0.8, 10. |
| Plans to place InpTrPlans | Plans A and B | Plans to place: A and B, A only, B only, or the stronger of the two according to the AI. Only counts in the Custom profile. If you change it: A single plan: fewer orders, less exposure. |
| Minimum plan strength InpTrForceMin | Medium or strong | Minimum strength of a plan (STRONG, MEDIUM or WEAK, given by the AI) for it to be placed. Applies to every profile. Default: Medium or strong: a plan the AI rates WEAK is not placed. If you change it: "Strong only": fewer, more selective trades. "Any strength": more trades, including the weakest. |
| Minimum R:R on the first target (0 = none) InpTrRRMin | 1.0 | Minimum reward-to-risk ratio on the first target (Custom profile). 0 = no check. Default: 1.0: the first target pays at least what the stop costs. If you change it: Higher: fewer plans placed, each more profitable if it works. |
| Maximum age of the analysis to place (min, 0 = none) InpTrAgeMaxMin | 30 | Maximum age of the analysis for a plan to be placed. 0 = no limit. Default: 30 minutes: beyond that, the market may have changed. Exception: a plan held during an announcement is placed after it, if still valid. If you change it: Longer: plans placed on an outdated reading. |
| Maximum spread (points, 0 = none) InpTrSpreadMaxPts | 0 | Refuses to place while the bid-ask spread exceeds X points; the plan is retried later. 0 = no check. Default: 0: gold's spread varies too much between brokers for a common value. If you change it: Useful with a broker whose spread widens at the open or at night. |
| Plan A: pending order type InpTrTypeA | Automatic: limit or stop, from where the price stands | Pending order type for plan A. Automatic: limit if the price must come back to the entry, stop if it must break through it. Stop limit: waits for a break beyond the entry, then leaves a limit at the entry (break then retest). Default: Automatic: the right type for where the price stands. If you change it: Forcing a type can make it impossible; the fallback type then takes over. |
| Plan B: pending order type InpTrTypeB | Automatic: limit or stop, from where the price stands | Same for plan B. |
| Fallback type when the chosen one is impossible or refused InpTrTypeSecours | Automatic: limit or stop, from where the price stands | Type tried when the chosen type is impossible here (price on the wrong side of the entry, type refused by the broker). If you change it: "None": the plan is not placed. |
| Stop limit: trigger beyond the entry (% of the entry-stop distance) InpTrStopLimitPct | 25.0 | Stop limit only: distance of the trigger beyond the entry, as % of the entry-stop distance. Default: 25 %: a clear break without going too far. If you change it: Higher: requires a clearer break; the order triggers less often. |
| Orders per plan: one per target (1 to 3) InpTrNbCibles | 1 | Number of orders per plan, one per AI target (1 to 3). The plan's volume is split equally. Default: 1: a single order, on the first target. If you change it: 2 or 3: part exits early, the rest aims further. If a part falls below the broker's minimum lot, the EA uses fewer targets rather than more risk. |
| Volume: fixed lot or risk in % InpTrLotMode | Risk in % of the balance | Fixed lot, or volume computed to risk a percentage of the balance down to the stop (Custom profile). Default: Risk %: volume adapts to the balance and the stop distance. If you change it: Fixed lot: the money at risk varies with each plan's stop distance. |
| Fixed lot: total volume of the plan InpTrLotFixe | 0.01 | Total volume of a plan in fixed-lot mode, split between its targets. Default: 0.01: the usual smallest lot. If you change it: Never less than the broker's minimum lot. |
| Risk: % of the balance per plan InpTrRisquePct | 1.0 | Percentage of the balance lost if the stop is hit, per plan (Custom profile). Default: 1 %: a bearable loss, even over a losing streak. If you change it: If this risk is smaller than the cost of the minimum lot, the plan is NOT placed: in risk mode the EA never forces the minimum lot. |
| Pending order: lifetime before deletion (0 = never deleted) InpTrExpiration | 4 | Lifetime of an untriggered pending order; after that it is deleted. 0 = never deleted. Default: 4 hours: an analysis holds for the current session. If you change it: Longer: an order may trigger on a setup that no longer exists. |
| Pending order: unit of that lifetime InpTrExpirationUnite | Hours | Unit of the lifetime: minutes, hours, days, weeks or months (30 days). |
| New analysis: cancel the pending orders of the previous one InpTrAnnulerSiNouveau | false | A new analysis cancels the previous one's pending orders. Default: Off: older orders live until they expire. If you change it: On: only the latest analysis's plans stay in play. |
| Maximum orders and positions of the EA on this symbol InpTrMaxOrdres | 6 | Maximum number of Pilot pending orders and positions on this symbol (Custom profile). Beyond it, new plans wait. Default: 6: three analyses of two plans. If you change it: Lower: less exposure. |
| Magic number of the EA's orders InpTrMagic | 20261115 | Number that tags the Pilot's orders. The SL/TP manager, the statistics and the protections only recognise it. If you change it: Change it only if another robot already uses this number on the account. |
| Record the Pilot's closed trades in Common\Files\ShepherdPilot\stats.csv InpTrStats | true | Records each closed Pilot trade in Common\Files\ShepherdPilot\stats.csv, readable in Excel. Nothing is recorded in the tester. Default: On: you keep a record of your results. |
GENERAL 09 - Plans & levels - file and display
The file through which the AI's plans reach the chart, and how they are drawn.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Read the plans and levels written by the AI InpLvActif | true | Reads the plans-and-levels file written by the AI. Default: On: that file is how plans reach the chart. If you change it: Off, the Pilot shows no plan and places NO order. |
| Show plans A and B on the chart InpLvMontrerPlans | true | Shows plans A and B at start-up. If you change it: The panel's Plan A and Plan B buttons hide or show them afterwards. No effect on orders. |
| Show the simple levels on the chart InpLvMontrerNiveaux | true | Shows the plain levels (supports and resistances noted by the AI) at start-up. If you change it: The panel's Levels button hides them afterwards. No effect on orders. |
| File (%COMPTE% = account number, %SYMBOLE% = chart symbol) InpLvFichier | ShepherdPilot\%COMPTE%\ShepherdLevels_%SYMBOLE%.csv | Name of the plans file; %COMPTE% is replaced by the account number, %SYMBOLE% by the chart's symbol. Default: That is where the AI writes, in one folder per account: two accounts on the same PC do not mix. If you change it: Do not change it: another name would cut the Pilot off from its plans. |
| MT5 COMMON folder (otherwise MQL5\Files) InpLvDossierCommun | true | Looks for that file in MT5's common folder rather than in MQL5\Files. Default: That is where the AI writes it. If you change it: Do not change it, for the same reason. |
| Also accept ShepherdLevels.csv (converter) when it is newer InpLvFichierGenerique | true | Also accepts a ShepherdLevels.csv file produced by an outside converter, if it is more recent. Default: On, with no effect if you use no converter. |
| Refuse levels more than X % from the price (0 = no check) InpLvEcartPrixMaxPct | 25.0 | Safety check: refuses a file whose levels are more than X % away from the current price (another symbol's plan, a typing error). 0 = no check. Default: 25 %: no serious gold plan is that far from the price. If you change it: Lower: risk of refusing a legitimate plan in a very volatile market. |
| Draw the risk / reward bands InpLvBandes | true | Draws, for each plan, a red band (risk, entry to stop) and a green band (reward, entry to target). If you change it: Display only. |
| Gap between the last candle and the plans (candles) InpLvEcartPlan | 10 | Gap, in candles, between the last candle and the area where plans are drawn. If you change it: Display only. Larger: plans sit further right. |
| Width of a band (candles) InpLvLargeurBande | 5 | Width of a plan band, in candles (at least 2). If you change it: Display only. |
| Widen the chart so that the plans are visible InpLvAjusterDecalage | true | Widens the chart's right margin when needed so the plans are visible. If you change it: Off, plans may fall off screen; zoom the chart out. |
| On each new analysis, bring the chart back to the plan InpLvMontrerNouveauPlan | true | At each new analysis, brings the chart back to the plans. Default: You see the new plan straight away. If you change it: Off, the chart stays where you left it. |
| Gap between the labels and the plans area (candles) InpLvMargeDroite | 1 | Margin, in candles, between the level labels and the plans area. If you change it: Display only. |
| Maximum label length (0 = no cut) InpLvLongueurMax | 30 | Maximum length of a label; beyond it, it is cut. 0 = no cut. Default: 30 characters: readable without clutter. |
| Label text size InpLvPoliceNiveau | 9 | Text size of the level and plan labels. If you change it: Display only. |
| Show the distance to the current price InpLvAfficherEcart | true | Adds the distance to the current price to each label. Default: Handy to see at a glance how far the entry is. |
| Lines behind the candles InpLvLignesDerriere | true | Draws the lines behind the candles rather than in front. |
| Prefix of the chart objects drawn InpLvPrefixe | SL_ | Prefix of the object names the EA draws for plans. If you change it: Change it only if another tool on the chart uses the same prefix. |
| Colour | Default |
|---|---|
| Colour: simple level (LEVEL) InpLvCoulNiveau | 135, 150, 168 |
| Colour: plan A entry InpLvCoulEntreeA | 255, 176, 48 |
| Colour: plan B entry InpLvCoulEntreeB | 92, 172, 255 |
| Colour: stop loss InpLvCoulSL | 232, 78, 78 |
| Colour: take profit InpLvCoulTP | 46, 198, 132 |
| Colour: zone and invalidation of the background analysis InpLvCoulFond | 176, 132, 255 |
GENERAL 10 - SL/TP manager - switches and mode
The SL/TP manager adjusts the stop and target of open positions. It only touches Pilot positions on this symbol. Off at the start. Its distances are set in group GOLD 03.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Close this % of the position at TP1, then push the TP to TP2 (0 = off) PartialTP1Pct | 0.0 | When the price nears the TP ("Partials" distance in group GOLD 03), closes this percentage of the position and pushes the TP to the TP2 step. 0 = off. Default: Off: the position exits in full at its target. If you change it: Needs a TP2 offset (group GOLD 03): without a next step the partial is not taken, otherwise the rest would close at once. Only works with the master switch on, in Aggressive or Patient mode. |
| Close this % of the REMAINDER at TP2, then push the TP to TP3 (0 = off) PartialTP2Pct | 0.0 | Same at the TP2 step: closes this percentage of the remainder and pushes the TP to TP3. 0 = off. If you change it: Needs a TP3 offset (group GOLD 03). |
| Telegram message on each partial close PartialNotify | true | Sends a Telegram message at each partial close. |
| MAIN SWITCH: manage the SL/TP of open positions EnablePosManager | false | Master switch of the SL/TP manager: it adjusts the stop and target of Pilot positions while they run. Default: Off: positions keep the stop and target set by the AI plan. If you change it: On, the temperament chosen below applies. It only touches Pilot positions on this symbol. |
| Manager behaviour PosMgrMode | Aggressive: secures early, trails closely | Aggressive: secures early and follows the price closely. Patient: lets it run and adjusts rarely. Cascade: handles together the orders of one plan (one per target) and locks the others' stop at each target reached. If you change it: Each temperament's distances are set in group GOLD 03. Aggressive protects fast but exits more often; Patient gives the AI's plans, which often aim several dollars away, room to breathe. |
| BE+: move the SL beyond the entry once in profit PosMgrBEPlusEnable | true | BE+: once the position is in profit, moves the stop beyond the entry price so that it can no longer lose. If you change it: Off, the stop stays where it is until the trailing stop. |
| TSL: trailing stop that follows the price PosMgrTSLEnable | true | TSL: trailing stop that follows the price as the profit grows. If you change it: Off, profit is only protected by the BE+. |
| TTP: push the take profit further away PosMgrTTPEnable | false | TTP: when the price nears the TP, pushes the TP further to let it run. Default: Off: the position exits at the target set by the AI. If you change it: On, combine with the trailing stop, which protects the profit while the target moves away. |
| React on ticks every X s (0 = timer only, 10 s) PosMgrTickIntervalSec | 2 | The manager reacts at most every X seconds. 0 = timer only, every 10 seconds. Default: 2 seconds: reactive without overloading the terminal or the broker. |
| Patient - TSL: arms at X % of the entry->TP distance (if a TP exists) PosMgrPatTSLArmPctOfTP | 50.0 | Patient: the trailing stop arms once the price has covered X % of the way from entry to TP. Default: 50 %: halfway. If you change it: Lower: earlier protection, but more likely to exit on a breather. |
| Patient - TSL: distance = X % of the current gain PosMgrPatTSLDistPct | 40.0 | Patient: trailing distance, as a percentage of the running profit (never less than the minimum distance in group GOLD 03). Default: 40 %: the stop gives back at most 40 % of the profit made. If you change it: Lower: protects more, exits more often. |
| Cascade - group: an order joins it if opened within X min of the first PosMgrCascadeGroupWindowMin | 5.0 | Cascade: an order joins the group if it opens within X minutes of the first one. Default: 5 minutes: the orders of one plan open together. |
| Cascade - single order: BE+ once the price has covered X % of the way to the TP PosMgrCascadeSoloTriggerPct | 66.7 | Cascade, single order (no group): BE+ once the price has covered X % of the way to the TP. Default: 66.7 %: two thirds of the way. |
| Cascade - group: require the same magic number PosMgrCascadeRequireSameMagic | false | Cascade: only accepts orders with the same magic number in a group. Default: Off: the manager already handles Pilot positions only. |
GENERAL 11 - Capital protection and account alerts
Circuit breaker and alerts on the account's state. ⚠ The circuit breaker acts on the whole account, not only the Pilot.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| MAIN SWITCH: close everything and block at a threshold EnableGlobalStopOut | false | Circuit breaker: at the threshold below, closes ALL positions of the ACCOUNT (all symbols, all robots, manual positions included), then blocks openings. Default: Off: a drastic measure, for you to decide. If you change it: On, it acts on the whole account, not only the Pilot: use it only if this account is dedicated to the Pilot, or if you truly want everything cut. |
| Trip on daily loss (% of the day-open balance, 0 = off) StopOutDailyLossPct | 0.0 | Triggers the circuit breaker on a daily loss, as % of the day's opening balance. 0 = off. If you change it: For example 5: beyond a 5 % loss in the day, everything is closed. |
| Trip below this equity (account currency, 0 = off) StopOutEquityFloor | 0.0 | Triggers the circuit breaker if equity falls below this amount, in the account currency. 0 = off. |
| Also cancel pending orders when tripping StopOutCancelPendings | true | When triggered, also cancels all the account's pending orders. Default: On: otherwise a pending order could reopen a position right after. |
| Equity alerts EnableEquityAlerts | true | Telegram alerts when equity changes sharply (thresholds below). A deposit or withdrawal does not trigger an alert. |
| Monitoring interval (s, 15 to 300) MonitoringInterval | 30 | Interval of the account checks, in seconds (15 to 300). If you change it: Shorter: faster alerts, possibly more messages. |
| Equity change that triggers an alert (%) EquityChangePercent | 3.0 | Equity change between two checks that triggers an alert. Default: 3 %: a notable move without false alarms. |
| Quick alert threshold (%) QuickAlertThreshold | 6.0 | Threshold of the quick alert, checked at shorter intervals. Default: 6 %: kept for sharp moves. |
| Margin call alert EnableMarginCallAlert | true | Alert when the account's margin level falls below the next threshold. Default: On: a margin call comes before the broker force-closes positions. |
| Margin level warning (%) MarginLevelWarning | 100.0 | Margin level (%) that triggers the alert. Default: 100 %: equity now only covers the margin in use. If you change it: Higher (200 %, for example): earlier warning. |
| Daily drawdown alert EnableDailyDrawdownAlert | true | Alert when the day's loss reaches the next threshold. If you change it: Only an alert: nothing is closed (for that, see the circuit breaker). |
| Maximum daily drawdown (%) MaxDailyDrawdownPct | 5.0 | Daily loss, in %, that triggers this alert. |
| Open position reminder via Telegram (h, 0 = off) PositionReminderHours | 0.0 | Telegram reminder of open positions every X hours. 0 = off. If you change it: Useful if you do not look at MT5 all day. |
GENERAL 12 - Telegram - messages
Content of the Telegram messages. Messages are only sent while the panel's Telegram session is ON (it starts OFF).
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Debug mode (detailed logs in the MT5 journal) DebugMode | false | Very detailed MT5 log (Experts tab). Default: Off: the log stays readable. If you change it: Turn on only when support asks. |
| HTML formatting UseHTML | true | Formatting of Telegram messages (bold, italics). If you change it: Turn it off if your Telegram app shows tags instead of formatted text. |
| Show pips ShowPips | true | Shows the distance in pips in messages. |
| Show points ShowPoints | true | Shows the distance in points in messages. |
| Show lots ShowLot | true | Shows the volume (lots) in messages. |
| Show profit/loss ShowProfit | true | Shows the profit or loss in messages. If you change it: Turn it off if you share your messages with other people. |
| Show balance and equity ShowBalance | true | Shows the balance and equity in messages. If you change it: Turn it off if you share your messages: your capital no longer appears. |
| Silent Telegram messages (no sound) MuteTelegram | false | Messages arrive without sound or vibration. If you change it: Handy at night. |
| Ask before announcing a pending order (manual orders) AskToConfirmOrders | true | For your MANUAL pending orders: a window on the chart asks whether to announce them on Telegram. Default: On: you choose what goes out. If you change it: Off, they are announced straight away. |
| Keep the screenshots on disk KeepScreenshots | false | Keeps on disk the screenshots sent to Telegram. Default: Off: they are deleted after sending, so the disk does not fill up. |
| Automatic screenshot on a winning trade AutoScreenshotOnWin | false | Sends a chart screenshot after each winning trade. |
| Minimum profit for a screenshot ($, 0 = any gain) MinProfitForScreenshot | 0.0 | Minimum profit, in dollars, for that screenshot. 0 = any profit. |
| Show the R/R ratio ShowRiskReward | true | Shows the reward-to-risk ratio in order messages. |
| Relay only these symbols (comma list, empty = all) RelaySymbolFilter | (empty) | Only announces trades on these symbols on Telegram (comma-separated list). Default: Empty: every trade on the account is announced, manual ones and other robots' included. If you change it: For example your broker's gold symbol, to announce gold only. |
| Relay only these magic numbers (comma list, empty = all) RelayMagicFilter | (empty) | Only announces trades carrying these magic numbers. Default: Empty: all. If you change it: Enter the Pilot's number (20261115 by default) to announce its trades only. |
GENERAL 13 - Telegram - briefings
Briefings sent to Telegram, at GMT hours.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Automatic briefings AutoBriefing | false | Automatically sends daily briefings to Telegram. Default: Off: you ask for them with the Briefing button or the /briefing command. |
| Last briefing hour (GMT, 0-23) BriefingEndHour | 17 | GMT hour of the day's last briefing (0 to 23). |
| Briefings per day (1-1440) BriefingCount | 5 | Number of briefings per day, spread out until the last one. |
| Weekly briefing WeeklyBriefing | false | Sends a weekly briefing. |
| Weekly briefing: day WeeklyBriefingDay | Monday | Day of the weekly briefing. Default: Monday: the past week's summary. |
| Weekly briefing: hour (GMT, 0-23) WeeklyBriefingHour | 8 | GMT hour of the weekly briefing (0 to 23). |
GENERAL 14 - Telegram - remote commands
Controlling the account from Telegram. Main commands: /pos and /pend (positions, orders), /status, /screenshot, /briefing; /sl, /tp and /be (stops and targets); /close and /cancel; /buy, /sell and pending orders (/buylimit, /sellstop…). /help gives the full list.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Remote commands via Telegram EnableTgCommands | true | Lets you control the account from Telegram: positions, stops, targets, closes, new orders. The /help command gives the full list. If you change it: These commands act on the live account: protect them with a PIN (TgCmdPin setting). Turn them off if you do not use them. |
| Command check interval (s, 5 minimum) TgCmdPollSec | 10 | How often commands are read, in seconds (at least 5). If you change it: Shorter: faster answers, more calls to Telegram. |
| Security PIN (empty = none, /pin 1234) TgCmdPin | (empty) | PIN required before commands (sent with /pin 1234). Empty = none. Default: Empty: yours to choose; the EA warns you at start-up while it is missing. If you change it: Strongly advised: without a PIN, anyone with access to your Telegram chat can close your positions. |
| Require confirmation for CLOSE ALL TgConfirmCloseAll | true | Asks for confirmation before running "close all". Default: On: a slip of the finger does not close everything. |
| Extra authorised chat ID (optional) TgAuthChatID2 | (empty) | Number of a second chat allowed to send commands. Default: Empty: only the main chat gives commands. |
| EA command prefix, empty = none (e.g. /ea) TgCmdPrefix | (empty) | Prefix of the EA's commands, for example /ea. Empty = none. If you change it: Useful if one bot serves several EAs: each one only answers its own prefix. |
| Token of a 2nd bot dedicated to commands (empty = same bot) TgCmdBotToken | (empty) | Token of a second bot dedicated to commands. Empty = the same bot as the messages. If you change it: Keeps commands apart from the message feed. |
| Chat ID for /status /briefing /screenshot replies (empty = unchanged) TgCmdReplyChatID | (empty) | Chat that receives the answers to /status, /briefing and /screenshot. Empty = unchanged. |
GENERAL 15 - Monitoring, logs, exports
Connection monitoring.
| Setting | Default | Purpose, reason for the default, effect of a change |
|---|---|---|
| Telegram alert on connection loss and recovery NotifyConnectionLoss | false | Telegram message when MT5 loses the broker connection, then when it returns. Default: Off: on an unstable connection, messages would pile up. If you change it: Advised on a VPS. |
| Send an "alive" message every X hours (0 = off) HeartbeatHours | 0 | Sends an "still alive" message every X hours. 0 = off. If you change it: Useful on a VPS: a missing message tells you MT5 has stopped. |


