Selecting input data, minimum balance, and leverage for the "Onyx MT5" and "Onyx MT4" advisors

Selecting input data, minimum balance, and leverage for the "Onyx MT5" and "Onyx MT4" advisors

8 апреля 2026, 22:29
Aliaksandr Chupryna
0
20

The "Onyx MT5" Expert Advisor consists of four set blocks with different settings that operate independently. Buy Stop and Sell Stop pending orders are placed at the previous day's high and low.

For the Expert Advisor to function correctly, it's necessary to select the correct balance between deposit, leverage, and input parameters. The tables below help you select the appropriate set file based on the lot calculation method.

Lot calculation parameters:

"MinLot": valid if Lot = Fixed_Lot.

"Multiplicity_for_Lot": applied if Lot = Dynamic_Lot and Lot_calculation_method = Lot_from_Balance. Every Multiplicity_for_Lot deposit unit increases the Lot by 0.01. For example: Balance = 1500, Multiplicity_for_Lot = 100, Lot = 0.15.

"Risk percent (%) of equity": applied if Lot = Dynamic_Lot and Lot_calculation_method = Risk_percent_of_equity. The Lot is calculated so that when all positions are closed by stop-loss (the maximum possible minus profit), the drawdown does not exceed the declared percentage of available funds.

You can use a files.set that matches your leverage and balance (screenshots with the test results of the files.set data are shown below):

SetFile Leverage  Minimum balance
Onyx_4sets_lev_500_MinDep_150.set  from 1:500 and above from 150 and above
Onyx_lev_500_MinDep_50.set  from 1:500 and above from 50 and above
Onyx_lev_100_MinDep_150.set  from 1:100 and above from 150 and above
Onyx_lev_20_MinDep_1000.set  from 1:20 and above from 1000 and above
Onyx_lev_100_MinDep_300_SL10000.set  from 1:100 and above from 300 and above

It's important to check the balance, leverage, and input parameter values ​​during testing. This can be done by enabling the "Risk Management Info Panel" when testing in visual mode. The panel will notify you of any discrepancies. It is also recommended to keep the panel enabled when trading on a live account. If the "margin" changes over time, you will see this in the message.

For example:
At the beginning of 2025, with a price of 2500 (XAUUSD), leverage of 1:100, and a lot size of 0.01, opening one pending order requires $25 in available equity.
Currently (beginning of 2026), the price of gold is 5000, and the required equity is $50.
With leverage of 1:500 and a lot size of 0.01, the required equity is $10.

When testing, set the required deposit and leverage :

Onyx_Deposit

For ease of translation from English using a translator, the messages in the panel are numbered, and I will duplicate them here:


"Input data corresponds to equity and leverage. Trading is allowed."

Onyx_Panel_0


 Warning No 1
 Potential Stop-Loss losses =  -180
 with Multiplicity_for_Lot = 150
 exceed the maximum permissible = -150
 Trading is impossible
 Recommended : 
     -- or increase the Multiplicity_for_Lot parameter
     -- or top up the balance
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_1


Warning No 2
 Potential Stop-Loss losses =  -216
 with Multiplicity_for_Lot = 150
 exceed the maximum permissible = -150
 Trade is possible 2 sets
 Recommended : 
     -- or disable the remaining sets

     -- or increase the Multiplicity_for_Lot parameter
     -- or top up the balance
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_2


 Warning No 3
 Potential Stop-Loss losses =  -180
 with MinLot = 0.01
 exceed the maximum permissible = -150
 Trading is impossible
 Recommended : 
     -- 
or reduce the MinLot parameter
     -- or top up the balance
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_3


 Warning No 4
 Potential Stop-Loss losses =  -198
 with MinLot = 0.01
 exceed the maximum permissible = -150
 Trade is possible 1 set
 Recommended : 
     -- or disable the remaining sets
     -- 
or reduce the MinLot parameter
     -- or top up the balance
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_4


 Warning No 5
 Equity required to open all orders = -2096
 with Multiplicity_for_Lot = 150
 This exceeds Equity: 150
 Trading is impossible
 Recommended : 
     -- or increase leverage
     -- or reduce the MinLot parameter

Onyx_Panel_5


 Warning No 6
 Equity required to open all orders = -209
 with Multiplicity_for_Lot = 150
 This exceeds Equity: 150
 Trade is possible 2 sets
 Account leverage 1 : 100

 Recommended : 
     -- or top up the balance

     -- or increase leverage
     -- or increase the Multiplicity_for_Lot parameter

Onyx_Panel_6


 Warning No 7
 Equity required to open all orders = -2092
 with MinLot = 0.01
 This exceeds Equity: 150
 Trading is impossible
 Account leverage 1 : 10

 Recommended : 
     -- or increase leverage
     -- or reduce the MinLot parameter

Onyx_Panel_7


 Warning No 8
 Equity required to open all orders = -418
 with MinLot = 0.01
 This exceeds Equity: 150
 Trade is possible 1 set
 Account leverage 1 : 50

 Recommended : 
     -- or disable the remaining sets

     -- or increase leverage
     -- or reduce the MinLot parameter
     -- or top up the balance

Onyx_Panel_8


 Warning No 9
 Potential Stop-Loss losses =  -180
 with Risk_percent = 10
 exceed the maximum permissible = -15
 Trading is impossible
 Recommended : 
     -- 
or reduce the Risk_percent parameter
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_9


 Warning No 10
 Potential Stop-Loss losses =  -198
 with Risk_percent = 10
 exceed the maximum permissible = -60
 Trade is possible 1 set
 Account leverage 1 : 50

 Recommended : 
     -- or disable the remaining sets
     -- 
or reduce the Risk_percent parameter
     -- or, if possible, reduce Stop-Loss

Onyx_Panel_10


 Warning No 11
 Equity required to open all orders = -1133448
 with Risk_percent = 100
 This exceeds Equity: -60000
 Trading is impossible
 Account leverage 1 : 20

 Recommended : 
     -- or increase leverage
     -- 
or reduce the Risk_percent parameter

Onyx_Panel_11


 Warning No 12
 Equity required to open all orders = -112025
 with Risk_percent = 100
 This exceeds Equity: -60000
 Trade is possible 2 sets
 Account leverage 1 : 200
 Recommended : 
     -- or disable the remaining sets
     -- or increase leverage
     -- or or reduce the Risk_percent parameter

Onyx_Panel_12


                                                                    Test results                                                                          

Onyx_4sets_Dinamyc

Onyx_1

Onyx_2

Onyx_3

Onyx_5