Grid Pilot — Installation and Telegram setup

1 декабря 2026, 20:44
Vladimir Smorodintsev
0
4

Connect your private Telegram bot to Grid Pilot on the chart. Once connected, the account dashboard appears in your chat.

Installation and first start

Video Setup and Telegram

After a Market purchase, sign in to the terminal with the MQL5 account you used to buy Grid Pilot. Open your purchases in Market, select Grid Pilot and click Install if needed. Find the panel in Navigator → Expert Advisors → Market. MetaQuotes installation guide.

Create the bot and attach Grid Pilot to a chart.


Create the bot and attach Grid Pilot to a chart.

If you already have a standalone file, choose File → Open Data Folder. Copy GridPilot.ex5 into MQL5/Experts for MT5 or GridPilot.ex4 into MQL4/Experts for MT4. Refresh the Expert Advisors list in Navigator.

Drag Grid Pilot onto the chart for your chosen pair. You can try it on an EURUSD demo chart first. Allow trading in the EA properties and enable Algo Trading (MT5) or AutoTrading (MT4) in MetaTrader. The five Grid Pilot tabs appear on the chart. You can connect your bot at any time through the same panel’s Inputs. In every language, the five tabs are labelled Trade, Exit, Grid, Chains and Manage. The Telegram home menu uses Trade, Exit, Grid and Chains. Open Schedule or Close thresholds directly from this menu.

On first launch, Grid Pilot creates a folder for your settings and plans. The folder is MQL5/Files/GridPilot in MT5 or MQL4/Files/GridPilot in MT4. It reads your saved settings and plans from the same folder the next time you start it.

Officially supported Telegram bot languages

13 built-in languages. English, Русский, Español, Português (Brasil), 简体中文, Bahasa Indonesia, ไทย, Deutsch, Français, 日本語, Türkçe, Italiano, 한국어.

The Grid Pilot Telegram bot uses the same language as the chart panel. Open EA properties → Inputs → Language, choose a language, and click OK. The language applies to the bot’s menus, notifications and built-in help.

Open Inputs in the EA properties and select Language. The expanded list on the right shows the available languages.

Open Inputs in the EA properties and select Language. The expanded list on the right shows the available languages.

Custom file. To use your own translation, edit GridPilot_custom.lang in MQL4/Files/GridPilot/ or MQL5/Files/GridPilot/ and select Custom file in Language. The first run in Custom mode creates a file with English strings if one does not exist. Keep the keys and save the translated values in UTF-16 LE with BOM.

Telegram bot: connection and control

Telegram is included in Grid Pilot on MT4 and MT5. Attach the panel to use it on the chart. Connect your own bot to send remote commands and receive notifications.

The Telegram dashboard shows the update time and the controls for this account.

The Telegram dashboard shows the update time and the controls for this account.

  1. Account. The header shows the symbol, balance, equity and current drawdown.
  2. Summary. See the number of BUY and SELL positions, their combined P/L, broker pending orders, grids and active chains.
  3. Last updated. The timestamp changes when the dashboard refreshes. The refresh interval appears beside it.
  4. Pair. Choose the symbol for your next command or type part of its name in the chat. The chart keeps its timeframe.
  5. Grid. Create a grid or open one by name to inspect its levels and edit the plan.
  6. Chains. Link grids in SEQ or POOL mode and control the chain from here.
  7. Orders. Find a position or order using filters, open its individual card or select several tickets.
  8. Account details. Open the details of the connected trading account.
  9. Pending / OCO. Open a broker pending order and give it a group colour. Two or more orders of the same colour form an OCO group.
  10. Trade. Choose a market or pending entry and enter the trade parameters in the chat.
  11. Exit. Set up trailing stops and breakeven for the selected symbol.
  12. Schedule. Schedule starts or closes by broker server time. The account shares one task list.
  13. Close thresholds. Set an amount in the account currency. When the combined profit or loss reaches that threshold, Grid Pilot starts closing all open positions on the account.
  14. Settings. Open the panel settings, including lot sizing and notification categories.
  15. Instructions. Choose a topic to read its instructions in the chat.
  16. Screenshot. Request a chart screenshot from the running panel.

Connecting the bot

  1. Open @BotFather in Telegram, send /newbot and follow the prompts. Save the new bot's token.
  2. Send /start in a private chat with your new bot. Find the numeric chat ID using the steps below.
  3. In MetaTrader Tools → Options → Expert Advisors, allow WebRequest and add https://api.telegram.org .
  4. In EA properties → Inputs, fill in Telegram bot token (@BotFather) and enter the number in Telegram user/chat id (controller).
  5. Confirm the settings to start Grid Pilot. Once the panel connects to Telegram, it automatically opens the account dashboard in your chat.

Connect your private Telegram chat to the panel through WebRequest.

Connect your private Telegram chat to the panel through WebRequest.

While the panel is connected, the Telegram dashboard updates the same message about every five seconds. The timestamp underneath shows the MetaTrader server time for the displayed data. Trade notifications appear separately in the chat history.

Finding the numeric chat ID

The method shown in the video. Open @userinfobot in Telegram and tap Start. Copy the digits after ID from the reply into Telegram user/chat id (controller). Enter the token from BotFather only in Grid Pilot’s Inputs.

In Telegram Desktop. For a private chat with your bot, use the numeric ID of your own Telegram account.

  1. In the desktop app, open Settings → Advanced → Export Telegram data. Select your account information only, clear the chat and media selections, choose JSON and start the export.
  2. Open the exported result.json in a text editor. Find personal_information and the number after "user_id" inside it. Copy just the digits into Telegram user/chat id (controller). Keep the export on your computer.
  3. Open the chat with your bot and send /start before connecting it to Grid Pilot. After you set the token and ID in MetaTrader, the account dashboard appears automatically when the panel connects. Telegram's export instructions.

The home screen shows current account drawdown: equity below balance, in account currency and as a percentage of balance. Its overview includes positions with BUY/SELL counts and P/L, broker pending orders, open grids and active chains; paused and closing states are marked separately. Drafts and completed plans are excluded. With Own symbols only, the overview covers the chart pair; other pairs appear only as counts. Balance, equity and drawdown always cover the whole account. A dash means the panel is still waiting for that figure from the broker.

Account shows the owner, broker, server and account type, followed by funds and drawdown on separate lines. Below are positions, pending orders, open grids, active chains, saved grid/chain totals and current panel settings. Funds cover the whole account; the instrument scope is shown above trading statistics. All amounts use the account currency.

A trade or grid on another pair

Tap 🔀, send part of the symbol name, then choose a result. The same chart changes pair and keeps its timeframe. Existing plans continue on their original pairs. Grid Pilot refuses a pair already occupied by another Grid Pilot panel.

The pair button opens the symbol picker and symbol search.

The pair button opens the symbol picker and symbol search.

  1. Current chart. The header identifies the currently selected chart symbol.
  2. Search. Type part of a symbol, such as EUR, in the chat to see matching instruments.
  3. Page number. See which page of symbols is open.
  4. Symbol. Tap a symbol to switch the chart and bot to that pair.
  5. Next page. Go to the next page of available symbols.

Positions, closing and other buttons

What you want to do Where to go in the Telegram home menu
Switch from EURUSD to USDJPY 🔀 Pair. The same terminal chart switches to your chosen symbol.
Find a grid or see which chain link is waiting Grid or Chains. Grid states · Which grid outcome starts the next link.
Find a position, check its TP or cancel a virtual order Orders. Open Pending / OCO for colour groups of broker pending orders.
Place a trade or set up protection for a pair Trade or Exit.
Check tonight's task, pause it or resume it Schedule in the home menu. In the terminal use Manage. How to schedule and pause a task.
Close positions at a combined profit or loss Close thresholds in the home menu. Enter the total profit or loss in account currency at which to close positions, then enable the rule. Example with two thresholds.
See your balance, change notifications or receive a chart screenshot Account, Settings or the 📸 button, respectively.

Two positions and three pending orders are selected. The footer button opens the group review.

Two positions and three pending orders are selected. The footer button opens the group review.

  1. Filtered selection. Use the table header checkbox to select eligible rows across all filtered pages. A dash means some rows are marked.
  2. Select positions. Use the group header checkbox to select eligible open positions.
  3. Individual ticket. Tick a ticket to include it or clear its checkbox to exclude it from the group action.
  4. Locked row. A lock marks a row that cannot be included in this manual group action.
  5. Select pending orders. This checkbox selects eligible pending orders, including virtual pending orders.
  6. Review the selection. The button shows how many positions would close and how many orders would be cancelled. Click it to review the list before confirming.

Select orders opens ticket selection for a bulk action.

Select orders opens ticket selection for a bulk action.

  1. Select orders. Turn on multiple selection. Mark the tickets before reviewing the group action.
  2. Multi TP plan. The TP ×3 label identifies a position with three partial-exit targets.
  3. Pending order. The clock marks a pending entry so it can be distinguished from an open position.
  4. Pending and OCO. Manage broker pending orders and their groups.

Pin the dashboard message in Telegram to return to its buttons from any point in the chat.

Entering values on your phone. In Trade, tap the lot field and send the volume you want, for example 0.02 . This fills in the form. To act on several orders, open Orders → Select orders, select the rows you want and tap Review selection. Before you confirm, the bot shows which positions it would close and which orders it would cancel.

If you delete the menu message, send /start to your bot to reopen the menu immediately. Your trading plans keep running. Tap Instruction to open the help topics in the chat.

If the bot does not respond or an action fails

No menu in the chat. Open your bot and send /start . In MetaTrader, make sure Grid Pilot is running and https://api.telegram.org appears in the allowed WebRequest list. Match the token and numeric ID in the EA inputs to your bot and private chat. Use one terminal per bot.

The Telegram manual opens a topic list. Choose a topic to read its instructions in the chat.

The Telegram manual opens a topic list. Choose a topic to read its instructions in the chat.

The menu works but an order was refused. Read the bot’s reply or find the command by time in the Grid Pilot Log. If trading is disabled, enable it for both the EA and the terminal. “Market closed” means you can place a new order during the symbol’s next trading session. “Not enough money” means the available margin is too low for the requested volume.

Which notifications reach Telegram

Open Settings → Telegram notifications in the panel or Settings in the bot. The categories you select are saved for the account.

Telegram notification categories for the selected account.

Telegram notification categories for the selected account.

  1. Notification status. The coloured indicators show which notifications are enabled for this account.
  2. Panel start and stop. Send chat notices when the panel is attached or removed.
  3. Position opened. Receive a notice when a position opens.
  4. Grid level fired. Receive a notice when the next grid level triggers.
  5. Position closed. Receive a notice when a position closes.
  6. Grid events. Receive notices for grid creation, start, closure and deletion.
  7. Balance and margin. Receive balance updates and alerts when the account is low on free margin.
  8. Changes. Manage notifications about edits to plans and settings.
  9. Chart screenshot. Request a picture of the current chart in your chat.

When several enabled events occur close together, a grid start, a fill and a manual edit can appear in one Telegram message, each in its own paragraph. Each available grid has one button. Long series can span several messages. To mute manual edits, turn off Changes in notification settings. Warnings and account-rule alerts arrive separately.

What you want to follow Which switch to turn on
The EA starting or being removed from its chart Panel start / stop. Ordinary symbol and timeframe changes are silent.
A new position or a pending order filling Position opened. For a pending fill the message includes the pair, side, executed volume and price. On MT5 netting, an opposite pending order that reduces the existing position can also generate this message.
A monitored position closing in full Position closed. On a hedging account the card shows TP or SL when the broker confirms the cause, and the stop or target price when supplied in the history. If the cause is unknown, the card reports the close without assigning a reason. The full-close notice is sent once the last remaining volume closes.
An entry at the next grid level Grid level fired.
Grid starts, waits for broker history, closing progress and final result Grid events. Open the grid from a wait notice. The message identifies the levels awaiting confirmation or says the final exit reason is pending.
Balance changes and free-margin warnings Balance / margin.
A sequential chain advancing, repeating a link or stopping A connected bot sends this message independently of Grid events and Position closed.

The connected bot also reports scheduled actions and the combined profit or loss rule. A single operation can produce a task result and a separate notification about a specific position closing.

A message is missing after an interruption. The terminal holds these notifications in memory. While the panel is running it retries temporary connection failures. An unsent message can be lost if the terminal crashes or the queue fills up. Open the grid or chain in Telegram to see its current state. The panel’s Log records the command time and the reason reported for a close.

Input parameters

These names appear in EA properties → Inputs.

Input Purpose
Expert ID (magic base) Identifies Grid Pilot orders. Keep it unchanged while trades or plans are active.
Language Select a built-in translation or Custom file. Translation files.
Render timer (ms) Panel refresh interval; normally leave 100 ms.
Show field tooltips on hover In Settings, hover over a parameter name or the text beside a checkbox. For bar-based TP and SL, hover over each numeric field to see what its bar count or point offset means.
Own symbols only: current-symbol display/manual controls Limits lists and new manual commands in MetaTrader and Telegram to the current chart symbol. Turn it off to work with several symbols in one list. Pair in Telegram switches that same chart. Plans you have already started continue on their original symbols. Manage schedules and close thresholds are shared across the account.
Include manual orders (magic 0) Enable this to manage manual trades with Magic 0. A scheduled Whole account close covers all positions regardless of this setting.
Telegram bot token (@BotFather) Token issued by @BotFather for your bot. Enter it to connect Telegram.
Telegram user/chat id (controller) Numeric ID of the private chat authorised to control the bot.
Fast Telegram mode The default is false . Choose true on the chart you want to handle the bot’s commands. This chart takes priority if the same bot is connected on several charts. Grid Pilot checks for commands more often and sends trade alerts sooner. A yellow border marks the chart where this mode is active. A close alert can arrive only after the broker reports the result. Delivery also depends on your connection and Telegram.
Use custom Light / Dark palette Custom interface colours.

MT4 lists language names in English in Language; MT5 uses their native names. The panel itself uses the language you select.

Continue to chapter one · Prepare and place a trade