Derbies
- Whole period
- 2 years
- 1 year
- 6 months
- 3 months
- 1 month
About EA's Strategy
Thank you for viewing.
「DERBIES」 is a grid-nanpin EA developed with AUDCAD as its main operation.
All parameters are fully unlocked, with no currency pair restrictions. You can operate according to your own budget and objectives.
DERBIES is an EA aimed at people like the following.
「I’m looking for an EA that lasts longer rather than chasing big profits」
「No matter what EA I buy, it ends up stopping operation eventually」
「Even with a grid EA, I want to operate while keeping risk in mind as much as possible」
「I want to adjust the EA parameters to match my operating style」
DERBIES is not a “get-rich-quick EA.” It is developed as a grid EA that can operate for a long time while monitoring unrealized losses.
DERBIES is equipped with various logics, among which the notable ones are the “Dual Logic System” and the “Unrealized P&L Calculation” feature.
We will explain each in detail.
What is the “Dual Logic System”?
Grid EAs can increase profits greatly depending on settings, but increasing risk also raises the risk of ruin. Conversely, overly suppressing risk tends to reduce the appeal of profits.
Therefore DERBIES adopts a “Dual Logic System” that includes the same logic twice. Each is divided into “A System” and “B System,” and low-risk parameters selected through backtest optimization are allocated to A and B. This allows two low-risk trades to operate simultaneously.
In other words, instead of chasing high profits with high-risk settings, two low-risk parameter sets operate at the same time, and the combined result aims for stable operation. This is the basic concept of DERBIES and the origin of the EA name.
Normally, to run the same EA with different parameters you would need multiple EAs, but DERBIES completes this within a single EA.
○ An example of trades (15-minute chart)
What is the “Unrealized P&L Calculation”?
For grid EAs, it is crucial not only to monitor maximum drawdown but also to check how much unrealized loss you are bearing during operation. Even if backtest results trend upward, some cases carry large unrealized losses. In other words, judging an EA's quality solely by maximum drawdown can be dangerous.
Many grid EAs allow you to view maximum drawdown in backtests, but few allow you to see unrealized losses. You can view unrealized losses with Rock-riser, but it is paid.
Therefore DERBIES includes an unrealized P&L calculation to assess real-time risk during live operation. After backtesting finishes, it outputs how much unrealized loss exists from the MT4 logs. This makes real-time risk management very clear.
A portion of the actual MT4 log
In addition, unrealized loss calculation is performed on a “basket” basis.
What is a “Basket”?
A basket counts all positions including multiple grid additions from the initial position as one. It treats multiple positions in the same direction as one group. This is defined as a basket.
The unrealized loss calculation feature enables you to confirm “how much unrealized loss” and “how many times the set unrealized loss levels were reached” on a basket basis. It briefly explains what is output to MT4 logs.
・For each buy/sell basket of System A and System B, log the maximum unrealized loss, the date/time when the maximum unrealized loss occurred, and the price at that time.
・Parametric settings provide Basket Loss Level 1, Basket Loss Level 2, Basket Loss Level 3 (arbitrary amount adjustable). The number of times each Basket Loss Level is reached is counted automatically.
For example, if Basket Loss Level 1 is set to 50,000 yen, Level 2 to 100,000 yen, and Level 3 to 200,000 yen, you can check how many times each unrealized loss line was reached.
Furthermore, when A System and B System are run simultaneously, the combined unrealized loss can also be checked. This allows you to understand not only unrealized loss per individual logic but also how much unrealized loss occurred in A/B combined, enabling risk management closer to real operation.
Also, DERBIES determines take-profit and stop-loss at the basket level based on the average entry price and total profit/loss of all positions in the same direction. Therefore, even if some individual positions are in the red, if the basket as a whole meets the take-profit condition, all positions in the basket are closed together.
Position 1: unrealized loss
Position 2: unrealized loss
Position 3: unrealized profitPosition 4: unrealized profit
Even in such a state, if the total profit of the four positions meets the take-profit condition, all positions within the basket are closed.
※ Unrealized P&L calculation is based on MT4 account currency P&L.
※ For a yen account, unrealized loss is displayed in yen.
※ Since each currency pair has different pip value and price movement characteristics, adjust the basket loss level values according to the operating currency pair and fund size.
※ Basket statistics and A/B combined unrealized loss statistics are mainly for backtesting analysis. In real trading operation, to reduce processing load and log output, it is recommended to operate with “false.”
Full parameter details (A/B common parameters)
・Allowed slippage (pips)※
Specify allowed slippage in pips for new entries, grid additions, and EA-driven exits. Reducing the value helps prevent unfavorable fills, but depending on market conditions, orders may not fill.
・Allowed spread (pips)※
Specify the maximum spread allowed for new entries and grid additions. If the current spread exceeds this value, the EA will not trade. Used to suppress trading during times when spreads widen, such as early morning or around news releases.
・Summer GMT ※
Specify the GMT offset of the broker server during summer time. Used to correctly determine Japanese-time trading prohibited hours.
・Winter GMT ※・DST mode ※
Specify the GMT offset of the broker server during winter time. Used to correctly determine Japanese-time trading prohibited hours.Choose the daylight saving time switch method (European/US). Aligning with the broker server time ensures the Japan-time trading prohibitions are reflected correctly throughout the year.
・Trading prohibition start time ※
Specify the start time for stopping new entries in Japan time.
Example: 4 means trading is prohibited from 4:00 Japan time.
・Trading prohibition end time ※
Specify the time to resume new entries in Japan time.
Example: 8 means trading becomes possible from 8:00 Japan time.
・Allow grid additions during prohibition time ※
Specify whether to allow grid additions on existing positions during prohibition time.
true: grid additions are allowed during prohibition time. false: grid additions are not made during prohibition time.
・Buy magic number
Magic number to identify buy positions. Used to distinguish from other EAs and sell positions.
・Sell magic number
Magic number to identify sell positions. Managed with a separate number from buy positions.
・Order comment
Comment attached to orders. Used to easily identify the EA's orders in trading history.
・Initial lot
Specify the lot size for the initial entry. The lot size for grid additions is based on this and calculated by the lot multiplier.・Buy/Sell direction
Choose the EA's trading direction from four options.
Stop: stop new entries. Long_Short: trade both buy and sell. LongOnly: buy only. ShortOnly: sell only.
・TP (pips) 0=disabled
Close the entire basket for a profit when the average entry price moves in the favorable direction by the specified pips.
Example: If set to 20 pips, the entire basket is closed when profit reaches 20 pips from the overall average price including grid-added positions.
・SL (pips) 0=disabled
Close the entire basket when the price moves against the favorable direction by the specified pips from the average entry price.Example: If set to 100 pips, the basket closes when it moves 100 pips against the overall average price including grid-added positions.
・TP (Profit Amount) 0=disabled
If the total profit of positions in the same direction reaches the specified amount, close the entire basket. Includes swaps and fees in the profit calculation.
・SL (Loss Amount) 0=disabled (use negative)
If the total profit of positions in the same direction falls to the specified amount or less, close the entire basket. Use a negative value to set the amount.
Example: To set -50,000 yen, enter “-50000”.
・NANPIN interval (time)
Specify the minimum elapsed time from the last entry before performing the next grid addition. If the specified time has not passed, grid additions will not occur even if price conditions are met.
・Maximum number of positions
Specify the maximum number of positions that can be held in the same direction. When this number is reached, no further grid additions are made.
・NANPIN interval (pips)
If the price moves against the previous entry by the specified pips, perform the next grid addition.
Example: If set to 20 pips, the next grid addition will occur when the price moves 20 pips against the previous entry price.
・Lot multiplier
Specify how many times larger the lot size should be for grid additions compared to the previous lot.
Example: 1.5 means the next lot is calculated based on 1.5 times the previous lot. Auto-adjustment is performed to fit each broker’s minimum lot and lot step, so the calculated value may differ from the actual order lot.
・Last 2 lots customization
You can specify the lot sizes for the last two positions. As grid additions accumulate, the total number of positions grows, and late positions can lead to ruin. This option helps control that, but overly restricting it reduces the grid’s effectiveness.
true: use customized lots for the last two positions. false: calculate with the normal lot multiplier.
・Last 2nd lot
Specify the dedicated lot to use for the position just before the maximum number of positions. Only valid if “Customize last 2 lots” is true.
・Last lot
Specify the dedicated lot to use for the final position reaching the maximum number of positions. Only valid if “Customize last 2 lots” is true.
・Entry mode
Choose the method to determine new entries from three options.
Mode EMA: Decide using EMA. Mode ADX: Decide using ADX. Mode BB: Decide using Bollinger Bands.
・Entry decision interval
Specify the time frame used to determine entries.
Example: 5 means entry decisions are made on a 5-minute chart.
・EMA period
Specify the calculation period for EMA. Smaller values react more to short-term price movements; larger values emphasize long-term direction.
・EMA applied price
Choose the price used for EMA calculation from the following.
Close, Open, High, Low
・EMA decision reversal
Specify whether to reverse the buy/sell decision based on EMA.
false: perform normal decision. true: reverse the buy/sell direction.
・ADX period
Specify the calculation period for ADX. Used to assess the strength of the trend.
・ADX trend decision
Decide trend strength using the ADX value. Only if ADX is below this value is a new entry allowed, indicating a weak trend.
・BB period
Specify the calculation period for Bollinger Bands. Smaller values react to short-term price movements; larger values make the bands more stable.
・BB deviation (σ)
Specify the deviation that sets Bollinger Band width. Larger values widen the bands, reducing entry frequency.
・Use step TP
If the number of held positions reaches a specified amount, switch to a different take-profit condition called stepped TP. As grid additions increase position count, small price movements can cause large profit/loss changes. This feature aims to efficiently increase profits.
true: use stepped TP. false: do not use stepped TP.
・Total positions for stepped TP activation
Specify the number of held positions required to enable stepped TP. When the number of positions in the same direction reaches this value or more, the system evaluates closes under stepped TP conditions instead of normal TP.
・Stepped TP (pips) 0=disabled
Specify the profit width in pips used when stepped TP is activated.
・Stepped TP (profit amount) 0=disabled
Specify the amount of profit used when stepped TP is activated. If the total profit of positions in the same direction reaches the specified amount, close the position.
・Enable B System
Turn on/off the B System.
true: run both A and B systems. false: run only the A system.
Important
DERBIES is adjusted based on market data from approximately the last 10 years. Market conditions change over the years, and volatility and price-movement characteristics differ significantly from 20 years ago. Therefore, rather than trying to cover all historical markets, this design prioritizes current market environments.
That said, it is also necessary to verify whether the EA logic holds under long market conditions. Therefore, parameters and backtest results selected from a long-term backtest from 2008-05-01 to 2026-05-01 are shown here. If you want to emphasize long-term adaptability, please consider using these parameters. 。
※ For EA purchasers, a parameter SET file is included.
【Others / Cautions】
※ Gold, Silver, Crude, Stock indices, and cryptocurrencies are not supported. ※ Exotic currency pairs are not recommended due to wide spreads, swaps, and liquidity concerns. ※ If using with currencies other than AUDCAD, please be sure to backtest and test on a demo account beforehand. ※ Since this EA is a grid-nanpin type, unrealized losses can increase depending on market conditions. Operate with sufficient margin capacity. ※ We operate on a swap-free account. Backtesting is performed at times when swap points for both buy and sell are zero. ※ Amount-specific parameters and unrealized P&L calculation are account-currency based. For JPY accounts, it is in yen; for USD accounts, in dollars. If you want to set an equivalent to the JPY setting for a USD account, please adjust by the USD/JPY rate. Example: 2,000 yen ÷ 160 yen = 12.5 dollars