Omega Triple Engine
- Experts
- Versione: 8.0
- Attivazioni: 10
Omega Triple Engine
Three entry modules with adaptive volume and basket-level position management.
Overview
Omega Triple Engine is a MetaTrader 5 Expert Advisor that combines three independent entry modules, an adaptive volume model and basket-level position management. Each entry module uses its own magic number, so its positions can be identified separately. The Expert Advisor operates on the symbol attached to the chart and uses only standard MetaTrader 5 trade functions.
Entry modules
Smart Inventory
The module measures short-term directional bias from a linear regression over a configurable number of closing prices on the current chart timeframe. It also maintains a 32-tick mid-price pressure value. A buy position is opened when the bias is neutral or positive and the pressure is above +0.10. A sell position is opened when the bias is neutral or negative and the pressure is below -0.10. The number of simultaneous positions of this module is limited.
Momentum module
On each closed M1 bar, the module compares the bar body with a trigger level equal to the greater of 10 points and a configured share of ATR(14). When the body exceeds the trigger, one market order is placed in the direction of the bar. New orders are skipped when the current spread is above the configured limit.
Trend cross module
The module observes an EMA crossover on the selected timeframe. When a cross occurs, the calculated volume is divided into several market orders. The module limits its total number of positions.
First-tick entry
When enabled, the Expert Advisor places one market order on the first tick after it is attached, provided it has no open positions of its own. The direction follows the current tick pressure.
Volume model
Volume is derived from a reference lot scaled by account equity using a configurable exponent. A signal-quality multiplier and a volatility multiplier adjust the result. After a configured drawdown threshold is exceeded, volume is gradually reduced. The final volume is limited by a share of free margin, by a per-order cap and by the symbol contract specifications and by a conservative internal cap on same-direction exposure. A fixed volume mode is available for each module.
Risk controls
New orders are skipped when the account margin level is below the configured floor, or when the required margin is above 90% of free margin.
Positions are opened without individual stop loss or take profit levels. Risk management is applied to the group of positions instead. A basket module records realized and floating results for all positions of the Expert Advisor on the symbol. When the net result reaches the activation threshold, the module maintains a trailing floor. If the net result returns to that floor, all positions of the Expert Advisor on the symbol are closed. A separate net loss limit closes the same group of positions when the result falls below the configured amount. A partial close manager reduces a position by a configured fraction once its floating profit reaches the configured amount.
Input parameters
Identity and modules
SI_Magic, MA_Magic, MB_Magic - magic numbers assigned to each module.
EnableSmartInventory, EnableModuleA, EnableModuleB, EnableFirstTickEntry - switch the entry modules on or off.
Volume
Lot_AutoSizing - enables the adaptive volume model.
Lot_BaseVolumeRef - reference volume used before multipliers.
Lot_EquityRefUSD - reference account equity.
Lot_EquityExponent - exponent applied to the equity ratio.
Lot_QualityGamma, Lot_SignalMultMin, Lot_SignalMultMax - signal-quality multiplier settings.
Lot_ATRReference - reference ATR used to normalize volume across symbols.
Lot_DrawdownThresholdPct, Lot_DrawdownMaxReduction - drawdown volume dampening.
Lot_MaxMarginAllocationPct - maximum share of free margin used for one order.
Lot_MaxLotPerOrder - hard volume cap per order.
Lot_FixedLot_SI, Lot_FixedLot_MA, Lot_FixedLot_MB - volumes used in fixed mode.
Basket management
Basket_Enable - enables basket management.
Basket_ActivationUSD - net result level at which the trailing floor starts.
Basket_InitialFloorUSD - initial floor level.
Basket_GivebackPct, Basket_MinGivebackUSD, Basket_MaxGivebackUSD - floor trailing distance settings.
Basket_MaxLossUSD - maximum net loss allowed for the group of positions.
Basket_RecalcMs - calculation interval in milliseconds.
Entry modules
SI_MaxConcurrent - maximum positions of the Smart Inventory module.
SI_AnalysisBars - number of closing prices used for the linear regression.
A_MaxOrders - maximum positions of the Momentum module.
A_MomentumTriggerATRRatio - ATR share used in the trigger.
A_MaxSpreadUSD - maximum allowed spread.
B_TF - timeframe of the EMA cross module.
B_FastMA, B_SlowMA - EMA periods.
B_MaxOrders - maximum positions of the cross module.
B_MicroBullets - number of orders used to split one calculated volume.
Position management
MGR_Enable, MGR_ProfitThresholdUSD, MGR_CloseFraction - partial close settings.
Execution
MinMarginLevelPct - minimum margin level allowed for new orders.
DeviationPoints - allowed slippage in points.
Usage notes
Attach the Expert Advisor to a chart and enable automated trading. A hedging account is required so that positions of the three modules remain separate. The Expert Advisor manages only positions with its own magic numbers on the attached symbol. Check input values against the broker contract specifications before use.
Risk note
Trading involves risk. The behavior of an automated strategy does not predict future results.
