Input parameters
Na = period of the moving average
k = multiplier f Standard deviation in UBB/LBB
Nd = length of BBW valley
Lf = lower filter for %B
Uf = upper filter for %B
MaxL = amount of bearable Loss in value
Fs = freeze start (hh:mm), with minimum interval of 30m
Fe = freeze end (hh:mm), with minimum interval of 30m
Custom indicators
Squeeze is based on BBW (Bollinger BandWidth) and %B (PercentB), which are indicators based on Bollinger Bands.
Bollinger Bands
UBB (Upper Bollinger Band) = [SMA(Na) + k * DS],
LBB (Lower Bollinger Band) = [SMA(Na) - k * DS],
where N is a parameter indicating the period of the SMA (simple moving average), DS is the standard deviation of SMA,m and k is an input parameter
%B (PercentB)
%B = (Close – LB) / (UB – LB)
where (UB-LB) is the width of Bollinger Bands, and %B expresses the distance between closing price and lower band, as a ratio with the bands width.
Although the formula is similar to oscillators, %B can be lower than 0 and higher that +1
BBW (bands bandwidth)
BBW = (UB – LB) / MA
BBW express that bands bandwidth, in comparison to the price moving average.
Entry Signal
(see picture "example 1": price chart showing closing candle, first indicator chart showing entry signal on BBW indicator, lower indicator chart showing entry signal on %B indicator)
The entry signal occurs when BBW exits a valley of length Nd periods, while at the same time %B is beyond the filter limits.
…BBW exits a valley of length Nd periods…
this means that BBW last value is higher than the previous Nd values of BBW. In other words, the previous Nd value of BBW are lower than the current value, while instead the (Nd+1) value was higher.
…%B is beyond the filter limits…
This means that %B is either below Lf or above Uf, in other words it is not Lfv < %B < Uf
Stop Loss (fixed)
Fixed stop loss is set at the value of SMA at closing candle just before the entry signal.
Lot Sizing
Lot sizing of entry order is based on:
-distance between entry level OL and stop level SL (in pips/ticks)
-amount of bearable Loss in value MaxL
-in case the market price is expressed in a currency XXX different than EUR, the sizing will consider the current rate between EUR and the denomination currency (e.g. EURGBP for markets in GBP)
Size (lots) = MaxL (€) / [ (OL-SL) * 10 * rate EURXXX ]
Target signal
The target signal (take profit) happens when the width of Bollinger bands stops to increase, in other words when BBW (-1) < (BBW (-2).
This condition is checked on every closed candle.
Freeze period (optional)
A freeze period can be set, as an interval of inactivity of the EA. If both values Fs and Fe are set, then freeze period is between Fs and Fe. If one of both values are empty, freeze period is not active.
During the freeze period, no new orders can be opened, even though an entry signal is triggered.
Yet, during the inactivity period the position management is still valid, i.e. any open order can be closed in stop or in target if the stop or target signal is triggered.
(see picture "example 2": freeze period between 22:00 and 06:00)
Additional commands and options
The present document only includes the description of the strategy. Final version of the expert advisor will include additional commands for screenview customization, like the colour of the bands, width of the bands, and so on.
Table of controlo
EA will show in the top left corner of the screen a recap of main input data and running values:
-EA “Squeeze”
-freeze: from --- to ---
-period of MA: Na
-factor of SD: k
-BBW valley: Nd
-%B filter low: Lf
-%B filter up: Lu
-max loss: MaxL €
(see picture "example 3": indication of active parameters (picture is just for demonstration purpose, it is related to a different expert advisor and it is not showing the correct parameters)
Delivery of the project: open code in .mq4 (not compiled)
Deadline: 7 days from agreement
비슷한 주문
Custom MT5 Expert Advisor – Developer Specification 1. Project Objective Develop a fully autonomous, custom MetaTrader 5 Expert Advisor (EA) using native MQL5. The EA must independently analyze financial markets, generate its own trading signals, evaluate opportunities, execute trades, and manage open positions without requiring an external signal provider, another trading bot, or manual intervention. The EA must
Title: Create a Combined Indicator from 3 EX4 Indicators + Fully Automatic Trading EA (MT4) Description: Hello, I need an experienced MQL4 developer to build a custom trading system based on 3 existing .ex4 indicators. Project Requirements: Combined Custom Indicator: Read and merge signals from 3 specified .ex4 indicators via buffer reading (iCustom). Generate a consolidated BUY or SELL arrow/signal
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
trading designed to bring clarity, precision, and confidence to every trading decision. By analysing market trends, price movements, and key trading levels, the indicator helps traders identify potential opportunities, recognise market direction, and plan entries and exits. Its purpose is to simplify technical analysis, promote disciplined trading, and support smarter decision-making. Trade with a strategy, not
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
Hello, I need an Expert Advisor for MetaTrader 5 in MQL5. 1. GENERAL: Scalping on M1, Monday to Friday, 3 symbols: XAUUSD, EURUSD, GBPUSD. Scan every tick. Fully automatic. NO MARTINGALE, NO GRID, NO HEDGING. 2. TIMEFRAME: M1 ONLY. Use PERIOD_M1 for all indicators. Magic 101010. Comment "Adaptive V11". Deviation 10. Spread filter: >30 points EURUSD/GBPUSD or >50 points XAUUSD = NO TRADE. 3. INDICATORS: EMA 20, EMA
I want a bot that’s trades using smc strategy having stop loss and take profit.I want it to be able to trade with small account I want a disciplined robot but a strong one to I also what it to trade using trend line and locate point of interest
I need an EA for MetaTrader 5 called AI Forex Robot V100. It must trade automatically on EURUSD and GBPUSD, M15 timeframe. Strategy: - Buy when fast EMA crosses above slow EMA and RSI is above 50 - Sell when fast EMA crosses below slow EMA and RSI is below 50 - Only 1 trade at a time - Stop Loss: 50 pips, Take Profit: 100 pips - Lot size: 0.01, with option to change in settings - Must have trailing stop and news
PROJECT: EXISTING MT5 EA MODIFICATION – XAUUSD SLIPPAGE REDUCTION 1. Project Objective I already have a fully developed MT5 Expert Advisor (.mq5 source code). I am looking for an experienced MQL5 developer who can optimize my existing EA to achieve the lowest possible execution slippage on a REAL LIVE trading account. My primary and only objective is to zero slippage. I am not looking for a new trading strategy or
Elektra Trading Robot is an automated Forex trading system designed to analyze market conditions execute trades according to predefined trading strategies. It aims to identify potential trading opportunities, manage trading positions, and apply risk management rules to help protect trading capital. The robot is designed for real-account trading and focuses on consistency, disciplined execution, and efficient trade