EA to trade bollinger bands

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 10 días

Tarea técnica

The name of this EA is Bollinger 1

The EA must run on MQ4 platform and open a trade when price approaches a Bollinger band.

Variables found below "Variable Name in Quotes" (Default Setting in parenthesis) Description after parenthesis:

"MOW" (calculated or collected from the system). Represents the minute of the week. 

"MOD" (calculated or collected from the system). Represents the minute of the Day. 

"FirstMOW" (1441) The first minute of the Week trades are authorized to be opened. 1441 should be 12:01 AM Monday 

"FirstMOD" (0) The first minute of the Day trades are authorized to be opened. 0 Disables the function.

"LastMOW" (7200) The last minute of the Week trades are authorized to be opened.

"LastMOD" (1441) The last minute of the Day trades are authorized to be opened. 1441 disables the function.

"CloseMin" (7800) The minute during the week all open trades are closed. 7800 should be 10:00 AM Friday. Chart Time.

"SinceBuy" (10) Minimum number of bars since the low of any bar touched or went below the lower Bollinger Band to enable a LONG opening order.

"SinceSell" (10) Minimum number of bars since the high of any bar touched or went above the upper Bollinger Band to enable a SHORT opening order.

"MinBal" (1,000,000) If the Net Account Value is below this number the EA will only enter new trades for 0.01 Lots. 

"Stop%" (0.25) Stop Loss is sent with the order. A value of 0.25 would have the Stop Loss set at 99.75% of Purchase price on Buy Orders and at 100.25% of Sale price on Sell Orders.

"%Risked" (1) Percentage of the account that will be lost if the trade results in a Stop Loss. With a value of 1 a thousand unit account would lose ten units of the base currency in the account if the trade stopped out at the S/L without slippage. More can be lost if the market gaps. Much more. If the account enters a trade with %Risked at 1 and Stop% at 0.25 the account would be leveraged 4:1 when this trade opens.

"TP%" (2) Take Profit is sent with the order. A value of 2 would have the Take Profit set at 102% of Purchase price on Buy Orders and at 98% of Sale price on Sell Orders.

"Period" (20) Length of the Bollinger Band in bars and based on the bar length selected NOT the chart time frame of the chart the EA is running on.

"Deviations" (3) Deviations of the Bollinger Band to be referenced.

"ApplyTo" (C) Indicates to apply the calculation to closing prices. There should be a few comment lines explaining how to change the application to other values such as (HLC/3)

"TrendLength" (2400) Length in bars of a SMA used to determine the probable direction of the underlying trend. 

"MS" (1) Maximum Spread in pips. The default setting will disable trading 99.9% of the time I need this to be set thoughtfully for each pair.

"EarlyOut" (0) If this is set to 1 any trade entered will be closed when the opposite band is approached.

"Approach" (1.0) This is the distance before the band is touched that the trade is entered. 1.0= 1* "MS" at the close of the last "Period" bars. 

Housekeeping Issues to be resolved: 

1. User is to set the timeframe of the chart to any standard time available from a drop down menu or similar. M1, M5, M15, M30, H1, H4, D1, W1, or MN. If the EA is dropped on a 5 minute chart and set to M15 it should run in the M15 timeframe and an event an hour ago is 4 bars ago not 12 bars ago, etc.

2. EA to work with price values of any number of digits with the decimal in any location.

3. All values that can be, are to be calculated only one time each bar. This will result in small inaccuracies. That it preferred to the overhead load of calculating each value continuously. The one exception is the decision to enter a new position which is checked each tick. Trades are entered on the first opportunity when the target is enabled and price meets the protocols.

4. Target Values for moving averages and Bollinger lines can be interpolated for the current bar based on last bar's value + previous bar + difference + or - last bar is above or below previous bar. One bar repaint is preferred to overhead load.

5. EA must have a "TradesInitiated" counter to eliminate the possibility of entering a trade more than one time in any bar. Set the counter to zero at the beginning of each bar and increase the count when a trade is opened. Disable opening a new trade when the value is >0.  

6.Text in the top Left corner of the chart should be populated with current information and read similar to this: "Trend=1.00013, Spread=5216, SinceBuy=38, Buy 2.37 Lots @ 1.24762, SL=1.24450, TP=1.27257" There will be no need of a SinceSell or sale values text line when the trend is >1.0 since the system will trade with the trend. If the trend was < 1.0 the line might read  "Trend=0.99927, Spread=5216, SinceSell=38, Sell 2.37 Lots @ 1.24762, SL=1.25074, TP=1.22267". In this case the displayed values of "SinceBuy" or "SinceSell" are not the values set by the user. They represent the actual number of bars since the price touched or approached the noted Bollinger Band.

7. IF NAV is <"MinBal" the trade is 0.01 Lots. If NAV is > "MinBal" the trade size is calculated by comparing the "Stop%" to NAV, "%Risked", and the nominal unit price of the pair being traded. Note the account could be below "MinBal" After a trade is stopped out.

8. Maximum Deviation from Quoted Price for Opening Orders should be "MS"  Closing Orders are at the market regardless of Deviation.

9. All charted prices are to be mid spread or half way between Bid and Ask.

10. All Buy orders to Open or to Close are to be based on Ask Prices.

11. All Sell to Open or to Close are to be based on Offered Prices.  

12. If "FirstMOD" is > "LastMOD" the EA must not shut down at midnight. It runs continuously from "FirstMOD" to "LastMOD". If "FirstMOD" = 601 and "LastMOD" = 120 then the EA is enabled from 10:00 AM daily until 1:59 the next morning.  If "FirstMOD" is < "LastMOD" the EA is never enabled to open a trade at midnight (unless FirstMOD = 0 or LastMOD >1440).

 

Long entry:

"MOW" is >"FirstMOW" and < "LastMOW"  

"MOD" is >"FirstMOD" and < "LastMOD"  

"SpreadRatio"> "MaxSpread" 

Trend is >1.0 (Trend is calculated by dividing the value of the "TrendLength" SMA from the previous bar by what it's value was "Period" bars prior to the last bar.

Low of each of the last "SinceBuy" bars of a "Period" "Deviations" Bollinger Band has been higher than the value of the lower band + ("Approach"*"MS")

"TradesInitiated" = 0 

Price on a recent tick is <= the value of a lower band of a "Period" "Deviations" Bollinger Band + "Approach"+"MS"

Enter immediately. Make "TradesInitiated" =1, Set S/L and T/P, Mark the Chart with an up Arrow below the Lower Bollinger Band Line.

Short entry:

"MOW" is >"FirstMOW" and < "LastMOW"  

"MOD" is >"FirstMOD" and < "LastMOD" 

"SpreadRatio"> "MaxSpread"  

Trend is <1.0 (Trend is calculated by dividing the value of the "TrendLength" SMA from the previous bar by what it's value was "Period" bars prior to the last bar.

High of each of the last "SinceSell" bars of a "Period" "Deviations" Bollinger Band has been lower than the value of the upper band - ("Approach"*"MS")

"TradesInitiated" = 0 

Price on a recent tick is >= the value of a upper band of a "Period" "Deviations" Bollinger Band - ("Approach"*"MS")

Enter immediately. Make "TradesInitiated" =1, Set S/L and T/P, Mark the Chart with an up Arrow below the Lower Bollinger Band Line. 

Early Exit:

If "EarlyOut" =1 and the opposite Bollinger Band is Approached.

If  "CloseMOW" is reached and positions are still open.

 

By way of observation the system would have opened three SHORT trades in the attached USDJPY Chart and the last trade will be a loser. In the NZDUSD chart illustrated the system would have opened a LONG trade at 21:18. It gets stopped out. Oh well.

Han respondido

1
Desarrollador 1
Evaluación
(52)
Proyectos
133
44%
Arbitraje
14
50% / 29%
Caducado
55
41%
Libre
2
Desarrollador 2
Evaluación
(54)
Proyectos
64
42%
Arbitraje
5
20% / 60%
Caducado
4
6%
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(1931)
Proyectos
3552
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
4
Desarrollador 4
Evaluación
(89)
Proyectos
137
24%
Arbitraje
35
9% / 40%
Caducado
52
38%
Libre
5
Desarrollador 5
Evaluación
(5)
Proyectos
14
86%
Arbitraje
2
0% / 100%
Caducado
1
7%
Libre
6
Desarrollador 6
Evaluación
(80)
Proyectos
117
67%
Arbitraje
16
25% / 13%
Caducado
12
10%
Libre
Ha publicado: 2 ejemplos
7
Desarrollador 7
Evaluación
(1125)
Proyectos
1813
61%
Arbitraje
14
64% / 7%
Caducado
84
5%
Libre
8
Desarrollador 8
Evaluación
(11)
Proyectos
12
0%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
9
Desarrollador 9
Evaluación
(885)
Proyectos
1410
67%
Arbitraje
123
32% / 41%
Caducado
217
15%
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
487
17%
Libre
11
Desarrollador 11
Evaluación
(107)
Proyectos
149
36%
Arbitraje
29
3% / 55%
Caducado
35
23%
Libre
Solicitudes similares
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
O Trading Ventures 30 - 2000 USD
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and

Información sobre el proyecto

Presupuesto
200 - 500 USD
Plazo límite de ejecución
de 7 a 14 día(s)