Back to contents

Magic Entry · MT5 trade manager

Magic Entry look setup in the browser

This is the advisor’s own Look setup menu: the Night and Paper presets, the colour of each element, panel placement, sizes, chart labels and hot keys. The preview shows what changes as you click. Paste the finished look code into the LOOK_CODE input and Magic Entry takes this look.

TP3.0R
✕
✕
+SL
+TP
BE0.8R
BE+
SL1.0R !
Place take profit
LIMITQ
MARKETW
0.5%
1%
2%
DEFAULTS
DEFAULTS
5 min
OK
Positions
BUY 0.20 EURUSD
+$64.00
★
SELL 0.10 GBPUSD
−$21.40
BUY LIMIT 0.20
★ XAUUSD ×3
C
Close
+TP
BE
SL
TP
TRAIL
0.8 R
OK
TRAIL ▸
PLACED · BUY LIMIT 0.20

The site draws the preview after the advisor; colours, places and switches match, MT5 may draw some details a little differently. The look code is exact. Click a part to pick its colour.

Look setup

Custom
Placement
Size
Panel opacity

Colours

Pick an element, then its part (fill, text, border) and a tile.

Top panel frame

Look code

73 symbols

This code goes into the LOOK_CODE input. Paste a code of your own below to open it here.

How to load the code into Magic Entry

  1. Set up the look in the editor above and press Copy.
  2. In MT5 open the advisor’s properties on the chart (F7, or double-click the advisor’s name) and go to the Inputs tab.
  3. Paste the code into LOOK_CODE (group VISUAL STYLE) and press OK. The code starts with ML1; spaces and quotes around it do no harm.
  4. While LOOK_CODE holds a code, the look comes from it on every start. To go back to the advisor’s saved look, empty LOOK_CODE.

What the look code holds

  • Every section of the menu: top panel, positions and orders, chart labels and buttons, keyboard, general settings.
  • The colour of each part of each element from the menu’s palette, “no colour” for fills, or the theme’s colour.
  • A checksum guards the code: a damaged or cut-off code is refused by the advisor, which keeps the saved look.
  • A link to this page keeps the code in its address, so you can send a look to another trader.

What each look setting does

Everything that used to be the DEFAULTS MENU, PNL GUARD, HOT KEYS and VISUAL STYLE inputs. It is now the Look setup menu inside the advisor: the "?" button under the advisor name on the chart → SETUP. Below, the sections come in the same order as on the advisor's screen, and the Default column shows the values the advisor uses out of the box.

Commission, spread, MT5 lines, the "?" button, the look code, logs and the advisor number remain inputs (F7). Advisor inputs

Look setup

Every change shows on the chart at once: the advisor displays sample positions and orders that are never sent to the broker. Save stores the look, Cancel or Esc bring back the previous one, Reset all restores the out-of-the-box look.

  • LookpresetDefault: Custom

    Two ready-made looks from the advisor's author: Night and Paper. A preset sets the menu theme and the position theme, all look switches, panel placement and colors at once. Change anything and Custom lights up.

    • Night — solid dark plates, the selected button fills with amber. Paper — the same settings, but light plates, while position cards and chart labels are dark.
    • The out-of-the-box look matches neither preset, so Custom is lit on first launch. A preset changes only the look: keys, the DEFAULTS and GUARD buttons and the language stay as they were.
    • The six old themes (Monochrome, Ivory, Graphite, Olive, Burgundy and Monochrome Inverse) are still understood by the advisor in a look code and in look.cfg, but they cannot be chosen on screen.
  • ColourscoloursDefault: theme color

    Under each section's switches is a list of its elements: buttons, frames, cards, level lines, TP and SL zones. For an element you pick a part (fill, text, frame, line) and a color: one of 32 palette tiles.

    • Before the palette stands the "no color" tile: the fill is not drawn, while text, frames and lines remain. It exists only for fills, and not for all of them: the hovered button, the selected button and an active trailing lack it.
    • If a color reads poorly on its background or is too close to a neighboring one, the advisor warns you but does not stop you from choosing it.
    • An element's reset button brings back the theme color.
  • The look is stored in the MagicEntry\Look\look.cfg file and shared by all charts. Where the file lives is decided by the Save settings by Device(ON)/Terminal(OFF) input.
  • Values set in the inputs before version 4.0.2 are not carried over: after the update, set them again in the Look setup.
  • While the LOOK_CODE input is filled in, the look comes from the code, and changes in the Look setup are not saved.
  • The Look setup does not open while an entry or a level is being placed, and while it is open, hot keys do not work.

Top panel

The entry panel at the top of the chart: risk mode, LIMIT and MARKET, the DEFAULTS and GUARD groups, their menus and the message line below them.

  • Placementplace_ordersDefault: Left

    Where the entry panel sits: at the left edge of the chart, in the center or at the right edge. The arrow buttons on the panel itself are gone: the place is changed only here.

    • At an edge the panel sits slightly lower, below MetaTrader's own labels in the chart corners.
    • The DEFAULTS menu opens to the left of the panel, or below it if there is no room. The GUARD menu does the same, only on the right.
  • Sizeui_size_topDefault: Auto

    Size of the entry panel, its menus, the position detail panel, the close menu and messages. Presets are designed for screens from 720p to 2880p; Auto picks a preset by screen width and height.

    • AUTO: Full HD and 2K — 1440P, 4K — 2160P, 5K — 2880P.
    • There are now three sizes: for the top panel, for the positions at the bottom and for the chart labels — they are independent of each other.
    Size

    2160P: small elements. All presets at one scale, as if on one screen.

  • Panel opacitymenu_fill_transparencyDefault: 90%

    Fill opacity of the top panel: the entry panel with DEFAULTS and GUARD, their menus and the message line. From 100% — solid — to 0% — no fill, in steps of 10%. Text and frames stay opaque.

    • Positions and orders at the bottom take their own opacity — Card opacity, chart labels — Label opacity.
    Panel opacity

    100%: the top panel and its menus are solid.

Positions and orders

The bottom panel: position and order cards, groups, pinned cards and the position detail panel.

  • Placementplace_posDefault: Left

    Where the bottom panel with positions and orders sits: at the left edge, in the center or at the right edge. On the left it goes to the right of the pinned cards, and if it gets in the way of the entry panel, it shifts vertically.

  • Sizeui_size_positionsDefault: Auto

    Size of position and order cards, their headers and buttons, pinned cards and groups. The values and the Auto rule are the same as for the top panel.

  • Fill by profitposition_pnl_fillDefault: ON

    Position and group cards at the bottom of the chart are filled with the color of their result: the profit color from Position theme while the position is in profit, and the loss color while it is at a loss. At exactly zero the card looks normal. Turn it off and the cards are all one color again, like menu buttons.

    • The selected card keeps its color and gets a thick frame in the accent color.
    • It uses the position's profit as reported by the broker, excluding swap and commission; for a group, the sum of its positions.
    • Order cards don't change.
    • Profit and loss colors can be replaced with your own in this section's colors.
    Fill by profit

    ON: a card in profit is filled with the profit color, a card at a loss with the loss color. The selected one keeps its color and gets a frame in the accent color.

  • Card opacitylist_fill_transparencyDefault: 90%

    Fill opacity of the bottom panel: position and order cards, pinned cards, the position detail panel and the close menu. From 100% to 0% in steps of 10%. Text and frames stay opaque.

    Card opacity

    100%: position and order cards are solid.

Chart labels and buttons

How levels look on the chart and what their labels show. Out of the box a label shows only the level name and RR, and only TP and SL have a dashed line across the chart. The other label parts and lines are turned on here — they always come in the same order.

Label size
RR style
Price
RR
Points
Money
Volume

BUY 0.20 at 1.16420, stop 120 points. PT-1 closes 0.05 lots, the main take closes the remaining 0.15.

  • Placementplace_cardsDefault: Right

    Where the level column sits together with the TP and SL zones: on the right by the price scale, in the center or on the left. Prices do not change: each card stays at the height of its level, and the dashed lines still run across the whole chart.

    • On the left, the column sits to the right of the pinned cards and of the entry panel, if it is on the left too.
  • Sizeui_size_labelsDefault: Auto

    Size of level cards, line labels and chart buttons. The values and the Auto rule are the same as for the top panel; Label size adds a few more font points on top.

  • Position widthposition_widthDefault: Standard

    Width of the position column — the strip on the chart that holds the level cards and the profit and risk zones. Narrow — exactly as wide as the longest label with its buttons. Standard is 25% wider, Wide is 50% wider.

    • The column grows away from the edge it is attached to: on the right — to the left, on the left — to the right, in the center — both ways.
    • The level label stays at the left edge of the column and the action buttons at the right: only the empty space between them grows.
    • The profit and risk zones are always as wide as the column.
    Position width

    Standard: 25% wider. The column is attached to the price scale and grows to the left; the profit and risk zones are as wide as the column.

  • Label opacityfill_transparencyDefault: 100%

    Fill opacity on the chart: level cards, labels, action buttons, cancel buttons and the profit and risk zones. From 100% — solid — to 0% in steps of 10%: the lower it is, the better the candles show through them.

    • Text, frames and the dashed level lines stay opaque: at 25% mostly the outline of a zone remains.
    • The top panel and the positions at the bottom do not change — they have their own Panel opacity and Card opacity.
    Label opacity
    Layout

    100%: fills are solid. This parameter doesn't change menus and panels.

  • Label sizelabels_sizeDefault: Normal

    Size of line labels: Mini, Normal, Big, Huge, Max — each step is 2 font points larger. It is added to this section's Size and changes the labels, the buttons on them and the cancel crosses.

  • Layoutlabels_layoutDefault: Split

    How a level row is laid out in the position column. Split — the label is a separate bar at the left edge of the column, the action buttons are at the right, and the space between them is empty: the dashed level line and the chart show through. Joined — one solid card across the full column width: label on the left, buttons on the right.

    • In both styles you grab a level by its label: the three dots on the left are the drag handle.
    • In both styles, pending-order cancel levels are drawn as a card on the right and a row of crosses on the left.
    Layout
    Frame

    Split: the label is a separate bar at the left edge of the column, the buttons are at the right, and the dashed level line and the chart show between them. Labels frame has no effect in Split. In Night the Split bars, dashed lines and prices on the scale are near-black, in Paper near-white, so the scene has a contrasting chart background: the advisor doesn't change chart colors.

  • Framelabels_frameDefault: OFF

    Joined only. When on, each level card sits in its own frame in the theme's background color — this separates the cards from each other and from the candles. Turn it off and the cards are drawn without a frame, and the column gets a little narrower. In Split the switch is inactive.

  • Placelabels_placeDefault: On the line

    Where a level label sits relative to its price. On the line — centered on the line, the line runs through the label. Above — above the line: the bottom edge of the label rests on the line. Below — below the line: the label starts right under it.

    • The buttons on the label and the cross next to it move together with the label. Profit and risk zones, the line itself and the price on the scale stay in place.
    • Above and below the line, the line itself isn't covered by anything, and the level's price is easier to see precisely.
    • If levels are close together, labels spread apart the same way as in the center, and a shifted label gets a short leader line to its price.
    • The side is set for a buy: for a sell the labels are mirrored.
    Place

    On the line: the label sits centered on its price, and the dashed line runs through it. BE-TRG and BUY are close together — their labels are spread apart, and each has a short leader line to its price.

  • Plain textlabels_plainDefault: OFF

    A level label is just text in the level's color, with no bar, frame or three dots. The dashed line and the price on the scale take the same color. When you hover over or drag the level, the text is underlined. Action buttons and crosses stay as bars, as before.

    • Text colors come from Position theme: in Night the take profit is mint, the stop gray, entry and breakeven amber — on a light chart they are barely visible, so this look is meant for a dark chart. In Paper the text is dark and needs a light chart.
    • Pending-order cancel levels are drawn as usual.
    • Such a label has no fills, so Label opacity does not affect it.
    Plain text
    Look

    Night, OFF: labels are near-black bars with three dots; they need a light chart.

  • RR stylelabels_rr_styleDefault: Points

    How RR is calculated in labels. Points — the distance to the level divided by the initial stop. By volume — how much money the volume closed at this level will bring relative to the risk of the whole position: a partial take profit shows less, and the stop shows a minus.

  • Pricelabels_show_priceDefault: OFF

    Level price right after its name: "TP :: 1.16660". So you don't have to look for it on the price scale.

  • RRlabels_show_rrDefault: ON

    Reward-to-risk ratio: "TP | RR:2.00". RR isn't shown on the entry line.

  • Pointslabels_show_pointsDefault: OFF

    Distance from entry to the level in points: "SL | Pts:120.0".

  • Moneylabels_show_moneyDefault: OFF

    How much money the level makes or takes if price reaches it: "SL | $:-24.00". At the stop and take profits it counts the volume closed at that level, on the BE-TRG line the whole position; commission is included.

  • Volumelabels_show_volumeDefault: OFF

    Volume in lots: at entry — the whole position; at take profits and the stop — how much closes right there: "PT-1 | Vol:0.05".

  • TP and PTTlabels_line_tpDefault: ON

    A dashed line across the whole chart at the main take profit and the PT partial take profits, and the level price as a colored tag on the price scale on the right. The line is the same color as the level label.

    TP and PTT
    SL and PS
    Entry
    Breakeven
    Pending and cancel

    All lines on: a dashed line across the whole chart and each level's price on the scale on the right, in the same color as the label. Here it is a pending BUY: PENDING places the order, CNCL-1 removes it.

  • SL and PSlabels_line_slDefault: ON

    The same for the stop and PS partial stops.

  • Entrylabels_line_entryDefault: OFF

    The same for the BUY or SELL entry line — for a position, an order and a group (AVG BUY).

  • Breakevenlabels_line_beDefault: OFF

    The same for the BE-TRG and BE-OFST breakeven levels.

  • Pending and cancellabels_line_orderDefault: OFF

    The same for the pending order's trigger level and its cancel levels.

  • The five line toggles work in both label styles — Split and Joined — and when setting up a new trade.
  • With the line off, the level is marked only by its label, and there is no price on the scale. While the level is being dragged, the line is shown anyway.
  • Trailing never has lines: it is marked by a dashed frame from START to GAP.

Keyboard

Here you can replace the standard keys if they get in your way. The section draws a keyboard: marked keys are taken by actions. Click a key, then click the new key or press it — the action moves there.

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

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

  • Next order or positionhotkey_tabDefault: Tab

    Next position or order: selection cycles through the cards.

  • Place a LIMIT orderhotkey_limitDefault: Q

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

  • Place a MARKET orderhotkey_marketDefault: W

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

  • Set the main TPhotkey_tp_mainDefault: T

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

  • Add a partial TP (PTT)hotkey_tp_partDefault: P

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

  • Set the main SLhotkey_sl_mainDefault: S

    Move the main stop: the next click places SL.

  • Add a partial SL (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 the BE triggerhotkey_be_triggerDefault: B

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

  • Raise Close Now volumehotkey_close_now_addDefault: Z

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

  • Lower Close Now volumehotkey_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 the CANCEL levelhotkey_cancel_levelDefault: I

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

  • Only letters, the digits above the letters and Tab can be assigned. Numpad digits, Shift, Ctrl and Alt are not allowed.
  • If the new key is already taken by another action, they swap keys: one key never does two jobs.
  • You cannot leave an action without a key on the screen; all keys can be turned off at once with the Keyboard shortcuts switch.
  • While Ctrl is held, keys do not fire: Ctrl+C will not close a position.
  • Esc cancels any action and can't be reassigned.

General

  • Detalizationui_styleDefault: Normal

    Interface detail level. Compact — narrow buttons and short captions: LIMIT becomes L, MARKET — M, DEFAULTS — D, GUARD — G, BREAKEVEN — BE; the position card loses the time in trade, the order card loses the price, a pending order is labeled P-BUY instead of PENDING BUY, and the Fixed Lots mode — F-Lots. Normal — full captions and wide cards. Button height is the same in both modes.

    Detalization

    NORMAL: full labels, a wider card that shows time in trade.

  • Canvas hintsshow_canvas_hintsDefault: ON

    A hint banner under the entry panel, the same size. While you set up a trade or drag a level, it tells you what's happening and checks the volume. After Z, X and C it shows what share of the position closes and how much that is in lots and money. Turn it off and the banner doesn't appear.

    • The frame color is the status: volume is fine, cut by margin, or insufficient.
    • Messages about sending an order to the broker stay on even with hints turned off.
    • Clicking the banner itself works like Esc.
    All hint types
    Canvas hints

    Placing MARKET: the banner reminds you about Esc and checks the volume.

  • Languageui_languageDefault: Auto

    Language of buttons, menus, hints and labels on the chart: English, Russian, Portuguese (Brazil), Turkish, Spanish, Korean, Chinese, Japanese, German, French or Italian. Auto uses the MetaTrader terminal language; if that language isn't available — English.

    • Trading codes are not translated in any language: SL, TP, BE, PTT, PT-1, RR, BUY, SELL, and the buttons on level cards.
    • If a translation doesn't fit on a button, the advisor slightly reduces the font.
    • Parameter names on the Inputs tab stay in English.
    Language

    Auto uses the MetaTrader terminal language — here the language of this page takes its place. Buttons and panel headers are translated, while SL, TP, BUY and the buttons on level cards stay in Latin letters.

  • DEFAULTS buttontp_defaults_menuDefault: ON

    Shows the DEFAULTS group to the left of the entry panel: the button and the switch below it. The button's menu sets the scheme every new trade opens with: the main take profit, PTT partial take profits with volume shares and breakeven. Turn it off and the group disappears, and the entry panel gets narrower.

    • On first launch the scheme is: main take profit 3R, PTT at 1R and 2R with a third of the volume each, breakeven at 0.8R with a $1 offset.
    • In Fixed Lots the scheme isn't available: such a trade has no stop.
    • The button appears and disappears at once, but which scheme applies to new trades the advisor decides at startup.
    DEFAULTS button

    ON: the DEFAULTS group sits to the left of the entry panel.

  • Use last defaultsuse_last_defaultsDefault: ON

    Works only when the DEFAULTS button is off. If on, new trades still get the saved scheme — take profits, PTT and breakeven: this chart's scheme or, if there is none, the last one saved in the menu. If off — or no scheme was ever saved — trades open with a stop only.

  • GUARD buttonshow_btn_guardDefault: OFF

    Shows the GUARD group to the right of the entry panel, mirroring DEFAULTS. It appears only while there are open positions. The menu sets a drawdown limit in $ or in % of balance: Current — for open positions, Daily — for the trading day; Acc — the whole account, Ticker — this symbol only.

    • When drawdown hits the limit, Magic closes the positions, turns protection off and locks trading for the time set in the next parameter.
    • If you hide the button, protection that was already on keeps working — you just don't see it.
    GUARD button

    ON: the GUARD group sits to the right of the entry panel while there are open positions.

  • GUARD wait, minutesguard_wait_minutesDefault: 5

    How many minutes Magic stays locked after protection triggers: all panels turn semi-transparent, buttons don't respond, and the chart shows "Guard locked". When time is up, the lock lifts by itself, but protection has to be turned on again.

    • From 0 to 1440 minutes; 0 — no lock.
  • GUARD day start, hourguard_day_start_hourDefault: 0

    Trading day start hour in broker server time, 0 to 23. In Daily mode drawdown is counted from this hour: closed trades plus open positions, with positions opened earlier counted from the price at the start of the day. Not used in Current mode.

  • Look codelook_codeDefault: ML1…

    At the end of the section is the look code: the whole setup in one line that starts with ML1. Save code writes it to the log (Experts tab) and to the MagicEntry\Look\look-code.txt file, Save as… to a file with a name of your choice.

    • The code goes into the LOOK_CODE input — on another chart, in another terminal or with another trader, and the advisor takes on the same look.
    • Copy the line from the log with the Copy context-menu command: Ctrl+C does not work there. Keep the part starting with ML1.
    Build a look code on the site