Grid Pilot — Prepare and place a trade

1 декабря 2026, 20:55
Vladimir Smorodintsev
0
5
What would you like to do?
  • Prepare and place a trade
  • Manage orders and open positions
  • Build a grid and link grids into a chain
  • Set a schedule and close thresholds

Grid Pilot is a trading panel for MetaTrader 4 and 5 with remote control through Telegram. Set entry, stop-loss and take-profit levels on the chart. The grid map lets you see where your positions would exit if the selected entries fill. Link grids into chains or schedule a start or close. While the terminal is running, your private bot lets you place orders and manage positions, grids and chains from your phone.

Main features

  • Plan trades on the chart. Set entry, stop loss and take profit with chart lines. The risk calculator suggests a position size for the amount you want to risk.
  • Manage an open position. A trailing stop follows the price, breakeven moves the stop towards the entry, and Multi TP divides the position across several profit targets.
  • Orders window. Sort and filter positions and pending orders, edit individual trades or select several tickets for a group action.
  • Alternative entries with OCO. Link two or more broker pending orders. When the broker confirms a fill on any member, including a partial fill, Grid Pilot requests cancellation of the other pending orders in the group.
  • Grids and the grid map. Choose the spacing between successive entries. Levels fill in order. Select a level to see the projected breakeven, shared exit and result if entries fill through that level.
  • Chains and schedules. In SEQ, grids start in order when their transition conditions are met. In POOL, they share a profit or loss threshold. Schedule a start or close by broker server time.
  • Trade from your phone. Use your private bot to switch symbols, place orders, edit positions and start grids or chains. The running panel executes your commands through the connected terminal.

Installation and Telegram setup

Video Trade, orders and OCO

Video Position management and Multi TP

Panel header

Open Orders and Settings together and drag each window by its title. Hover over a field name for its tooltip. If no hints appear, enable Show field tooltips on hover in the EA inputs. Drag the header to move the panel away from the part of the chart you want to see. The toolbar buttons appear in this order. Match each number on the screenshot to the explanation below it. Click the screenshot to enlarge it.

The toolbar stays accessible when the main panel is collapsed.

The toolbar stays accessible when the main panel is collapsed.

  1. Panel title. The title shows the Grid Pilot version and account mode. Drag it to move the panel away from the part of the chart you want to see.
  2. Orders. Open the list of positions and pending orders. Find an individual trade or select several rows for a group action.
  3. Information. Open the account and symbol details to see the balance, free margin and current spread.
  4. Settings. Choose how the panel calculates lots, configure virtual pending orders and notifications, or save your settings as a preset.
  5. Theme. Switch the panel and its windows between light and dark themes.
  6. Chart screenshot. Click the camera to save an image of the chart. The panel displays the file path.
  7. Log. Open the latest messages from the EA. Find an action by its time to see the result or why it failed.
  8. Collapse panel. The up arrow hides the tabs to free up chart space. The toolbar stays accessible and active plans keep running.

Account Info shows account, margin and current symbol details.

Account Info shows account, margin and current symbol details.

  1. Account. The login and server identify the connected account. Its currency and leverage appear below.
  2. Balance and equity. Balance reflects booked transactions. Equity also includes the current result of open positions.
  3. Floating P/L and free margin. Read the current profit or loss on open positions and the margin still available.
  4. Drawdown and margin level. Read the account’s current drawdown and margin level.
  5. Margin call and stop out. These are the broker’s thresholds for the account.
  6. Symbol. See the chart symbol, its current spread in points and the number of decimal places in its price.

Grid Pilot also keeps a daily log. In MetaTrader choose File → Open Data Folder and open MQL4/Files/GridPilot/logs or MQL5/Files/GridPilot/logs . Each file is named for its date in the format YYYY-MM-DD.txt . You can check why a grid closed and how the chain responded, including after restarting the panel. The archive keeps today and the previous six server dates. Look for [AUDIT] to find the source and the affected item. If several charts write at once, also check files named YYYY-MM-DD.chart-<ID>.txt .

The panel log lists events in chronological order. Save log exports the log.

The panel log lists events in chronological order. Save log exports the log.

  1. Time. Find the time you sent a command and read the event on the same line.
  2. Message level. INF marks an informational entry. WRN highlights a warning, such as a restored grid that can trigger entries again.
  3. Save log. Save the log to a text file you can open separately.
  4. Scroll. Drag the scrollbar to read earlier entries.

To find a trade, search for its ticket and symbol, or its V number for a virtual order. The log distinguishes a request accepted by the broker from a confirmed fill. It also records pending-order changes and cancellations, full and partial closes, changes to SL/TP and the prices and volumes in a Multi TP plan.

For OCO groups, grids, chains and scheduled tasks, look for the group, grid, chain or task ID. Preset actions are recorded under the preset name. With a connected bot, manual protection edits and a successful break-even move produce Telegram notices. Each successful trailing-stop move is recorded in the log. The notification switches below control position and grid events.

A position is an open trade. A pending order waits for a price. Ask is the current price to buy, Bid the price to sell. The difference is the spread. A Magic Number (Expert ID) identifies trades belonging to an EA. A ticket identifies one particular order or position. For example, two Grid Pilot positions can share a Magic Number while each has its own ticket.

The Changes notification is on by default. It sends a summary of edits to Telegram. Turn it off to keep those updates in the Grid Pilot log only.

The chart hosts the Grid Pilot toolbar and windows. The Telegram dashboard provides remote access to the same EA.

The chart hosts the Grid Pilot toolbar and windows. The Telegram dashboard provides remote access to the same EA.

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.

Choosing a tab

The five tabs sit just below the toolbar. Choose one based on what you want to do.

The five Grid Pilot tabs

The five Grid Pilot tabs

  1. Trade — new order. Prepare a market or pending order by choosing the side, size and exit levels.
  2. Exit — position protection. Set a break-even rule or enable a trailing stop.
  3. Grid — order grids. Set the spacing between successive entries and use the map to see their shared exit.
  4. Chains — linked grids. Run grids in sequence with SEQ or give them a shared closing threshold with POOL.
  5. Manage — schedule and thresholds. Schedule a start or close, or set the profit or loss amount that triggers closing.

Trade tab

Prepare one trade here. Choose a side and an order type, then set the entry, size and exit levels. Use the button at the bottom of the panel to submit the order.

Trade direction and order type

Trade direction and order type

  1. SELL. Prepare a sell order. Choose how it will enter in the row below.
  2. BUY. Prepare a buy order. The blue outline marks the selected side.
  3. Market. Choose this to enter at the available market price when you place the order.
  4. Limit. A Buy Limit waits below the current Ask. A Sell Limit waits above the current Bid.
  5. Stop. A Buy Stop waits above the current Ask. A Sell Stop waits below the current Bid.

Entry, protection and position size

Entry, protection and position size

  1. Entry. Enter a distance in points for a pending order. Zero selects a market entry. To set a specific price, enable Lines and drag the entry line.
  2. SL — stop loss. Enter the distance from the entry to the price at which you want to limit the loss, in symbol points.
  3. TP — take profit. Enter the distance from the entry to your profit target in points. Open Multi TP to take profit in stages.
  4. Pinned-price marker. This symbol beside SL or TP means the line is pinned to a price on the chart. Type a distance into the field to make it follow the entry again.
  5. Lot. Enter the total order volume. The symbol’s minimum lot and volume step determine which values you can use.
  6. Minus. Reduce the value in this row by one step. You can also type a number directly.
  7. Plus. Increase the value in this row by one step. The same buttons are available for entry distance, stop, target and lot.
  8. Estimated loss at SL. The red amount estimates the loss in account currency at the stop loss for this lot size.
  9. Estimated profit at TP. The green amount estimates the profit in account currency at the target. Change the lot or target distance to see the estimate update.
  10. Risk-based lot (~). Click the suggested value to fill the Lot field using your risk settings and the current stop distance.

Chart preview and order placement

Chart preview and order placement

  1. Lines. Show the draft entry, stop and target on the chart. Drag the lines to choose their prices visually.
  2. Multi TP — staged exits. Open the target editor to choose the distance and volume of each partial exit.
  3. Comment. Give the new order a comment so it is easier to identify in the terminal.
  4. Place order. The button shows the selected side and size. In this example, clicking it submits a market buy for 0.08 lots.
  1. Open the chart for the pair you want to trade and choose Buy or Sell.
  2. Choose Market, Limit or Stop using the table below. For Limit or Stop, enter a positive distance in Entry, or turn on Lines and drag the entry line to the price you want. Entering a positive distance while Market is selected switches the order to Limit. Entering zero in the field selects Market.
  3. Enter SL (stop-loss) and TP (take-profit) as distances from entry, in points. Zero removes that level from the form. With TP/SL by N bars enabled, the panel can calculate a level from the selected number of bars. For a partial exit, set each target price in Multi TP.
  4. Enter the trade volume in Lot, or click the ~ estimate beside it to copy the risk-based lot. The Place button shows the order type and volume you are about to submit. Click it to place the order.
Type Buy Sell
Market Buy now at the market price Sell now at the market price
Limit Wait for the price to fall to a level below the current Ask Wait for the price to rise to a level above the current Bid
Stop Wait for the price to rise to a level above the current Ask Wait for the price to fall to a level below the current Bid

Example. On a five-decimal EURUSD quote, one point is 0.00001 . At an Ask of 1.10000 , an entry distance of 100 points gives a Buy Limit price of 1.09900 or a Buy Stop price of 1.10100 . Drag the entry line to keep a specific price as the market moves.

In Telegram. In Trade, choose Market, Limit or Stop. For a pending order, tap Entry and send the exact price. Set the lot and the SL/TP distances in points, tap BUY or SELL, review the order and confirm. The panel's Virtual pending orders setting determines whether Grid Pilot holds the order or sends it to the broker. Select the type and entry again after switching pairs or restarting. To set up several profit targets for a new entry, use Multi TP in the terminal. After the trade opens, you can adjust that plan in Telegram.

Choose Market, Limit or Stop in Trade. Use the lot, SL and TP buttons to set up the order. Tap BUY or SELL to review it before confirming.

Choose Market, Limit or Stop in Trade. Use the lot, SL and TP buttons to set up the order. Tap BUY or SELL to review it before confirming.

  1. Order summary. The card shows the symbol, order type, lot size, stop distance and target distance for the next order.
  2. Last updated. The timestamp changes when the EA refreshes the card. The automatic refresh interval appears beside it.
  3. Market. Select a market entry. Tap BUY or SELL to review the order before confirming.
  4. Limit. Set a buy price below the current Ask or a sell price above the Bid. Selecting Limit reveals an Entry button for entering the price.
  5. Stop. Set a buy price above the current Ask or a sell price below the Bid. Tap the Entry button that appears and send the price as a message.
  6. BUY. Review a buy order with the displayed settings. Once you confirm, the EA in the terminal submits it.
  7. SELL. Review a sell order. You can go back and change its settings before submitting.
  8. Lot. Tap and send the lot size as a number, such as 0.04. The card displays the new value.
  9. SL — stop loss. Tap and send the distance from the entry to the stop in symbol points.
  10. TP — take profit. Tap and send the distance from the entry to the profit target in symbol points.
  11. Symbol. Tap the pair name to choose another symbol. The EA switches its chart to that symbol and keeps the timeframe.
  12. Back. Return to the previous bot menu.
  13. Refresh. Request a fresh copy of the data shown on this card.

Multi TP

Multi TP lets you close a position in stages. Open Multi TP on the Trade tab. For each target, enter its distance from entry in points and how many lots to close there. List the nearest target first. Enter 0 in a target’s volume field to select auto. The panel sets aside the lots you assigned manually, then divides the remainder among the automatic targets using the broker’s lot increment. You can set up to 32 targets if the position is large enough to close at least the minimum lot at each one.

Three Multi TP targets at 200, 400 and 600 points. Each closes 0.01 lot.

Three Multi TP targets at 200, 400 and 600 points. Each closes 0.01 lot.

  1. Order volume. The entire order is 0.03 lots. This is the volume split between the three targets shown.
  2. Minimum and volume step. The broker accepts volumes starting at 0.01 lots in increments of 0.01. Here the order is large enough for three separate partial exits.
  3. Target distance. The first field in each row sets a distance from the entry in points. TP1, TP2 and TP3 are 200, 400 and 600 points from the entry in this example.
  4. Exit volume and Auto. Enter the lot size to close here, or type 0 to select Auto. After assigning any manual amounts, the panel splits the remaining volume among the automatic targets using the symbol’s lot step.
  5. Allocated volume. The figure beside the field shows how much the panel will close at this target. Each of the three targets has been allocated 0.01 lots.
  6. Estimated profit for this target. The green amount applies to the volume allocated to this row. Closing 0.01 lots at the second target would return an estimated +4.00 in account currency.
  7. Remove target. Remove the additional target on this row. For example, the lower cross removes TP3 and keeps TP1 and TP2.
  8. Allocation total. Compare the total assigned to targets with the order volume. All 0.03 lots have been allocated here.
  9. Estimated total profit. This adds the estimates for all partial exits. If all three targets fill at the levels shown, they add up to +12.00 in account currency.
  10. Add. Add a row and set the distance and volume for another partial exit.
  11. Reset. Return to one target with the TP distance from Trade and automatic volume. Any pinned target prices are cleared.
  12. Close editor. Return to Trade with the targets you have set. Use the place-order button there when you are ready to submit.

Example: a 0.03-lot position with three targets of 0.01 lot closes 0.01 at TP1, 0.01 at TP2 and the remaining 0.01 at TP3.

On a hedging account, each entry can have its own position. On a netting account, the broker combines entries on the same symbol into one position. In both cases Grid Pilot keeps the target prices and volumes for each entry separately. You can set targets for a market order, a broker pending order or a virtual pending order. If the volume exceeds the broker’s limit for one order, Grid Pilot sends it in parts.

On MT5 netting, if the current symbol position already has a broker SL or TP, use a virtual Limit or Stop for a new pending Multi TP entry. Grid Pilot rejects a new broker pending Multi TP order in that situation before submission.

Chart lines

Before placing a trade, turn on Trade → Lines. An SL or TP entered in the form stays a fixed distance from the entry. Drag the SL or TP line to pin it to a specific price. A ◉ appears beside the field. To return to a distance from entry, type a new number in the field.

Entry, stop loss and take profit for a SELL Limit are plotted on the chart.

Entry, stop loss and take profit for a SELL Limit are plotted on the chart.

  1. Blue line — entry. This draft Sell Limit would sell 0.01 lots at 1.09859. Before submitting it, drag the entry line to the price at which you want to sell.
  2. Red line — stop loss. A sell order’s stop is above its entry. The label shows a distance of 400 points, an estimated loss of 4.00 in account currency and a stop price of 1.10259. Drag the line to pin the stop to a price.
  3. Green line — take profit. A sell order’s target is below its entry. The label shows 200 points to the target, an estimated profit of 2.00 in account currency and a target price of 1.09659. Drag the line to change the target.

After placing a trade, hover over its Orders row to see the levels, or click the row to keep them on that symbol's chart. For an ordinary position or broker pending order managed by the panel, click the coloured entry label. If SL or TP is missing, enter a distance in points and click Set SL or Set TP. Clicking an existing TP label opens a menu with the Multi-TP editor.

Click the coloured SL label on the Trade plan or on an open standalone position. The menu shows whether Trailing Stop and Break Even are on. Choose Exit tab settings… to inspect their settings without changing protection. Each switch changes the symbol’s Exit rule. For example, if Exit manages two open USDJPY positions, turning on trailing applies the configured rules to both. Clear SL on an open position clears the stop for the selected ticket only.

The Exit switches appear on the SL label of an open position managed by the panel. For a broker pending order, they become available once the position opens. Use the grid to manage a grid level, or the entry’s TP ×N plan to manage its virtual Multi TP stop.

Settings

Click the gear in the header. Money fields use your account currency. The first fields set risk and lot size. The other controls work as follows.

Position sizing and maximum spread

Position sizing and maximum spread

  1. Risk mode. Choose balance, equity, free margin, your own base amount or a fixed cash risk.
  2. Risk percentage. Enter the percentage to risk on one trade. For example, in Bal mode, entering 1 means 1% of the account balance.
  3. Amount. Enter an amount in the account currency. Cust takes the chosen percentage of this amount. Fix uses the whole amount as the risk on one trade.
  4. Grid steps. Number of levels assumed for the suggested root lot. Add the actual entries on the Grid tab.
  5. Maximum spread. The largest Ask–Bid spread allowed for a new entry, in points. Zero disables the limit.

Exit rules, virtual orders and OCO

Exit rules, virtual orders and OCO

  1. Extend Exit to other pairs. Allow pairs without their own saved Exit rules to use this chart’s trailing and break-even settings.
  2. Hidden SL and TP. The running EA monitors these levels and sends a close request when a level is reached.
  3. Virtual pending orders. New standalone Limit and Stop orders wait inside the EA. The running terminal sends the trade request when price reaches the trigger.
  4. OCO. Turn this on to link broker pending orders. When the broker confirms a fill on one, even a partial fill, the panel requests cancellation of the other pending orders in that group.

Which events to send to Telegram

Which events to send to Telegram

  1. Panel start and stop. Send chat notices when the panel is attached or removed.
  2. Position opened. Receive a notice when a position opens.
  3. Grid level fired. Receive a notice when the next grid level triggers.
  4. Position closed. Receive a notice when a position closes.
  5. Grid events. Receive notices for grid creation, start, closure and deletion.
  6. Balance and margin. Receive balance updates and alerts when the account is low on free margin.
  7. Changes. Manage notifications about edits to plans and settings.

Calculate the stop and target from completed bars

Calculate the stop and target from completed bars

  1. TP and SL by bars. Use the extremes of completed candles to set protection for a new trade.
  2. Bar count. Set the lookback separately for the target and stop. Zero uses the value on Trade.
  3. Point offset. Add a distance in points beyond the chosen extreme for that level.

Saving and loading presets

Saving and loading presets

  1. Preset name. Enter a name or select a saved setup from the list below.
  2. Save. Save the current settings under the specified name.
  3. Load. Apply the preset selected in the list.
  4. Delete. Remove the selected preset from the list.
  5. Saved presets. Click a name, then Load to apply that preset.

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.
Setting When to use it
Grid steps Estimates the suggested root lot marked ~ on the Grid tab. For example, a total of 0.70 lots across three steps with a lot multiplier of 2 gives 0.10 + 0.20 + 0.40. Add the actual levels in the grid.
Spread max Set the maximum difference between Ask and Bid in points for a new entry. The panel rejects the entry if the spread exceeds your limit. Zero turns the limit off.
Extend Exit to other pairs Lets other pairs use this chart's trailing stop and break-even settings until they have their own saved Exit settings.
Hide SL / TP (virtual) Grid Pilot monitors levels for an individual position on hedging or the combined symbol position on MT5 netting. How hidden levels work.
Virtual pending orders New standalone Limit and Stop orders from the terminal and Telegram wait inside Grid Pilot. Keep the terminal running for them to trigger. Find them under Orders → Type: Virtual.
OCO When enabled, you can manually link broker pending orders. Turning OCO off removes all OCO links on the account. Pending orders stay active and independent. OCO
Telegram notifications Select the categories you want to receive. You can also change them under Settings in the bot.

TP / SL by N bars sets levels for a new Trade-tab order using completed candles on the chart timeframe. For example, for a buy with a three-bar SL and a 10-point offset, the stop goes 10 points below the lowest low of those three candles. A buy TP uses the highest high. A sell reverses these directions. Set the number of bars and the offset separately for TP and SL. Zero bars keeps the value from the trade form. The panel also uses the form value if the calculated level is on the wrong side of the entry. Multi TP keeps its own targets. Enabling this mode asks for confirmation and turns trailing off.

Risk and lot size: formulas and examples

In Settings, choose how much of your account you are willing to risk on a single trade if its stop-loss is hit. Use Risk mode to choose how that amount is calculated.

Risk mode button How to enter your risk per trade
Bal / Eq / FM Enter Risk %. The panel takes that percentage of your balance, equity (including open positions), or free margin, respectively.
Cust Enter a base Amount and a Risk %. For example, 1% of a custom amount of USD 2,000 gives USD 20 per trade.
Fix Enter the amount you are willing to risk in Amount. The field shows your account currency. The percentage is ignored in this mode.

Lot size = Amount at risk in account currency / (Stop distance in points × Value per point for one lot)

In Trade, enter your stop distance in SL. The ~ beside Lot shows the suggested volume. Click it to copy that volume into the order. Moving the stop or changing the risk updates the suggestion. Click it again to use the new volume in your order.

Why is there a dash beside Lot? The panel needs a stop distance, an amount at risk and a value per point. If Trade → SL is 0 and you have not set a stop another way, enter the distance in points. Then open Settings → Risk mode. For Bal, Eq or FM, enter a Risk % between 0.01 and 100. For Cust, also enter the base Amount. For Fix, enter a positive Amount in your account currency. If these fields are set and the broker has yet to supply a price or a value per point, the estimate appears when that data becomes available.

A red <0.01 when the broker’s minimum lot is 0.01 means even the smallest available volume exceeds your chosen risk. Clicking this estimate leaves Lot unchanged. The order button shows the volume that will be sent.

Example. With a USD 10,000 balance, Bal mode and 1% risk, you are risking USD 100 on one trade. If a point is worth USD 1 for one lot, a stop 200 points away gives a suggested 0.50 lots. Click that estimate, then widen the stop to 400 points. The estimate changes to ~0.25 . As long as Lot still reads 0.50 , the estimated loss at the wider stop is USD 200.

The panel sizes each trade separately. Three trades sized to risk USD 100 each give a combined estimated risk of USD 300. The broker sets the lot step and limits. Commission, swap and the actual closing price can affect the final loss.

Presets

To save a preset, enter a name and click Save. It stores the Settings checkboxes, including all six Telegram notification switches, and the Trade and Exit values.

To apply a preset, click its name in the list, then click Load. Clicking the row only fills in the name field. Save under the same name updates the preset. Delete removes it from the list. Loading an older preset without Telegram switches keeps your current notification settings. Save the preset again to include them.

Load the preset on the chart where you want its Trade and Exit settings. Its trailing or break-even settings can also move the stop on positions that are already open. Loading a preset preserves your existing orders, grids and bot connection.