Expert Advisor based on Bollinger's "squeeze" using Bollinger bands, BBW (bands bandwidth) and %B (percentB)

Specifiche


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

 


Con risposta

1
Sviluppatore 1
Valutazioni
(16)
Progetti
35
23%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
2
Sviluppatore 2
Valutazioni
(15)
Progetti
19
16%
Arbitraggio
5
40% / 40%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(259)
Progetti
324
30%
Arbitraggio
34
26% / 65%
In ritardo
10
3%
In elaborazione
4
Sviluppatore 4
Valutazioni
(434)
Progetti
637
54%
Arbitraggio
32
59% / 22%
In ritardo
6
1%
In elaborazione
5
Sviluppatore 5
Valutazioni
(77)
Progetti
244
74%
Arbitraggio
7
100% / 0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo
6
Sviluppatore 6
Valutazioni
(72)
Progetti
80
10%
Arbitraggio
38
8% / 58%
In ritardo
6
8%
Gratuito
7
Sviluppatore 7
Valutazioni
(21)
Progetti
28
36%
Arbitraggio
7
14% / 71%
In ritardo
2
7%
Gratuito
8
Sviluppatore 8
Valutazioni
(390)
Progetti
416
30%
Arbitraggio
74
19% / 72%
In ritardo
52
13%
In elaborazione
9
Sviluppatore 9
Valutazioni
(27)
Progetti
27
26%
Arbitraggio
2
0% / 50%
In ritardo
1
4%
Gratuito
10
Sviluppatore 10
Valutazioni
(454)
Progetti
480
70%
Arbitraggio
6
67% / 0%
In ritardo
2
0%
In elaborazione
11
Sviluppatore 11
Valutazioni
(144)
Progetti
186
41%
Arbitraggio
24
58% / 21%
In ritardo
13
7%
Gratuito
12
Sviluppatore 12
Valutazioni
(10)
Progetti
4
0%
Arbitraggio
11
0% / 82%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(45)
Progetti
91
13%
Arbitraggio
34
26% / 59%
In ritardo
37
41%
Gratuito
14
Sviluppatore 14
Valutazioni
(37)
Progetti
59
27%
Arbitraggio
26
19% / 54%
In ritardo
10
17%
In elaborazione
Pubblicati: 1 codice
15
Sviluppatore 15
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
16
Sviluppatore 16
Valutazioni
(1)
Progetti
2
0%
Arbitraggio
2
50% / 50%
In ritardo
0
Gratuito
Ordini simili
Noganda EA 30+ USD
*MQL5 Bot: “HH_HL_Simple.mq5”* Copy → Paste → Compile in MetaEditor. //+------------------------------------------------------------------+ //| HH_HL_Simple.mq5 | //| WARNING: FOR EDUCATION/DEMO ONLY. YOU CAN LOSE MONEY. | //| @kasii_trader_nela - Learn first, trade later | //+------------------------------------------------------------------+ #property copyright "Educational use only" #property strict #include
I need a simple bot for opening range. Simple Entry / Exit rules, to be able to customize the timeframe, time zone (entry candle) and other normal settings like size, etc
Nyctrad1 30+ USD
Free link free land free land free land free land free free land free land free things free land free land free land free land free land free land free land free Finch I will do it
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
BullyMax Pro 30+ USD
"Act as an expert MQL5 algorithmic trading developer. I want you to create a profitable and efficient Expert Advisor for MetaTrader 5. Do not write the code yet; read the following trading rules, analyze them, and ask me any clarifying questions if needed. Timeframe: [e.g.15 minutes Chart] Entry Logic: [e.g.MACD + RSI + REVERSAL PRICE ACTION. Enter buy when Macd line crosses above the signal line ,RSI above 30 and
I want an indicator that displays the risk reward ratio of each chart candle as a sub window histogram. If the candle closes above the open the histogram displays a green bar above zero the size of which is dependant on the size of the RRR. If the candle closes below the open the histogram displays a red bar below zero the size of which is dependant on the size of the RRR. My attempt that does not work is attached
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
I really like this platform. I am interested in trading and need funds for it. I enjoy both crypto and forex trading.I"really appreciate this platform. I am keen on trading and am looking for trading funds. I enjoy trading in both cryptocurrency and forex."
Titan Quantum Algo Engine V2 is an advanced MT5 Expert Advisor designed to identify high-probability market opportunities using trend analysis, breakout detection, and intelligent risk management. The EA automatically executes trades, manages stop-loss and take-profit levels, and helps traders maintain disciplined trading with optimized entry and exit strategies
The striker robot 30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick

Informazioni sul progetto

Budget
150 - 200 USD
Scadenze
da 15 a 25 giorno(i)