Magic Keys: Installation and Usage Manual
Magic Keys: Installation and Usage Manual
INSTALLATION MANUAL 1
Installation and Usage manual 1
Software installation 3
Mac installation - USB binding 4
Virtual Box 4
Parallels Desktop 5
Metatrader 8
Linking 8
Setup 9
Troubleshooting 10
cTrader 12
Installation 12
Setup 12
Parameters 16
INSTALLATION MANUAL 2
Software installation
Note: if your antivirus is blocking the launch of the of the app, you will need
to add it to the white list of app. Low level routines are used to read signals
from the M.Keypad.
Attention: if you are on a Mac, refer to the relative section of this manual
Note: insert the USB receiver you will find on the back of the M.Keypad
Note: remember to turn on the switch on the back of the M.Keypad
INSTALLATION MANUAL 3
Mac installation - USB binding
1. Perform the same steps as described in the first part of the manual
Software installation
• On the virtual machine, you won’t be able to get the CONNECTED
status unless the USB receiver is bound directly to the Windows
virtual machine
2. Proceed to the Virtual Box or Parallels subsection
Virtual Box
INSTALLATION MANUAL 4
4. Press the Add button: a window showing all of your usb connected
devices will appear on the screen; select the M.Keypad usb driver and
add it to the device filters list
5. Start the Windows Virtual Machine; the device status on the Magic Keys
App should now be CONNECTED
Parallels Desktop
INSTALLATION MANUAL 5
3. Select the Hardware tab, then the USB & Bluetooth tab, and ultimately
click on USB Connection Preferences
INSTALLATION MANUAL 6
5. At this point you are ready to start the virtual machine
6. Start the Windows Virtual Machine; the device status on the Magic Keys
App should now be CONNECTED
INSTALLATION MANUAL 7
Metatrader
Linking
1. Press the Link MT button on the Magic Keys app; a dialog box will
appear
INSTALLATION MANUAL 8
NOTE: You probably have only MetaTrader Terminal folder. You can find out terminal identifier folder by pressing
“Open data folder” in the File menu on MetaTrader (look at the folder path).
4. Selecting the correct folder will result in the following alert showing
Setup
1. Open Metatrader
2. Ensure MagicKeys appeared under Expert Advisors in the Navigator
Window
Note! Use CTRL+N to toggle the Navigator Window
INSTALLATION MANUAL 9
Note: If you want to have this checks always ticked, go to MetaTrade Options and modify the relative settings
(Tools -> Options…); Tick Allow automated trading and Allow DLL imports in the Expert Advisor tab
Note: To quickly change EA settings you can press F7 on your keyboard and the parameters dialog will pop op.
Note: For a quicker access we invite you to create your custom chart template with EA added and the
parameters set as you wish. Remember that the EA will keep its state between MT platform restarts; if you do
not close you charts before exiting MetaTrader you will get charts and configurations exactly how you left them.
Attention: Magic Keys EA uses only uses bid price. Make sure your charts are drew based on bid price.
Attention: Magic Keys EA is intended to be used with only one market direction per instrument (either bullish or
bearish). If multiple long and short trades are present on the same symbol, behaviour might be different for
some functionalities.
Troubleshooting
Remember! Always check the Experts logs tab from your terminal window
to identify what is wrong
• Cannot call “libzmq.dll” Probably some libraries are missing from your
Windows installation. To resolve the issue you should install the
Microsoft official software that includes missing libraries. You can find
INSTALLATION MANUAL 10
the installation executable inside the Extra folder. Use the one relative
to your Metatrader version (vc_redist_MT4 or vc_redist_MT5)
• NUM key should be active You need to have num key active to use the
functionalities that have a direct impact on your orders. The Magic
Keypad has a blue LED indicator in the top right corner (under the lock
sign) which shows your Num status. It should be switched on to
perform actions on trades.
• Magic Keys app should be open in the background and the status
should be Connected. We advise you to use the Auto start at startup
feature
INSTALLATION MANUAL 11
cTrader
Installation
1. Inside the downloaded directory, under cTrader, there are two .algo files
• MagicKeys.algo
• MagicKeyBot.algo
Double click on both to add them to your cTrader platform
Setup
For Magic Keys to work on cTrader two distinct components are necessary:
• The bot which forwards the signals from the M.Keypad to the broker
(one only always running instance)
• The indicator which has to be added to each chart
1. Open cTrader
2. From the Automate section, select the cBots tab, and locate
MagicKeysBot
INSTALLATION MANUAL 12
4. Press the play button to activate the bot
5. If the bot is not running orders will not be sent out to the broker. To
ensure the bot is always running even after the platform is restarted,
open Settings
INSTALLATION MANUAL 13
Now that the cBot set up and running, you can proceed to adding the
indicator on the charts. This procedure has to be repeated on each
chart where you want to use Magic Keys.
Remember that triggers like partial TP and partial SL are carried over
on charts with the same symbol. Therefore, having the triggers visible
on multiple charts for the same trades will mean that they are
triggered multiple times when target price is reached.
8. Open a new chart or select a chart in the Trade section of the platform
INSTALLATION MANUAL 14
10. The selected chart which will get signals from the M.Keypad is
indicated by the following sign:
• To select a chart, click once on it; it will stay selected until a new
chart is selected
Note: Restarting the platform will also result in the indicators restarting automatically. If you do not close the
charts before closing cTrader, on restart everything will be ready to use immediately after the workspace is
loaded.
INSTALLATION MANUAL 15
Parameters
Pips range for closed trades to be considered BE – In the STATS panel, trades
will be categorised into winning, losing and breakeven. With this parameter you
can customise which trades will be considered closed at breakeven based on the
P/L pips from entry price.
Eg. If set to 2, a trade that has been closed with a 2 pips loss or a 2 pips profit will
be considered a breakeven trade.
Exposure indication at risk % – By settings these two parameters you will get a
string on your screen while placing the trade saying that you are over leveraging
your account.
Use risk % of account to calculate lot size per order – Do you want dynamic lots
sizing based on a risked amount of money (percentage of account balance or
equity) or do you want do you want a fixed lot size for every trade?
% or risk per order – What amount of money (expressed in percentage) from
your account balance do you want to risk on the trade? Values go from 1 to 100.
Should equity or balance be used for the calculation – The % amount risked on
the trade should be from account balance or equity?
Fixed lot size – If not using dynamic lot sizes, this lot size will be used for each
trade you open.
Min and max lots – These values are a limit to the minimum and maximum lots
allowed per trade when using account percentage based risk. If set properly they
prevent you from opening positions with a stop loss size tighter than usual or too
large.
Max price slippage – The maximum difference between the price you want your
position to be entered at and the entry price the broker is offering.
Pips in profit when SL moved @entry – Defaults at 0 which means your stop
loss will be set exactly at the entry price. If higher then 0 then the stop loss level
will placed that amount of pips in profit when SL @entry is pressed.
Pips in profit when TARGET moved @default – Defines at which amount of pips
from entry the target should be moved to when the TARGET @default button is
pressed. Remember that the target changes based on the action you are taking.
% of position to close on CLOSE CUSTOM – What percentage of your trade
INSTALLATION MANUAL 16
position do you want to close when pressing CLOSE CUSTOM key. This is a value
between 0 and 100.
Eg. 75 for 75% of position lots
% of position to close on when Partial TP/SL is hit – When the partial TP/SL
trigger is activated, what % of the position do you want to be closed
automatically?
RR to move TARGET @1:x – Defines at which risk-reward the target should be
moved to when the TARGET @1:x button is pressed. Remember that the target
changes based on the action you are taking.
Partial TP/SL initial pips distance – If you have an average/default pips amount
of profit at which you take out part of your position, by setting this parameter to
that pips amount you will be able to quickly activate the Partial TP/SL trigger. You
can also drag the line to a specific price point.
Auto BE on partial TP – If set to true, when the partial TP price is reached, the
stop loss will be automatically moved to BE.
Auto BreakEven initial pips distance – If you have an average/default pips
amount of profit at which you move your stop loss to entry price, by setting this
parameter to that pips amount you will be able to quickly activate the Auto BE
trigger. You can also drag the line to a specific price point.
Alert on Partial TP/SL/AUTO BE hit – Do you want to be notified (on-screen alert
+ sound) when trigger price is reached?
Play sound when a Magic Keypad button is pressed – Auto explanatory
Placement of dynamic labels and fixed position – These will be useful for
keeping the indicator labels in a place you are comfortable with
Line colors – Change them to customise your chart appearance
EA magic number – Trades opened with the Magic Keypad can be marked with a
magic number value
INSTALLATION MANUAL 17