Utility · MT4

One-Click Trade Pro

by EarnForex

One-Click Trade Pro is a position management and execution panel for MetaTrader 4.

GitHub stars8
Forks8
Last update3 years ago19 May 2023
LicenceApache-2.0
Latest release1.063 years ago

Overview

One-Click Trade Pro provides a robust graphical interface to open market and pending orders with one click. Users can execute trades via standard buttons, chart-based lines, or opposite order distance settings. The tool calculates optimal lot sizes based on percentage risk relative to account balance, equity, or free margin. It also serves as a trade manager, allowing users to browse open positions, modify stop loss and take profit levels, and view magic numbers.

Details

Author

EarnForex on GitHub

Type

Utility

Platform

MetaTrader 4 (MQL4)

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Trades without a fixed stop loss

Topics

chartexpert-advisorforexforex-marketforex-tradinginterfacemetatradermetatrader4mql4mt4

Input parameters

Read from MQLTA MT4 One-Click Trade Pro.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Comment_1string====================One-Click Trade
IndicatorNamestringOCTPIndicator Name (used to draw objects)
Comment_2string====================Default Settings
DefaultMarketPendingDEF_MARKPENDMarketDefault Type of Order
DefaultLotSizedouble1Default Lot Size
DefaultLotStepdouble1Default Increment/Decrement of size
MaxLotSizedouble100Maximum Allowed Position Size
DefaultSLByDEF_SLByPtsDefault Stop Loss Type
DefaultSLPtsint0Default Stop Loss in Points
DefaultTPPtsint0Default Take Profit in Points
DefaultMagicint0Default Magic Number
DefaultCommentstringDefault Comment
Show all 40 inputs
NameTypeDefaultDescription
DefaultRiskPercdouble2Default % of Risk
DefaultRiskBaseDEF_PERCCALCBalanceDefault Risk Calculation Base
DefaultTakeScrenshotboolfalseDefault Take Screenshot Option
ScreenshotResSCRSHOT_RESCURRENTDefault Screenshot Resolution
DefaultOrdersPerPageint10Default Orders per page to show
Slippageint10Slippage (in Points)
ShowMsgboolfalseEnable Order Confirmation Message
UseRecommendedboolfalseAlways Use Recommended Size When Available
Comment_2astring====================Additional Default For Pending Opposite
DefaultPendingOppStartModeENUM_PENDING_START_PRICE_MODEPENDING_START_CURRENTDefault Start Price
DefaultPendingOrderSideENUM_PENDING_SIDEPENDING_BUYSELLDefault Pending Order Side
DefaultPendingOrderTypeENUM_PENDING_TYPEPENDING_STOPDefault Pending Order Type
DefaultPendingBuyPriceENUM_PRICE_FOR_PENDINGPRICE_ASKDefault Price Used For Buy Pending
DefaultPendingSellPriceENUM_PRICE_FOR_PENDINGPRICE_BIDDefault Price Used For Sell Pending
DefaultPendingOrderDistanceint500Default Pending Order Distance
Comment_2bstring====================Additional Default For Lines Order
DefaultOrderLineSideENUM_LINE_ORDER_SIDELINE_ORDER_BUYDefault Order Side
DefaultOrderLineTypeENUM_LINE_ORDER_TYPELINE_ORDER_MARKETDefault Order Type
LineOpenPriceColorcolorclrGrayOpen Price Line Color
LineSLPriceColorcolorclrRedStop Loss Price Line Color
LineTPPriceColorcolorclrGreenTake Profit Price Line Color
LineStyleENUM_LINE_STYLESTYLE_DASHLine Style
Comment_4string====================Colors and Position
OpenBuyColorcolorclrGreenOpen Buy Order Color
OpenSellColorcolorclrRedOpen Sell Order Color
Xoffint20Horizontal spacing for the control panel
Yoffint20Vertical spacing for the control panel
NOFontSizeint8Font Size

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/One-Click-Trade-Pro from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Position Sizer

by EarnForex
594 stars

This risk management tool for MetaTrader 4 and 5 calculates optimal lot sizes based on user-defined risk parameters, account balance, and currency. It provides a graphical user interface for setting entry, stop loss, and take profit levels visually on the chart. The expert advisor accounts for commissions, swaps, and m

MT4MT5 Utility
Updated 8 days ago Apache-2.0 GitHub repository of Position Sizer

NNFX Backtest C1

by goncaloe
34 stars

NNFX Backtest C1 is a specialized utility for MetaTrader 4 designed to evaluate external confirmation indicators using the No Nonsense Forex methodology. It enables users to backtest custom indicators by defining signal logic such as two-line crossovers, zero-line crosses, or histogram changes. The system manages risk

MT4 Utility Trend followingIndicator crossover

Chart Pattern Helper

by EarnForex
34 stars

This utility for MetaTrader 4 and 5 automates trade execution based on trader-defined chart patterns. Users draw trendlines, horizontal lines, or channels, which the expert advisor monitors to place pending breakout orders. It handles trade entries, stop losses, and take profits according to specific object naming conv

MT4MT5 Utility Breakout
Updated 1 year ago Apache-2.0 GitHub repository of Chart Pattern Helper
18 stars

LediaEA Trading Assistant is a MetaTrader 4 utility designed to facilitate manual trade execution and risk management. It provides a graphical interface for calculating lot sizes based on a fixed currency amount or a percentage of account balance or equity. The tool automatically detects order types, including market a

MT4 Utility
Updated 6 years ago None stated GitHub repository of LediaEA Trading Assistant

Trading Signals

by CDrosos
10 stars

A notification utility for MetaTrader 4 that monitors multiple technical indicators to generate trade alerts. It tracks moving average crossovers, specifically the 50 and 200 periods, along with Relative Strength Index levels, Bollinger Band breakouts, and MACD confirmations. Users can configure the tool to send notifi

MT4 Utility Indicator crossoverMean reversion
Updated 4 years ago None stated GitHub repository of Trading Signals

Timed Order

by EarnForex
10 stars

Timed Order is a utility expert advisor that schedules market or pending orders to be executed at a specific time. It supports one-time execution or daily recurring trades on specified days of the week. The EA allows setting stop-loss and take-profit levels using fixed prices, point distances, ATR multipliers, or sprea

MT4MT5 Utility
Updated 1 year ago Apache-2.0 GitHub repository of Timed Order

More utilities

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers