TradeAssist Risk Panel MT5: Application Guide

TradeAssist Risk Panel MT5: Application Guide

29 May 2026, 04:35
Yang Yu Qun
0
34
TradeAssist Risk Panel MT5: Application Guide

Product: TradeAssist Risk Panel MT5
Version: v1.30
Platform: MetaTrader 5
Type: Manual trading utility / Expert Advisor

Market product link:
TradeAssist Risk Panel MT5 is a manual trading utility for MetaTrader 5. It does not provide trading signals, it does not predict market direction, and it does not decide when to buy or sell.

The trader makes the trading decision. TradeAssist helps with execution, risk calculation and position management.

Main features:

1. Account Balance, Equity, Spread, Lot, Risk, Margin and RR preview before opening a trade.
2. Entry / SL / TP chart planning lines.
3. Market Buy and Market Sell.
4. Buy Limit, Buy Stop, Sell Limit and Sell Stop pending orders.
5. Position management inside the current scope.
6. Partial Close.
7. BE Now.
8. Automatic Break Even.
9. Trailing Stop.
10. Position Details window.
11. Optional WeChat and Telegram notifications.
12. By default, TradeAssist manages only current chart symbol + TradeAssist magic number.

TradeAssist v1.10 is a lightweight free risk panel. It is not a full multi-symbol trading workstation. OCO orders, virtual orders, virtual SL/TP, advanced multi-target TP plans, time manager and multi-symbol dashboards are not included in v1.10.


Management Scope and Magic Number

TradeAssist uses InpMagicNumber to identify its own positions and pending orders.

Default management scope:

1. Current chart symbol.
2. Positions and pending orders with the configured TradeAssist magic number.

Manual positions are ignored by default. If you want TradeAssist to manage manual positions on the current symbol, enable:

InpManageManualPositions = true

Default safe settings:

InpManageManualPositions = false
InpAllowAccountWideActions = false

If you attach TradeAssist to multiple charts and want each chart to manage its own positions independently, use different magic numbers.


Trade Tab


The Trade tab is used for risk calculation, chart line control, market orders and pending orders.

Figure 1 item guide:

1. Balance
Shows account Balance. Balance does not include current floating profit or loss.
If InpUseEquityBase=false, Risk % mode uses Balance as the risk base.

2. Equity
Shows account Equity. Equity includes current floating profit or loss.
By default, InpUseEquityBase=true, so Risk % mode uses Equity as the risk base.

3. Symbol and Spread
Shows the current chart symbol and current spread.
Example:
Symbol EURUSD  Spread 9

Spread is shown in points. If InpMaxSpreadPoints is set and the current spread is above the limit, TradeAssist blocks new orders.

4. Trade tab
The current page. It is used for risk calculation, chart lines, Buy / Sell, market orders and pending orders.

5. Manage tab
Switches to the position management page. This page includes Position Details, close actions, Partial Close, Set SLTP, BE Now and Delete Pending.

6. Notify tab
Switches to the notification page. It includes Test WeChat and Test Telegram buttons.

7. Risk mode button and risk value input
The risk mode button cycles through three modes:

Risk %: calculates lot size from a percentage of Balance or Equity.
Money: calculates lot size from fixed risk money.
Lot: uses the lot size entered by the user.

The number in the input field depends on the selected risk mode:

Risk % mode: 1.00 means 1%.
Money mode: 1.00 means fixed risk money of 1 account currency unit.
Lot mode: 1.00 means 1.00 lot.

8. Lot and risk preview
Example:
Lot 12.24  Risk 3 672.00

Lot 12.24: planned order volume.
Risk 3 672.00: estimated loss if price reaches SL.

If the panel shows Lot -- Risk --, the risk calculation is invalid. Common reasons include missing SL, wrong SL direction, lot below broker minimum, insufficient margin or unavailable symbol properties.

9. Margin and RR preview
Example:
Margin 14 212.97  RR 2.00

Margin 14 212.97: estimated margin required for the planned lot size.
RR 2.00: Reward / Risk. It means the estimated reward is about 2 times the estimated risk.

10. Buy button
Opens a market Buy order.
When Lines are ON, Buy uses the chart SL and TP lines.
When Lines are OFF, Buy uses the default SL / TP point settings.
A confirmation dialog is shown by default.

11. Sell button
Opens a market Sell order.
When Lines are ON, Sell uses the chart SL and TP lines.
When Lines are OFF, Sell uses the default SL / TP point settings.
A confirmation dialog is shown by default.

12. Lines button
Shows or hides Entry / SL / TP chart lines.
When the button shows Lines OFF, the chart lines are hidden. Click it to turn Lines ON.

13. Buy Limit
Places a Buy Limit pending order. The Entry line must be below current Ask.
Entry, SL and TP chart lines are used as order price, stop loss and take profit.

14. Buy Stop
Places a Buy Stop pending order. The Entry line must be above current Ask.
Entry, SL and TP chart lines are used.

15. Sell Limit
Places a Sell Limit pending order. The Entry line must be above current Bid.
Entry, SL and TP chart lines are used.

16. Sell Stop
Places a Sell Stop pending order. The Entry line must be below current Bid.
Entry, SL and TP chart lines are used.

17. Magic number and manual position status
Magic 26050801: current magic number used by TradeAssist.
Manual OFF: manual positions are not included in management scope.

18. Status
OK Risk preview ready: current risk calculation is valid.


Risk Modes

1. Risk % mode
When the risk mode shows Risk %, the risk input number means a percentage of the selected account base.

Example:
Equity = 10,000
Risk input = 1.00
Risk budget = 100

If InpUseEquityBase=true, Equity is used.
If InpUseEquityBase=false, Balance is used.

2. Fixed Money mode
When the risk mode shows Money, the risk input number means fixed risk money.

Example:
Risk input = 100.00
Meaning = the planned maximum risk is about 100 account currency units

3. Manual Lot mode
When the risk mode shows Lot, the input number means direct order volume.

Example:
Risk input = 0.10
Meaning = use 0.10 lot

Manual Lot does not mean there is no risk. The panel still displays estimated risk, reward and RR according to Entry, SL and TP.


Manage Tab


The Manage tab is used to view and manage positions and pending orders inside the current scope.

Figure 2 item guide:

1. Position Details
Opens the Position Details UI window. Click again to close it.
The window displays ticket, direction, lots, entry price, SL, TP, points, P/L and magic number.

2. Position summary row
Example:
Positions 0  Points +0  P/L 0.00

Positions 0: number of positions inside the current management scope.
Points +0: weighted average profit/loss points of the positions inside the current scope.
P/L 0.00: floating profit/loss of positions inside the current scope.

3. Short position information
If it shows No TradeAssist Positions, there are no TradeAssist positions inside current symbol + magic scope.

4. Close Current
Closes matching positions on the current chart symbol. It does not process other symbols.

5. Close All
Closes all positions inside the current scope. By default, this is not an account-wide close. It is current symbol + magic scope.

6. Close Profit
Closes only positions with floating profit greater than 0 inside the current scope.

7. Close Loss
Closes only positions with floating loss below 0 inside the current scope.

8. Close 25%
Partially closes 25% of each matching position. Each position is checked against broker minimum volume and volume step.

9. Close 50%
Partially closes 50% of each matching position.

10. Custom partial close input
The value 50.0 means custom partial close percentage is 50%. It can be edited on the panel.

11. Custom %
Executes partial close using the custom percentage from item 10.

12. Set SLTP
Applies current chart SL / TP lines to existing positions inside the current scope. Direction, broker stop level and freeze level are checked before the action. A confirmation dialog is shown.

13. BE Now
Immediately attempts to move SL of matching positions to break-even. InpBreakEvenOffsetPoints is used as the offset.

14. Delete Pending
Deletes matching pending orders inside the current scope. A confirmation dialog is shown before execution.

Meaning of numbers on the Manage tab:

Positions 0: number of positions inside the current management scope.
Points +0: weighted average profit/loss points.
P/L 0.00: floating profit/loss.
25% / 50%: partial close percentage for each position.
50.0: custom partial close percentage.

All close, modify, BE Now and Delete Pending actions show a confirmation dialog by default. Check the affected count and scope before clicking Yes.


Position Details Window


The Position Details window is opened from the Manage tab. It is drawn by TradeAssist itself, not by a system MessageBox. The window can be dragged and does not close automatically.

Columns:

Ticket: position ticket, useful for finding the position in the MT5 Trade tab or logs.
Type: Buy or Sell.
Lots: current position volume.
Entry: position entry price.
SL: current Stop Loss.
TP: current Take Profit.
Pts: current profit/loss points. Buy uses Bid. Sell uses Ask.
P/L: current floating profit/loss money.
Magic: position magic number.

If there are no positions inside the current scope, the window shows that there are no positions.


Notify Tab


The Notify tab is used to test WeChat and Telegram notifications. Notifications are disabled by default and do not affect trading functions.

Figure 3 item guide:

1. Test WeChat
Sends a WeChat test message. It does not execute any trading action.
Notification inputs and WebRequest whitelist must be configured first.

2. Test TG
Sends a Telegram test message. It does not execute any trading action.
InpTelegramBotToken and InpTelegramChatId must be configured first, and Telegram WebRequest URL must be allowed.

Notification status example:
Notify WX OFF TG OFF Q0

Status meanings:

WX OFF: WeChat notification is disabled or not ready.
WX WAIT: WeChat notification is enabled but waiting for pairing or status confirmation.
WX PAIR: WeChat notification requires pairing.
WX ON: WeChat notification is enabled and available.
TG OFF: Telegram is disabled or token/chat id is incomplete.
TG ON: Telegram is enabled and required parameters exist.
Q0: notification queue contains 0 pending messages.

Before enabling notifications, add WebRequest URLs in MT5:

Tools -> Options -> Expert Advisors -> Allow WebRequest for listed URL

Common URLs:


Notification failures do not block Buy, Sell, Close, Set SLTP, BE Now, Partial Close or Trailing Stop.


Entry / SL / TP Chart Lines


When Lines are ON, the chart displays three base horizontal price lines: Entry, SL and TP. It also displays three label boxes and risk/reward zones.

Figure 4 item guide:

1. TP label
Example:
TP 166 | +3718.40 USD | RR 1.01 | 1.16647

TP 166: distance from Entry to TP in points.
+3718.40 USD: estimated profit if price reaches TP.
RR 1.01: estimated reward / estimated risk. 1.01 is close to 1:1.
1.16647: TP price.

2. Entry label
Example:
Buy | 22.40 | 1.16481

Buy: current planned direction. If SL is below Entry, it is recognized as Buy. If SL is above Entry, it is recognized as Sell.
22.40: calculated planned lot size.
1.16481: Entry price.

3. SL label
Example:
SL 164 | -3673.60 USD | 1.16317

SL 164: distance from Entry to SL in points.
-3673.60 USD: estimated loss if price reaches SL.
1.16317: SL price.

The green zone shows the reward area between Entry and TP.
The red zone shows the risk area between Entry and SL.

For a Buy plan:
SL < Entry < TP

For a Sell plan:
TP < Entry < SL

TradeAssist determines Buy or Sell by the relative position of SL and Entry.

The TP, Entry and SL label boxes can be dragged vertically. Dragging a label moves the corresponding price line. The horizontal lines themselves are not directly draggable. This reduces accidental changes on the chart.

How chart lines affect trading:

1. When Lines are ON, market Buy / Sell uses the current SL and TP lines.
2. When Lines are ON, Buy Limit / Buy Stop / Sell Limit / Sell Stop uses Entry, SL and TP lines.
3. When Lines are ON, Set SLTP applies the current SL and TP lines to existing positions.
4. When Lines are OFF, market orders use default SL / TP point settings.
5. For pending orders, it is recommended to turn Lines ON first.

Whether lines remain after order execution is controlled by InpKeepLinesAfterOrder:

InpKeepLinesAfterOrder = true: lines stay after successful order execution.
InpKeepLinesAfterOrder = false: lines are hidden after successful order execution.


Confirmation Dialogs

Order placement, close actions, Set SLTP, BE Now, Partial Close and Delete Pending show confirmation dialogs by default.

Confirmation dialogs usually include:

Action name: Buy, Sell, Buy Limit, Set SLTP, BE Now and so on.
Lots / Volume: order or close volume.
Entry / Price: market reference price or pending order Entry price.
SL: Stop Loss used by the order or modification.
TP: Take Profit used by the order or modification.
Affected count: number of positions, orders or volume affected.
Scope: the range that will be processed, such as current symbol + magic.

Click Yes to execute. Click No to cancel.

Recommended setting for new users:

InpConfirmTradingActions = true


BE Now, Automatic Break Even and Trailing Stop

1. BE Now
BE Now is executed once when the user clicks the BE Now button.
It attempts to move SL of matching positions to break-even.

2. Automatic Break Even
The EA checks whether floating profit points reach InpBreakEvenStartPoints. If yes, it attempts to move SL near the entry price.

For Buy positions:
Target SL = Entry price + InpBreakEvenOffsetPoints

For Sell positions:
Target SL = Entry price - InpBreakEvenOffsetPoints

3. Trailing Stop
The EA checks whether floating profit points reach InpTrailingStartPoints. If yes, it moves SL as price continues in the favorable direction, using InpTrailingDistancePoints.

For Buy positions:
Target SL = Bid - InpTrailingDistancePoints

For Sell positions:
Target SL = Ask + InpTrailingDistancePoints

Trailing Stop never moves SL in a worse direction:

Buy position SL will not move down.
Sell position SL will not move up.


Input Parameters

The following list explains the latest important inputs in program order. Separator titles are not listed.

Basic settings:

InpShowPanel
Default: true
Description: show or hide the main panel. If false, the EA can still run but the chart panel is not displayed.

InpLanguage
Default: TA_LANG_ENGLISH
Description: panel language. TA_LANG_ENGLISH means English. TA_LANG_CHINESE means Chinese.

InpConfirmTradingActions
Default: true
Description: show confirmation dialogs for trading actions. Recommended to keep true.

InpTimerSeconds
Default: 1
Description: timer interval in seconds. Used for panel refresh, risk preview refresh and notification queue processing.

InpMagicNumber
Default: 26050801
Description: magic number used by TradeAssist for orders and position management.

InpKeepLinesAfterOrder
Default: true
Description: whether Entry / SL / TP chart lines remain after successful order execution.

Panel interface:

InpPanelTheme
Default: TA_PANEL_THEME_AUTO
Description: panel theme. Auto, Dark and Light are available. Auto adapts to the chart background.

InpPanelCompactMode
Default: false
Description: compact mode for small charts, VPS, remote desktop or high DPI environments.

InpPanelFontSizeOffset
Default: 0
Description: font size offset. Program range is -3 to 2. Negative values make text smaller. Positive values make text larger.

InpPanelWidth
Default: 300
Description: panel width. Program range is 220 to 320.

InpShowButtonTooltips
Default: true
Description: show or hide button hover tooltips.

Management scope:

InpManageManualPositions
Default: false
Description: include current-symbol manual positions in management scope. If true, manual positions can be affected by Close, Set SLTP, BE Now, Partial Close and Trailing Stop.

InpAllowAccountWideActions
Default: false
Description: account-wide safety switch. The core default scope of v1.10 remains current symbol + magic.

Risk settings:

InpUseEquityBase
Default: true
Description: in Risk % mode, use Equity as risk base when true. Use Balance when false.

InpDefaultRiskMode
Default: TA_RISK_PERCENT
Description: default risk mode. TA_RISK_PERCENT means Risk %. TA_RISK_FIXED_MONEY means fixed risk money. TA_RISK_MANUAL_LOT means manual lot.

InpDefaultRiskPercent
Default: 1.0
Description: default risk percent for Risk % mode. 1.0 means 1%.

InpDefaultFixedRiskMoney
Default: 100.0
Description: default fixed risk money for Fixed Money mode.

InpDefaultManualLot
Default: 0.10
Description: default manual lot for Manual Lot mode.

InpDefaultSLPoints
Default: 300
Description: default stop loss distance in points when Lines are OFF.

InpDefaultTPPoints
Default: 600
Description: default take profit distance in points when Lines are OFF.

Manual management:

InpDefaultPartialClosePercent
Default: 50.0
Description: default custom partial close percentage.

Trade execution:

InpMaxSpreadPoints
Default: 0
Description: maximum allowed spread in points. 0 means spread filter is disabled.

InpDeviationPoints
Default: 20
Description: allowed deviation in points for trading requests.

Break Even:

InpBreakEvenEnabled
Default: true
Description: enable automatic Break Even.

InpBreakEvenStartPoints
Default: 200
Description: floating profit points required to trigger automatic Break Even.

InpBreakEvenOffsetPoints
Default: 20
Description: break-even offset in points. Buy target SL = entry + offset. Sell target SL = entry - offset.

Trailing Stop:

InpTrailingEnabled
Default: true
Description: enable Trailing Stop.

InpTrailingStartPoints
Default: 300
Description: floating profit points required to start trailing.

InpTrailingDistancePoints
Default: 150
Description: distance from current market price to target SL in points.

InpTrailingMinIntervalSeconds
Default: 1
Description: minimum interval between two trailing modifications for the same position.

Notifications:

InpNotificationsEnabled
Default: false
Description: master notification switch. When false, no WeChat or Telegram notifications are sent.

InpWeChatEnabled
Default: false
Description: enable WeChat notifications. Notification master switch and WebRequest whitelist are also required.

InpNotificationServerUrl
Description: WeChat notification server URL. Add this URL to MT5 WebRequest whitelist when WeChat notifications are enabled.

InpTelegramEnabled
Default: false
Description: enable Telegram notifications. Token and chat id are required.

InpTelegramBotToken
Default: empty
Description: Telegram bot token. Hide it before publishing screenshots.

InpTelegramChatId
Default: empty
Description: Telegram chat id. Hide it before publishing screenshots.

InpNotifyTimeoutMs
Default: 1500
Description: notification request timeout in milliseconds.

InpNotifyMaxRetries
Default: 1
Description: maximum retry count after notification failure. Notification failure does not block trading actions.


Common Messages

Invalid stops
SL or TP direction is wrong, or the distance to current market price is too small for broker stop level / freeze level.

Buy BE SL must be below Bid
For a Buy position, the new SL must be below current Bid. If the break-even price is too close to market price or above Bid, the broker rejects the modification.

Sell BE SL must be above Ask
For a Sell position, the new SL must be above current Ask.

close volume below minimum
The calculated partial close volume is below the broker minimum volume.

remaining volume below minimum
The remaining volume after partial close would be below the broker minimum volume.

WebRequest error 4014
The required URL is not added to MT5 WebRequest whitelist.

market closed
The current symbol market is closed or not tradable.


Usage Recommendations

1. Use a demo account for the first test.
2. Keep InpConfirmTradingActions=true until you are familiar with the workflow.
3. Do not enable InpManageManualPositions unless you clearly want TradeAssist to manage manual positions.
4. Do not reuse the same magic number on multiple charts unless you intentionally want them to manage the same positions.
5. Symbol tick value, minimum lot, maximum lot, volume step, stop level and freeze level can differ by broker and symbol.
6. Notifications are disabled by default. Notification failure does not block trading, but notification setup should be tested separately.
7. This utility helps with execution and risk display. It does not guarantee trading results.