-->

Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Expert Advisor | The Playground Series v1 to V4 - A combination of trading concepts | MetaTrader Tool

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Important Notice

  • SB1 (3-4am GMT): Sydney Session High or Low
  • SB2 (10-11am GMT): Tokyo Session High or Low
  • SB3 (2-3pm GMT): London Session High or Low
  • Intelligent selection (high if price below, low if price above)

Stop Loss Implementation:

  • Placed below FVG bottom (for buys) or above FVG top (for sells)
  • Configurable buffer in points (default 5 points)
  • Protects against adverse moves
  • Loss threshold still applies in dollar terms

One-Trade-Per-Window Rule:

  • Each Silver Bullet window can have maximum one active trade
  • Once window's trade is filled, no new trades in that window
  • Window becomes available when trade is closed
  • Prevents over-trading within sessions

Input Parameters:

  • Silver Bullet sub-mode toggle (fixed vs DOL)
  • Stop loss buffer points
  • DOL target percentage
  • Minimum DOL distance
  • Session-specific window toggles
  • All standard FVG and filter settings

Improvements:

  • More disciplined trade management
  • Better risk control with SL buffers
  • Clearer session targeting
  • Prevents window over-trading
  • Flexible profit target methods
  • Better logging and status tracking

Magic Numbers:

  • Silver Bullet: 1004
  • Simple Mode: 1005

Screenshotaplha

Screenshotdingo


Common Features Across All Versions

FVG Detection

  • Detects three-candle Fair Value Gaps
  • Configurable minimum gap size
  • Optional accuracy mode using lower timeframe
  • Visual plotting of FVG dots
  • Encroachment point calculation (mid-point of gap)
  • Reset detection for inverse candles

Entry Logic

  • Core rule: Close above ENC = BUY, Close below ENC = SELL
  • Optional filters (minimum gap size, trend alignment)
  • FVG type validation
  • Encroachment confirmation

Position Management

  • Dollar-based profit targets
  • Dollar-based loss thresholds
  • Trade tracking with FVG association
  • Proper position closure handling
  • Error handling and logging

Visual Elements

  • FVG formation dots (green for bullish, red for bearish)
  • Encroachment dots (orange for bullish bias, blue for bearish bias)
  • Optional liquidity level lines (v1.00, v1.02-v1.04)

Technical Specifications

Library Dependencies

  • FVGLibrary.mqh: Required for all versions
  • LiquidityLibrary.mqh: Required for v1.00, v1.02, v1.03, v1.04

Compatibility

  • Platform: MetaTrader 5
  • Language: MQL5
  • Minimum Build: Recent MT5 versions with updated MQL5 syntax

Performance Notes

  • Not optimized for speed
  • Suitable for experimentation and learning
  • May generate volume or margin errors in testing
  • Code prioritizes readability over efficiency

Usage Recommendations

  1. Start with v1.01 for understanding basic encroachment logic
  2. Use v1.04 for production testing with enhanced features
  3. Adjust lot sizes conservatively
  4. Monitor margin requirements in testing
  5. Review logs to understand trade decisions

Known Limitations

General

  • Volume errors may occur during testing
  • Margin errors possible with certain broker configurations
  • Not optimized for high-frequency trading
  • Requires proper FVG and Liquidity library setup

Version-Specific

  • v1.00: Liquidity mode non-functional, immediate closures
  • v1.02: Confusing mode selection, time zone issues
  • All versions: Public test code may show errors (adds personality)

Future Development Ideas

  • Implement risk-based position sizing
  • Add session volatility adjustments
  • Create composite liquidity targeting
  • Develop multi-timeframe FVG confirmation
  • Add correlation filters
  • Implement partial profit strategies
  • Create backtesting optimization tools

Disclaimer

This Expert Advisor series is provided for educational and experimental purposes only. The author makes no guarantees about profitability or performance. Trading involves substantial risk of loss. Always test thoroughly on demo accounts before considering live trading.

The code represents experimental work and learning exercises. Use at your own risk.


Version Summary Table

Version Key Feature Trading Modes Status
v1.00 Dual mode with volatility sizing Encroachment + Liquidity Scalp Broken
v1.01 Simplified single mode Encroachment only Working
v1.02 Silver Bullet introduction SB + Simple (enum) Functional
v1.03 Parallel mode execution SB + Simple (both) Improved
v1.04 Session-specific targeting SB (sub-modes) + Simple Refined

Contact & Contributions

This code is open for community use and improvement. Feel free to:

  • Modify and enhance the code
  • Share improvements with the community
  • Report bugs or issues
  • Suggest new features or modes

Created by: loki Series: Playground EA (Experimental FVG & Liquidity Testing)


End of Documentation


Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.

Complement community code with advanced automation from RobotFX.

68125

Best MetaTrader Indicators + Profitable Expert Advisors