cTrader allows custom hotkeys for most trading actions, which makes it popular with manual scalpers. A well-planned mapping can save seconds and reduce mis-clicks.
Common actions to map:
Buy and sell market with the default volume.
Close all positions on the current symbol.
Close all positions on the account.
Reverse the current position.
Move stop to break-even.
Cancel all pending orders.
Good practice:
Keep buy and sell keys apart to avoid confusion.
Map destructive actions (close all, reverse) to key combinations, not single keys.
Set default volume carefully, ideally to your standard risk.
Practise on demo until the mapping is automatic.
MT4/MT5 have fewer native hotkeys, but third-party panels add similar features.
Do you use hotkeys for trading, and which actions are mapped?
FXS Prop Desk wrote: Fri Oct 09, 2026 6:40 am
cTrader allows custom hotkeys for most trading actions, which makes it popular with manual scalpers. A well-planned mapping can save seconds and reduce mis-clicks.
Common actions to map:
Buy and sell market with the default volume.
Close all positions on the current symbol.
Close all positions on the account.
Reverse the current position.
Move stop to break-even.
Cancel all pending orders.
Good practice:
Keep buy and sell keys apart to avoid confusion.
Map destructive actions (close all, reverse) to key combinations, not single keys.
Set default volume carefully, ideally to your standard risk.
Practise on demo until the mapping is automatic.
MT4/MT5 have fewer native hotkeys, but third-party panels add similar features.
Do you use hotkeys for trading, and which actions are mapped?
Hello,
For a price action scalper operating on the 1-minute and 5-minute charts, where order book liquidity sweeps happen in milliseconds, standard mouse clicks are a structural disadvantage. A well-architected hotkey setup doesn't just save time; it eliminates the cognitive load of navigating UIs during high-volatility moves.
Here is how an advanced, extended mapping strategy looks when elevating native platform features with custom script logic:
The Tactical Hotkey Architecture
Instead of strictly mapping static "Buy" and "Sell" buttons, advanced setups map keys by intent, risk, and trade management.
Bridging the MT4/MT5 Gap
While cTrader natively supports much of this out of the box, MetaTrader requires a programmatic approach to achieve the same execution speed. Because native hotkeys in MT4 and MT5 are largely restricted to chart navigation and launching indicators, the standard solution is to write custom Expert Advisors using the OnChartEvent function.
By programming a script to listen for specific CHARTEVENT_KEYDOWN keystrokes in MQL5, you bypass the MetaTrader graphical interface entirely. When you press a designated key, the script catches the event and sends the execution command directly to the broker server, effectively replicating cTrader's native speed on the MetaTrader backend.
But on another hand i know at least two full time scalpers, who trade just from mobile phone.
Because they like, that you can be out and trade everywhere, because one of very important component in trading is to have cool mind.
Here is the MQL5 Expert Advisor script using the standard CTrade library. It listens for specific ASCII key codes via OnChartEvent to trigger immediate execution.
For this implementation:
B (Key Code 66): Executes a Market Buy.
S (Key Code 83): Executes a Market Sell.
C (Key Code 67): Closes all active positions for the current chart symbol.
CHARTEVENT_KEYDOWN: This is the core event listener. MetaTrader passes the physical key's ASCII integer value into the lparam argument.
Reverse Iteration on Close: The CloseAllCurrentSymbol() function loops backward (i = PositionsTotal() - 1; i >= 0; i--). Because closing a position dynamically shrinks the total position count, looping forward would cause index out-of-bounds errors or skipped orders.
Focus Requirements: The MetaTrader chart running the EA must be the active, focused window for OnChartEvent to register the keystrokes.
Auto Trading: This must be compiled as an Expert Advisor, not an Indicator. The "Algo Trading" button in the MT5 terminal must be enabled, and the EA properties must have "Allow Algo Trading" checked.
This implementation introduces dynamic position sizing by calculating the exact lot size required to risk 1% of the account balance based on the current ATR distance.
It handles the necessary conversions using the symbol's tick value and tick size, ensuring the math works across forex, metals, and equities. The ATR is sampled from the last closed candle (index 1) to prevent the stop-loss distance from fluctuating wildly mid-tick when the hotkey is pressed.
Risk per Lot Calculation: The formula (slDistanceInPrice / tickSize) * tickValue translates the physical price distance of the ATR into the exact monetary risk that a single standard lot would incur. This prevents sizing errors when transitioning between pairs with different quote currencies or moving from FX to indices.
Step Lot Normalization: MathFloor(rawLot / stepLot) * stepLot ensures the calculated lot size adheres to broker limits (e.g., preventing an order of 0.125 lots if the broker only accepts 0.01 increments).
Integrated Stop Loss: Because risk is defined by the ATR distance, the script now automatically places a hard Stop Loss at Entry ± (ATR * Multiplier). Without this hard stop, the 1% risk calculation would be theoretical rather than enforced.