Name of the EA: League of Pyramid The EA use the Indicator "Imba Algo" as main entry. The Indicator has buy and sell signals. Also a trend line. //+------------------------------------------------------------------+ //| INPUT PARAMETERS | //+------------------------------------------------------------------+ //=== GENERAL SETTINGS === input group "═══════════════════════════════════" input group "📌 GENERAL SETTINGS" input group "═══════════════════════════════════" input int InpMagicNumber = 789456; // Magic Number input string InpTradeComment = "Pyramid AI"; // Trade Comment input string InpIndicatorName = "Imba Algo"; // Indicator Name (without .ex5) input double InpSensitivity = 18; // Indicator Sensitivity (15-18) //=== SYMBOL SETTINGS === input group "═══════════════════════════════════" input group "🔧 SYMBOL SETTINGS" input group "═══════════════════════════════════" input bool InpAutoDetectSymbol = true; // Auto Detect Suffix/Prefix XAUUSD=GOLD / US100 = USTECH and so on input string InpSymbolSuffix = ""; // Manual Symbol Suffix (if not auto) input string InpSymbolPrefix = ""; // Manual Symbol Prefix (if not auto) //=== TIMEFRAME SETTINGS === input group "═══════════════════════════════════" input group "⏱️ TIMEFRAME SETTINGS" input group "═══════════════════════════════════" input ENUM_TIMEFRAMES InpSignalTimeframe = PERIOD_M5; // Signal Timeframe input bool InpUseMTFFilter = true; // Use Multi-Timeframe Filter input ENUM_TIMEFRAMES InpFilterTimeframe = PERIOD_H1; // Filter Timeframe (Higher TF) Explanation: When multi timeframe is activated the EA checks if the higher timeframe trend is the same-when yes open the Trade- when not then the EA don´t open the Trade //=== RISK MANAGEMENT === input group "═══════════════════════════════════" input group "💰 RISK MANAGEMENT" input group "═══════════════════════════════════" enum RISK_MODE { RISK_BREAKEVEN_PYRAMID, // Breakeven Pyramid (Recommended) RISK_FIXED_SPLIT // Fixed Split (Equal Total Risk) }; input RISK_MODE InpRiskMode = RISK_BREAKEVEN_PYRAMID; // Risk Management Type input double InpTrade1RiskPercent = 1.0; // Trade 1 Risk Percent input double InpTrade2RiskPercent = 0.7; // Trade 2 Risk Percent input double InpTrade3RiskPercent = 0.5; // Trade 3 Risk Percent input double InpMaxDailyLossPercent= 5.0; // Max Daily Loss Percent (for propfirm trading important) input double InpMaxDrawdownPercent = 15.0; // Max Drawdown Percent (from peak) When the EA has the daily loss reached then the EA don´t open new trades this day.After new day 03:00 the EA will start open positions again. //=== PYRAMID SETTINGS === input group "═══════════════════════════════════" input group "📊 PYRAMID SETTINGS" input group "═══════════════════════════════════" input bool InpEnablePyramiding = true; // Enable Pyramiding input int InpMaxPositions = 3; // Max Pyramid Positions (1-5) input int InpPyramid1TriggerPips= 30; // Pyramid 1 Trigger (Pips from entry) input int InpPyramid2TriggerPips= 60; // Pyramid 2 Trigger (Pips from entry) input bool InpRequirePullback = false; // Require Pullback to Trendline input bool InpAutoBreakevenPyramid=true; // Auto Breakeven on Pyramid Entry Trade Logic: Importan when Pyramiding ist not activated then the EA only open 1 trade (when a signal appears and the conditions are good). The lotsize is the "Trade1RiskPercent = 1.0 Pyramiding explanation: Trade 1: 1.0% risk (full stop loss) ⬇ When +30 pips, set Trade 1 → Breakeven ⬇ Open Trade 2: 0.7% risk (total risk now = 0.7%, since Trade 1 is risk-free) ⬇ When +60 pips, set Trade 1 + Trade 2 → Trailing Stop ⬇ Open Trade 3: 0.5% risk (effective total = 1.2% risk, because previous trades are already in profit) //=== STOP LOSS SETTINGS === input group "═══════════════════════════════════" input group "🛑 STOP LOSS SETTINGS" input group "═══════════════════════════════════" enum SL_MODE { SL_ATR_BASED, // ATR-Based (Recommended) SL_FIXED_PIPS, // Fixed Pips SL_AUTO_SWING // Auto Swing Detection }; input SL_MODE InpSLMode = SL_ATR_BASED; // Stop Loss Method input int InpATRPeriod = 14; // ATR Period input double InpATRMultiplier = 2.0; // ATR Multiplier for SL input int InpFixedSLPips = 50; // Fixed SL in Pips (if selected) //=== TRAILING STOP SETTINGS === input group "═══════════════════════════════════" input group "📈 TRAILING STOP SETTINGS" input group "═══════════════════════════════════" enum TRAIL_MODE { TRAIL_ATR_BASED, // ATR-Based (Recommended) TRAIL_FIXED_PIPS // Fixed Pips }; input bool InpUseTrailingStop = true; // Enable Trailing Stop input TRAIL_MODE InpTrailingMode = TRAIL_ATR_BASED; // Trailing Stop Type input int InpTrailStartPips = 40; // Trailing Start (Pips profit) input double InpTrailATRMulti = 2.0; // ATR Multiplier for Trail Distance input int InpTrailFixedPips = 30; // Fixed Trail Distance (if selected) //=== BREAKEVEN SETTINGS === input group "═══════════════════════════════════" input group "⚖️ BREAKEVEN SETTINGS" input group "═══════════════════════════════════" enum BE_MODE { BE_ON_PYRAMID, // On Pyramid Entry (Recommended) BE_FIXED_PIPS, // Fixed Pips BE_RR_RATIO // Risk:Reward Ratio }; input bool InpUseBreakeven = true; // Activate Breakeven settings input BE_MODE InpBreakevenMode = BE_ON_PYRAMID; // Breakeven Method input int InpBreakevenPips = 20; // Breakeven at Pips (if Fixed) input double InpBreakevenRR = 1.0; // Breakeven at RR (if RR selected) input int InpBreakevenOffset = 5; // Breakeven Offset (safety buffer) //=== PARTIAL CLOSE SETTINGS === input group "═══════════════════════════════════" input group "💵 PARTIAL CLOSE SETTINGS" input group "═══════════════════════════════════" input bool InpUsePartialClose = false; // Enable Partial Close input int InpPartialClosePips = 50; // Partial Close at Pips input double InpPartialClosePercent= 50.0; // Partial Close Percent (%) //=== EXIT SETTINGS === input group "═══════════════════════════════════" input group "🚪 EXIT SETTINGS" input group "═══════════════════════════════════" input bool InpCloseOnOpposite = false; // Close All on Opposite Signal input bool InpUseTimeExit = false; // Use Time-Based Exit input int InpMaxTradeHours = 24; // Max Trade Duration (Hours) //=== PROTECTION SETTINGS === input group "═══════════════════════════════════" input group "🛡️ PROTECTION SETTINGS" input group "═══════════════════════════════════" input int InpMaxSpreadPoints = 50; // Max Spread (Points) input bool InpUseTimeFilter = true; // Use Trading Time Filter input int InpTradingStartHour = 2; // Trading Start Hour input int InpTradingEndHour = 21; // Trading End Hour input bool InpCloseAllFriday = true; // Close All Positions Friday input string InpFridayCloseTime = "21:00"; // Friday Close Time News Filter: ℹ️ Info: Avoid trading during high-impact news ✅ Enable News Filter: true ℹ️ Info: News Impact Level ✅ Filter High Impact News: true ✅ Filter Medium Impact News: false ❌ Filter Low Impact News: false ℹ️ Info: Which News ✅ USD, EUR , GBP , CHF, JPY ( manuel select or write down ) ℹ️ Info: Time Buffer Around News ⏱️ Minutes Before News: 30 ⏱️ Minutes After News: 30 ℹ️ Info: Position Management During News ❌ Close All Positions Before News: false ⏱️ Close Positions X Minutes Before: 5 ✅ Only Avoid New Trades: true //=== DASHBOARD SETTINGS === input group "═══════════════════════════════════" input group "📊 DASHBOARD SETTINGS" ACCOUNT Balance: $100,000.00 │ Equity: $102,350.50 (+2.35%) POSITIONS ✅ ACTIVE Open: 3/3 [MAX] │ Profit: +$2,350.50 (+2.35%) DAILY P/L Today: +$1,250.00 (+1.25%) │ DD: -$120 (0.12%) SIGNAL 🟢 BUY TREND Last: 12:35 (25m ago) │ Higher Timeframe BUY or SELL TREND RISK STATUS ✅ SAFE Drawdown this week 2.5% │ Drawdown overall 4.5% STATISTICS Trades: 47 │ Win Rate: 63.8% │ PF: 2.27 TIME & SPREAD Server: 12:35:42 │ Spread: 12 pts │ Session: LONDON ⚠️ NEWS IN 15 MIN: US Non-Farm Payrolls (HIGH) //=== ADVANCED SETTINGS === input group "═══════════════════════════════════" input group "🧪 ADVANCED SETTINGS" input group "═══════════════════════════════════" input bool InpDebugMode = false; // Debug Mode (Detailed Logs) input int InpSlippage = 3; // Slippage (Points)