Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

KeyboardTrade - MetaTrader 4 Library | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

KeyboardTrade - library for MetaTrader 4

This tool is suitable for keyboard input transactions and supports "send orders", "set stop loss", "set take profit" and "close orders".

KeyboardTrade - library for MetaTrader 4

Buy 0.1 lots of EURUSD at 1.16000, set stop loss at 1.15500, and set profit at 1.17000

The command is:

The last "x" is to execute the command.

Only setting stop loss and take profit is supported.

If there is a EURUSD buy order, the stop loss is 1.1550 and the order is 123456789.

Now we set the stop loss to 1.1580 and the command is:

The last "x" is to execute the command.

If we want to close the position, the ticket number is 123456789

The command is:

The last "x" is to execute the command.


Attachment download

📎 keyboardtrade.mqh (40.81 KB)

📎 keyboardtradeeaexample.mq4 (1.91 KB)

📎 keyboardtradetesterhelper.mq4 (2.56 KB)

Source: MQL5 #21360

Verification code Refresh