Back to contents

Magic Entry · MT5 trade manager

Hotkeys for trading in MT5: the Magic Entry keyboard

Anything done with Magic Entry’s buttons can be started from the keyboard: a key starts the action, a click on the chart places the level, and Esc cancels any action in progress. Q starts a LIMIT entry and W a MARKET entry; T, P, S, O and B place the take profit, a partial take, the stop, a partial stop and break-even. Every key except Esc can be remapped in the inputs.

TAB Q W T P O S B C Z X I Esc

Hotkeys

Anything done with buttons can be started from the keyboard: a key starts the action, a click on the chart places the level. Esc cancels any action in progress.

  • A key picks up the level, the mouse moves it across the chart, a click places it. Esc before the click cancels and returns the level to its place.
  • Q and W: limit and market entry; T, P, S, O, B: take profit, partial take profit, stop, partial stop, breakeven.
  • C closes the set share of the selected position at once, without a window; on a group it opens the group's close menu. Z and X change the share by 10%.
  • I sets the cancel level, for pending orders only.
  • In Fixed Lots mode, Q is BUY and W is SELL: the trade opens at once, without stop or take.
  • Keys can be reassigned in the settings.

How to use and remap the keys

  1. Keep Allow using keyboard ON in the inputs (it is on by default).
  2. Press a key, move the mouse to the price and click to place the level; Esc before the click returns the level to its place.
  3. To remap, open the Inputs tab (F7), HOT KEYS group, and type a single Latin letter into the field; case does not matter.
  4. An empty field turns that key off; Allow using keyboard turns all of them off except Esc.

Advisor inputs for this function

Set on the Inputs tab (F7) when you attach Magic Entry to a chart. Captions and defaults are the advisor’s own.

HOT KEYS

This block has one purpose: to replace the standard keys if they get in your way. The actions themselves are described above, in the Keyboard section.

In the fieldKey
Q or qQ
TABTab
emptykey disabled
Ctrl+ZC is just the first letter
112F1 is a Windows key code
  • Allow using keyboardHOTKEYS_ENABLEDDefault: ON

    Master switch: turn it off and none of the keys below work. Esc always works.

  • Next order/positionHOTKEY_TABDefault: TAB

    Next position or order: selection cycles through the cards.

  • Start placing LIMIT orderHOTKEY_LIMITDefault: Q

    Same as the LIMIT button; pressing again cancels. In Fixed Lots — BUY.

  • Start placing MARKETHOTKEY_MARKETDefault: W

    Same as the MARKET button; pressing again cancels. In Fixed Lots — SELL.

  • Set MAIN TP placementHOTKEY_TP_MAINDefault: T

    Main take profit of the selected position or order: the next click places TP.

  • Set PARTIAL TP placement (+PTT)HOTKEY_TP_PARTDefault: P

    Partial take profit of the selected position or order: the next click places it, pressing again cancels.

  • Set MAIN SL placementHOTKEY_SL_MAINDefault: S

    Move the main stop: the next click places SL.

  • Set PARTIAL SL placement (+PS)HOTKEY_SL_PARTDefault: O

    Partial stop PS of the selected position: the next click places it, pressing again cancels. A main stop isn't needed for this.

  • Set BE-TRG placement (auto-enable BE)HOTKEY_BE_TRIGGERDefault: B

    A click places the breakeven level and turns it on. Esc cancels placement, and breakeven stays as it was.

  • Add 10% to Close NowHOTKEY_CLOSE_NOW_ADDDefault: Z

    +10% to the open position's Close Now share. Closes nothing. For a group, +10% in its close menu.

  • Reduce Close Now by 10%HOTKEY_CLOSE_NOW_REDUCEDefault: X

    −10% to the Close Now share.

  • Close NowHOTKEY_CLOSE_NOWDefault: C

    Close the selected share of the position now; a repeat within 3 seconds after the close won't fire. If a group is selected, C opens its close menu.

  • Set CANCEL level (pending orders only)HOTKEY_CANCEL_LEVELDefault: I

    Pending order cancel level: a click sets the price at which the order is removed.

  • Under the group header MetaTrader shows the line "(!)ESC button to cancen any action" — it's a reminder: Esc cancels any action.
  • Type a single Latin letter in the field; case doesn't matter: "q" is the same as "Q".
  • TAB is the only word the advisor reads in full.
  • The advisor reads a number as a Windows key code, not a digit: "1" won't assign the 1 key — that needs code 49.
  • An empty field disables that one key.
  • Combinations with Ctrl, Shift and Alt aren't supported: from "Ctrl+Z" the advisor takes only the first letter — C.
  • If two functions get the same key, only one will fire: the advisor doesn't check for duplicates.
  • Esc cancels any action and can't be reassigned.

Other Magic Entry functions