Inside Bar Trading Strategy

Inside Bar Trading Strategy
Download ALL MT5 experts (1558)
YouTube Video Thumbnail

Similar MetaTrader Tools

Inside Bar Trading Strategy

Info

The Inside Bar Trading Strategy is a Expert Advisor for MetaTrader 5 that expert advisor for testing the inside bar continuation pattern. This EA identifies a classic Inside Bar pattern, consisting of a Main Bar and a Signal Bar.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Inside Bar Trading Strategy

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

Expert Advisor for testing the Inside Bar continuation pattern.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: ADX Trend Pullback EA: Trend Strength and Volatility-Based Trading - another powerful expert for MetaTrader 5 traders.

Expert Advisor for testing the Inside Bar continuation pattern.

Also recommended: Frontend EA : UI cleanup + quick-trading layer for MT5 - similar expert with strong performance on MetaTrader 5.


This EA identifies a classic Inside Bar pattern, consisting of a Main Bar and a Signal Bar.


Pattern Definition

Main Bar — The larger candle that encompasses the pattern.

Signal Bar — The Inside Bar that is fully contained within the Main Bar's range.

The EA's trading logic is as follows:

- If the Main Bar closes bullish, place a Buy Stop order above its high.
- If the Main Bar closes bearish, place a Sell Stop order below its low.
- Stop Loss is set as a fraction of the Main Bar range.
- Take Profit is calculated using a Risk/Reward ratio.
- An optional ATR filter can be applied to ensure the Main Bar is significantly larger than recent volatility.

This Expert Advisor is designed for research, testing the Inside Bar pattern's statistical behavior across various markets and timeframes.


Parameters

Lot Type
- Fixed Lot or % Risk from Start Balance for position sizing.

Lot Size
- Fixed lot size for Fixed Lot mode.

Risk per Transaction (%)
- Risk percentage for risk-based position sizing.


ATR Filter

ATR Filter (Main Bar Size)
- Enable/disable ATR filter.

ATR Period
- ATR calculation period.

Min Main Bar Size (x ATR)
- Minimum Main Bar size as a multiple of ATR.


Inside Bar Filter

Min Main Bar Body (% of Range)
- Minimum Main Bar body size as a percentage of the range.

Max Inside Bar Size (% of Main Main Bar)
- Maximum Signal Bar size as a percentage of the Main Bar.


Position Settings

StopLoss (x Main Bar Range)
- Stop Loss distance as a fraction of the Main Bar range.

TakeProfit (Risk/Reward)
- Risk/Reward ratio for Take Profit (0 to disable).


Order Management

Cancel Pending Order After N Bars
- Number of bars after which pending orders are cancelled.


Important Notes

- The EA analyzes the selected chart timeframe.
- Pattern detection occurs when a new bar appears.
- The Signal Bar must be fully inside the Main Bar's range.
- Trade direction is determined by the Main Bar's direction.
- Buy Stop orders are placed above the Main Bar high.
- Sell Stop orders are placed below the Main Bar low.
- Only one position and one pending order per symbol are allowed at a time.
- Pending orders are removed after the specified number of bars.
- Risk calculations for '% Risk from Start Balance' are based on the account balance when the EA starts.


Backtest Results

The strategy was tested on EURUSD, XAUUSD, and SP500 on H1 and M15 timeframes.
The EA's purpose is research-oriented, and the source code is available for verification, modification, and testing on other markets.
EURUSD M15 backtest results are available, along with research reports and equity curves.
The EA is intended for hypothesis testing, not live trading without further research.

You may also like: VR Rsi Robot is a multi-timeframe trading strategy - excellent alternative for expert users on MetaTrader 5.


Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators