Implemented a feature in [MT4] Optimum Lots to move the average entry price for multiple positions in one batch!
★Version 3.13 New Features★
Move multiple positions to break-even at once & sort the ticket list
There are times when you want to move the stop to break-even once the entered positions have grown to a certain extent.
Until now, the procedure was to set a stop at break-even for each position and input the price individually.
Moreover, when you want to move multiple positions to break-even, you had to reset the stop for each position one by one, which was cumbersome.
This feature is intended to simplify that process as much as possible; by selecting the move-to-break-even command, you can set the stop price to break-even for each position. (Technically, this accounts for the slippage set by the EA.)
Also, a sort function for the ticket list has been added.
Until now, the procedure was to set a stop at break-even for each position and input the price individually.
Moreover, when you want to move multiple positions to break-even, you had to reset the stop for each position one by one, which was cumbersome.
This feature is intended to simplify that process as much as possible; by selecting the move-to-break-even command, you can set the stop price to break-even for each position. (Technically, this accounts for the slippage set by the EA.)
Also, a sort function for the ticket list has been added.
Features
For each currency pair, it automatically calculates in real time the optimal lot size up to the drawdown you are willing to tolerate, and displays it.
For example, if you want to limit losses to 1% of excess funds and your planned stop loss is 20 pips, it will calculate the optimal lot size.
For example, if you want to limit losses to 1% of excess funds and your planned stop loss is 20 pips, it will calculate the optimal lot size.
As shown in the image, this tool real-time calculates and displays the optimal lot size for each currency pair corresponding to the quote currency, i.e., the pair’s base currency paired with the quote currency (representing the “***/AAA” format).


Above is MT4 UI, below is the external app UI.
| Balance | Account balance (net asset value) |
| Margin | Excess funds (assets not bound by open positions) |
| Acceptable max draw down | The amount of loss you are willing to tolerate in your own capital management |
| % | Percentage of loss you can tolerate from excess funds |
| pips | Drawdown (pips) you are willing to tolerate at entry |
| Error display | Contents |
| Appears when the acceptable drawdown in pips is smaller than the spread. It depends on the sample currency pair’s spread, so there may be no issue for the pair you actually plan to trade. If you raise the rank of the currency pair you want to trade in the quote display, it will be selected preferentially as a sample currency. | |
| No currency pair including the settlement currency is present in the quote display window. Please add currency pairs to the quote display. | |
| The configured acceptable loss % and pips indicate that there is not enough margin |
External Applications

Among the three buttons in the top-right of the GUI, pressing the ▲ button converts the real-time calculation tool into an external application.

This external application is configured to stay always on top, so even when MT4 is active, the UI will not hide behind the screen.
Also, only in this state can you display stop lines based on the pips you set and adjust the stop position by moving the lines.
When you close the external application, you automatically return to the GUI on the chart.
Also, only in this state can you display stop lines based on the pips you set and adjust the stop position by moving the lines.
When you close the external application, you automatically return to the GUI on the chart.
★ Show stop position
In the panel “Maximum acceptable drawdown” in arrows 1 on the figure below, checking “Draw S/L line” will display horizontal lines (arrow 2) a set number of pips above and below the current values on all MT4 charts.
As you adjust pips, the horizontal lines move in real time, making it easier to gauge the distance to the stop position.

★ Move the horizontal line to adjust the stop position
If you check “Set by line” in arrow 1 below, horizontal lines that can move up and down across all MT4 charts will appear.
In this state, you cannot input the stop pips on the external application; by moving the line, you can set a stop position that is not tied to the current price.

Below is an example for going long on USD/JPY, moving the stop to the last swing low below the current price (arrow 1).
Since it is 12.5 pips away from the current price of 110.839 to 110.714, that value is automatically reflected in the acceptable drawdown (pips) of arrow 2, and the optimal lot size for each settlement currency is calculated in that state.

★ Show take-profit position
In arrow 1 below, in the “Expected Return” panel, checking “Draw S/L line” will display horizontal lines (arrow 2) a set number of pips above and below the current values on all MT4 charts.
As you adjust pips, the horizontal lines move in real time, making it easier to gauge the distance to take profit.

★ Move the horizontal line to adjust take-profit position
If you check “Set by line” in arrow 1 below, horizontal lines that can move up and down across all MT4 charts will appear.
In this state, you cannot input the take-profit pips on the external application; by moving the line, you can set a take-profit position that is not tied to the current price.

Below is an example for shorting GBP/USD, moving the take-profit to the last swing high above the current price (arrow 1).
Since it is away from the current price of 1.32893 to 1.32389 by 50.4 pips, that value is automatically reflected in the expected return (pips) in arrow 2.
This value is not used for the optimal lot calculation but is used for risk-reward calculations.

★ Risk-reward display
If you check both the maximum acceptable drawdown and the “Draw ** line” in the Expected Return panel, the pips to take profit and stop loss are fixed, allowing you to calculate and display the risk-reward ratio.
- In cases where TP and SL track the current price, lines are drawn up and down around the current price, and the risk-reward ratio is calculated.

- In cases where TP/SL are fixed, the distance from the current price is calculated in real time to compute the risk-reward ratio.Therefore, in this case, the risk-reward ratio dynamically fluctuates.

One-Click Trading
Pressing the “Market Execution” button on the order panel on the screen switches to the speedy order entry screen.

★ Screen Description
- Lock/Unlock button
- Currency selection list box
- Bid button
- Ask button
- Close all sell positions button
- Close all buy positions button
- Place take-profit order simultaneously
- Place stop-loss order simultaneously
- Close all positions for the current pair
- Lot size to place
- Unlock optimal lot
- Total lots for the currently selected currency pair position
- Average rate for the currently selected currency pair position
- Pips for the currently selected currency pair position
- Unrealized P/L for the currently selected currency pair position
Toggle the lock/unlock state for one-click trading
On first unlock, a disclaimer is shown; once you agree to it, one-click trading becomes available.
The currency list from MT4 quotes is copied here. Select the currency you want to trade from here
Submit a market sell order
Submit a market buy order
Close all sell positions for the currently selected currency
Close all buy positions for the currently selected currency
Place take-profit orders at the same time as market orders
Place stop-loss orders at the same time as market orders
Close all positions for the currently selected currency pair
The calculated optimal lot is entered automatically
Temporarily stop auto-entry of the optimal lot and allow free lot input
Split Lot Entry★
Useful when you want to plan entries with limit orders rather than placing a single large lot far from the stop, to manage risk more precisely.
You can choose the split count from 1 to 7 and specify how many parts you want to split into.
Next, you input the position where you want to place the limit orders. The limit position is a percentage of the distance from entry to stop.
Finally, you input the proportion of lots to order at each limit position.
We also provide presets for equal intervals and a Fibonacci-based pattern, which you can use as templates for split-lot orders.
When you enable this feature and place a market order, it will appear as shown below: market order with limit orders in the stop direction.
Next, you input the position where you want to place the limit orders. The limit position is a percentage of the distance from entry to stop.
Finally, you input the proportion of lots to order at each limit position.
We also provide presets for equal intervals and a Fibonacci-based pattern, which you can use as templates for split-lot orders.
When you enable this feature and place a market order, it will appear as shown below: market order with limit orders in the stop direction.
IFO Orders

- Trading type
Decide the trading direction - New execution conditions
Choose limit (reversal at specified rate) or stop-entry (trend-following at specified rate) and enter the rate you want - Settlement execution conditions
Check the boxes to enable those execution methods. After checking, enter each rate. - Validity
Enter the order validity. Use local time here. The actual order will be corrected to MT4 server time. - MT4 line drawing
If you check Draw Line, new entry lines, limit lines, and stop lines will be drawn on MT4 charts.
If you check Set by line, you can set the order rate by moving the horizontal line on the MT4 chart. - Order placement
Place orders according to conditions 1–5.
Also, this button shows the order type image determined by the trading type and new execution conditions.
Ticket List


Right-click on this screen to display the context menu. (A corresponding button is also placed in the toolbar for similar functions.)
Clicking a ticket on this screen focuses that ticket (the blue line in the figure shows the focused state).
Right-click in this state to choose “One-click settlement/cancellation for the focused ticket” and “Modify order for the focused ticket.”
Also, when you check the checkboxes for each ticket, you can choose “Batch one-click settlement/cancellation of checked tickets” and “Batch order change for checked tickets.”
★ One-click Settlement/CancellationClicking a ticket on this screen focuses that ticket (the blue line in the figure shows the focused state).
Right-click in this state to choose “One-click settlement/cancellation for the focused ticket” and “Modify order for the focused ticket.”
Also, when you check the checkboxes for each ticket, you can choose “Batch one-click settlement/cancellation of checked tickets” and “Batch order change for checked tickets.”
Selecting this menu immediately issues settlement orders for already-ordered positions.
For limit/stop orders, those reservations are canceled immediately.
Also, you can close the order immediately by clicking the rightmost X (the usability is on par with MT4 itself).
If multiple tickets are selected and one-click settlement/cancellation is performed, settlement or order cancellation is done in bulk for the selected tickets.
★ Split SettlementFor limit/stop orders, those reservations are canceled immediately.
Also, you can close the order immediately by clicking the rightmost X (the usability is on par with MT4 itself).
If multiple tickets are selected and one-click settlement/cancellation is performed, settlement or order cancellation is done in bulk for the selected tickets.

If you enter the lot size you want to settle in split and press “Split Settlement,” it will settle only for the specified split lots.

If you select the Order Change menu, the screen above appears, and you can set the stop-loss (S/L) and take-profit (T/P).
・ Stop-loss checkbox
Check to enable stop-loss, and pressing the Change button after adjusting sets the stop-loss to that value.
If you do not check it and press Change, the stop-loss will not be changed.
Also, pressing the Set Break-even button copies the break-even value of that ticket into the numeric box.
・ Take-profit checkbox
Check to enable take-profit, and pressing Change sets take-profit to that value.
If you do not check it and press Change, the take-profit will not be changed.
Also, pressing the Set Break-even button copies the break-even value of that ticket into the numeric box.
If you select multiple tickets and perform an order change, you attempt to apply the same stop-loss and take-profit to all selected tickets.
If an order is failed due to entering a take-profit or stop-loss value near the current price, the change order will be invalid.
・ Stop-loss checkbox
Check to enable stop-loss, and pressing the Change button after adjusting sets the stop-loss to that value.
If you do not check it and press Change, the stop-loss will not be changed.
Also, pressing the Set Break-even button copies the break-even value of that ticket into the numeric box.
・ Take-profit checkbox
Check to enable take-profit, and pressing Change sets take-profit to that value.
If you do not check it and press Change, the take-profit will not be changed.
Also, pressing the Set Break-even button copies the break-even value of that ticket into the numeric box.
If you select multiple tickets and perform an order change, you attempt to apply the same stop-loss and take-profit to all selected tickets.
If an order is failed due to entering a take-profit or stop-loss value near the current price, the change order will be invalid.
Tick Chart
Clicking the Tick Chart button on the toolbar displays the tick chart for the currently selected currency.
MT4 Tester Support
Supports operation in the MT4 tester as well, so you can practice discretionary trading on holidays, etc.
× ![]()