Introduction to Undefeated Triangle MT4
Undefeated Triangle MT4 is an automated Forex trading Expert Advisor (EA) designed with a grid-based trading system, advanced lot management, and multiple risk protection mechanisms. The EA supports multi-currency trading and provides customizable settings for trade execution, position management, drawdown control, and additional grid entries.

Undefeated Triangle MT4 combines configurable grid distances, RSI-based conditions, spread and slippage filters, and dynamic position multipliers to manage trading activities. It also includes advanced features such as Smart Grid Distance, New Year trading restrictions, news-related Take Profit management, and account-level drawdown protection.
The EA offers flexible lot-sizing options, including a fixed lot of 0.01 and a Mid Risk 40% annual configuration. Its additional settings allow traders to customize trading hours, maximum open positions, notification thresholds, and chart display preferences.


General Settings
🔹 Short Name = Undefeated Triangle – Defines the EA's short identification name, which is used to identify the trading system in its chart interface and related information.
🔹 Print Logs On Chart = true – Enables the display of trading logs directly on the chart, allowing traders to monitor EA activities and relevant operational information.
🔹 Display Options = Display Regular – Selects the regular display mode for the EA's chart interface and informational elements.
🔹 One Chart Setup Pairs = AUDNZD AUDCAD NZDCAD – Specifies three currency pairs: AUDNZD, AUDCAD, and NZDCAD, for the EA's multi-pair chart configuration.
🔹 Magic = 346518 – Sets the EA's Magic Number to 346518, allowing its automated trading orders to be identified and managed separately.
🔹 No more Initial Trades (only grids) = false – Disables the restriction on initial trades, allowing the EA to open initial positions instead of limiting its operation exclusively to grid orders.
🔹 Symbols open same time = One Symbol – Sets the simultaneous symbol operation mode to One Symbol, controlling how the EA handles trading activity across multiple configured instruments.
Lot Size Calculation Settings
This section controls the EA's position sizing methodology, fixed trading volume, and account balance-based lot calculations.
🔹 Lot Sizing Method = Mid Risk 40% annual – Selects the Mid Risk 40% annual lot-sizing configuration, defining the chosen risk profile for the EA's trading volume calculations.
🔹 Fixed Lot = 0.01 – Sets the fixed trading volume to 0.01 lots when the fixed-lot calculation method is used.
🔹 Deposit load % = 0.55 – Sets the deposit load parameter to 0.55, which is used by the EA's internal position-sizing calculation.
🔹 Account Balance Step = 1000.0 – Defines an account balance calculation step of 1000.0 for the EA's balance-based lot-sizing mechanism.
Advanced Settings
This section contains informational labels and instructions intended for experienced users who want to customize the EA's internal strategy.
🔹 Advanced Settings – Experienced Users Only – Identifies the advanced configuration section as intended for traders who understand the EA's strategy and want to customize its parameters.
🔹 Advanced Settings – Custom Configuration – Indicates that additional strategy settings are created according to the requirements of experienced users.
🔹 Advanced Settings – Default Configuration – Recommends keeping the default settings for regular users because the existing configuration is already optimized according to the EA's instructions.
Spread and Slippage Filters
These parameters help control trading execution conditions by limiting the maximum acceptable spread and slippage.
🔹 Maximum Spread (points) for Execution by Market = 100 – Sets the maximum permitted market execution spread to 100 points, helping prevent new market orders when the spread exceeds the configured threshold.
🔹 Maximum Slippage (points) for Instant Execution = 100 – Sets the maximum acceptable slippage to 100 points for instant execution orders, controlling the permitted difference between requested and actual execution prices.
🔹 Allow checking spread for grid = true – Enables spread checking for grid orders, allowing the EA to evaluate current spread conditions before executing additional grid positions.
🔹 Last Bar Signal Reset (Pts) = 90 – Sets the signal reset distance to 90 points, defining the configured price-distance threshold used by the EA's signal reset mechanism.
Take Profit and Stop Loss Settings
This section manages the initial trade's Take Profit, Stop Loss, and account-based loss calculation.
🔹 Take Profit for Initial Trades (points) = 101 – Sets the Take Profit distance for initial trades to 101 points, defining the target price movement required for the EA to close an initial position in profit.
🔹 Stop Loss (points) = 10000 – Sets the Stop Loss distance to 10000 points, providing a configured price-based loss threshold for trade management.
🔹 SL by account % for each symbol (0 - off) = 0.0 – Disables the individual symbol Stop Loss calculation based on account percentage because the parameter is set to 0.0.
🔹 SL by Deposit Currency for each symbol (0 - off) = 0.0 – Disables the individual symbol Stop Loss calculation based on deposit currency, with 0.0 indicating that this monetary limit is inactive.
🔹 Calculate SL of = SL by account % – Selects the account-percentage method as the reference for calculating the Stop Loss configuration.
Symbol Drawdown Settings
These parameters control the floating drawdown limits for individual trading symbols.
🔹 Max Symbol Floating DD % (0 - off) = 0.0 – Disables the maximum floating drawdown percentage limit for an individual symbol because the configured value is 0.0.
🔹 Max Symbol DD at Deposit Currency (0 - off) = 0.0 – Disables the individual symbol drawdown limit measured in deposit currency, as the default value is 0.0.
🔹 If Symbol DD reach levels = NO MORE NEW GRIDS – Defines the protective action when an individual symbol reaches its drawdown threshold, preventing the EA from opening additional grid positions.
🔹 Margin Stop Out Close (MQL5 Validation) = true – Enables the margin Stop Out closing validation option, allowing the EA to apply its configured margin-related protection mechanism.
Overall Drawdown Settings
This section manages account-wide floating drawdown limits and defines the EA's response when the configured drawdown level is reached.
🔹 Max Floating DD % (0 - off) = 0.0 – Disables the maximum overall floating drawdown percentage limit because the configured value is 0.0.
🔹 Max DD at Deposit Currency (0 - off) = 0.0 – Disables the overall drawdown limit measured in deposit currency, with 0.0 indicating that this protection threshold is inactive.
🔹 Calculate Drawdown of = Undefeated Triangle EA (Magic) – Selects Undefeated Triangle EA (Magic) as the reference for calculating drawdown, allowing the EA to monitor positions associated with its Magic Number.
🔹 If DD reach levels = STOP & CLOSE 24h – Defines the protective action when the overall drawdown threshold is reached, instructing the EA to stop trading and close positions according to its 24-hour protection procedure.
Position Restriction Settings
These parameters control the maximum number of open positions and lot multipliers for subsequent trades.
🔹 Max Open Positions For Symbol = 9 – Limits the maximum number of open positions per symbol to 9, controlling the number of simultaneous trades managed by the EA.
🔹 2nd Position Multiplier = 1.0 – Sets the lot multiplier for the second position to 1.0, maintaining the same volume multiplier as the reference lot size.
🔹 3th-5th Position Multiplier = 2.0 – Sets the lot multiplier for the third through fifth positions to 2.0, increasing the configured trading volume multiplier for these subsequent entries.
🔹 6th Position Multiplier = 1.5 – Sets the lot multiplier for the sixth position to 1.5, defining its position-sizing multiplier within the grid strategy.
Additional Grid Conditions
This section provides additional controls for grid execution and customizable distance conditions.
🔹 Additional Grid Conditions = true – Enables additional grid conditions, allowing the EA to apply supplementary rules when determining whether new grid positions can be opened.
Smart Grid Distance Settings
Smart Grid Distance provides additional configuration for controlling grid spacing and activating new grid operations based on selected conditions.
🔹 Smart Grid Distance (points) = 350 – Sets the Smart Grid Distance to 350 points, defining the configured distance used by the EA's smart grid management system.
🔹 Activate additional gridding = "Smart Set" – Selects the Smart Set configuration for activating additional grid operations when the EA's specified conditions are satisfied.
🔹 "User Set" Points in 15M TF bar, to activate new gridding = 500 – Sets the user-defined grid activation distance to 500 points, referencing the 15-minute timeframe bar for the additional gridding configuration.
🔹 "User Set" Stop Grid Minutes = 60 – Sets the grid stopping interval to 60 minutes under the User Set configuration, defining the time-related parameter for grid activation management.
🔹 "User Set" Hard Deviation = 250 – Sets the hard deviation threshold to 250 points for the User Set grid configuration, controlling the specified deviation condition for additional grid operations.
RSI Settings
These parameters configure the RSI indicator used by the EA's trading conditions.
🔹 RSI Period = 20 – Sets the RSI calculation period to 20, determining the number of price periods used to calculate the Relative Strength Index.
🔹 Maximum RSI Value = 15 – Sets the maximum RSI value parameter to 15, defining the configured RSI threshold used by the EA's internal signal conditions.
New Year Filter
The New Year Filter allows the EA to restrict trading activity around the New Year period.
🔹 Skip New Year = true – Enables the New Year trading restriction, allowing the EA to avoid trading during the configured New Year exclusion period.
🔹 Start Days Before NY = 4 – Sets the New Year restriction to begin 4 days before New Year, defining the starting point of the configured trading exclusion period.
🔹 End Days After NY = 5 – Sets the New Year restriction to continue for 5 days after New Year, defining the end of the configured exclusion period.
News Settings for TP Removing
This section controls the EA's Take Profit removal functionality under specific news and high-spread conditions.
🔹 TP REMOVING DUE NEWS = false – Disables the automatic Take Profit removal functionality associated with news events.
🔹 TP REMOVE DUE HIGH SPREAD = false – Disables Take Profit removal based on high-spread conditions, meaning the EA does not activate this optional function by default.
🔹 TP REMOVING SPREAD LIMIT = 40 – Sets the spread threshold for the Take Profit removal mechanism to 40 points when the relevant functionality is enabled.
🔹 TP REMOVING PAUSE IN SECONDS = 60 – Sets the pause duration to 60 seconds for the Take Profit removal mechanism, defining the configured waiting interval between related operations.
Additional Positions Settings
These parameters control opposite positions, signal processing, currency restrictions, and additional Magic Number configurations.
🔹 Allow Opposite Positions = false – Disables the opening of opposite-direction positions, preventing the EA from using this optional position-management feature.
🔹 Each Tick Signal = true – Enables signal checking on every incoming price tick, allowing the EA to evaluate its trading conditions continuously during market activity.
🔹 Clear Comment Section = false – Disables automatic clearing of the comment section, allowing the EA's existing comment information to remain available.
🔹 Disable Trades on the Same Side of a Currency = false – Disables the restriction on opening trades in the same direction for a currency, allowing the EA to manage qualifying same-side trading opportunities.
🔹 Allow Additional Magics = false – Disables the use of additional Magic Numbers for the optional additional trading configuration.
🔹 Additional Magics for Disable Trades on the Same Side of a Currency = 1001:1002:1003 – Specifies the additional Magic Number identifiers 1001, 1002, and 1003 for the same-side currency trading restriction mechanism.
Allocated Account Balance Settings
This section provides account balance allocation controls for the EA's trading calculations.
🔹 Allocated Balance = false – Disables the allocated account balance feature, meaning the EA does not use the optional allocated balance configuration by default.
🔹 Allocated Balance % = 50.0 – Sets the allocated balance percentage parameter to 50.0%, defining the configured proportion when the allocated balance feature is activated.
Time Settings
These parameters define the EA's optional trading time filter and permitted trading hours.
🔹 Allow Use Time Filter = false – Disables the trading time filter by default, allowing the EA to operate without applying the optional time restriction.
🔹 Start Time Allow Open Positions = 02:00 – Sets the permitted trading start time to 02:00, defining when the EA can begin opening new positions if the time filter is enabled.
🔹 End Time Allow Open Positions = 22:00 – Sets the permitted trading end time to 22:00, defining the end of the configured period for opening new positions when the time filter is active.
Additional Filters
This section provides an additional market condition filter for the EA's trading strategy.
🔹 Filter Candle Power = true – Enables the Candle Power filter, allowing the EA to apply its internal candle-strength evaluation when assessing trading conditions.
Push Notification Settings
These parameters control account balance change notifications and the percentage thresholds used by the notification system.
🔹 Balance Change Notification = false – Disables balance change notifications by default, preventing the optional notification feature from activating automatically.
🔹 Activate Notification (%) = 10.0 – Sets the notification activation threshold to 10.0%, defining the configured percentage level at which the notification mechanism can be triggered when enabled.
🔹 Notification Step (%) = 5.0 – Sets the notification interval to 5.0%, defining the percentage increment between subsequent notification thresholds.
Display Table Settings
This section controls the dimensions and column layout of the EA's information table.
🔹 Panel Width = 235 – Sets the display panel width to 235, defining the horizontal size of the EA's information table.
🔹 First Column Percent Block 1 = 52.0 – Sets the first column percentage parameter for display block 1 to 52.0, controlling its configured column layout.
🔹 First Column Percent Block 2 = 61.0 – Sets the first column percentage parameter for display block 2 to 61.0, defining the column proportion for the second display block.
🔹 First Column Percent Block 3 = 77.0 – Sets the first column percentage parameter for display block 3 to 77.0, controlling the layout of the third display block.
🔹 Row Width = 20 – Sets the information table row width parameter to 20, controlling the configured horizontal layout of the display rows.
Display Text Settings
These parameters customize the font sizes used in the EA's chart interface and information panel.
🔹 Name Size = 14 – Sets the name text size to 14, controlling the font size used for the EA's displayed name.
🔹 Text Size = 10 – Sets the general information text size to 10, defining the font size for the panel's text elements.
🔹 Lot Font Size = 8 – Sets the lot information font size to 8, controlling the appearance of trading volume information within the display panel.
Conclusion
Undefeated Triangle MT4 is an automated trading system offering a comprehensive collection of grid trading, position sizing, and risk management parameters. Its configuration combines multi-currency trading support, adjustable grid distances, RSI conditions, spread and slippage filters, and customizable position multipliers.
The EA also provides individual symbol drawdown protection, overall account drawdown controls, New Year trading restrictions, and additional grid management features. With a maximum of 9 open positions per symbol and configurable position multipliers of 1.0, 2.0, and 1.5, traders can customize how subsequent positions are managed.
Although several protective features are available, the default configuration sets both individual and overall drawdown thresholds to 0.0, which disables those percentage and deposit-currency limits. Traders should carefully review these parameters and understand the grid strategy's potential exposure before using the EA on a live account.
