EA with market price channel strategy

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Wonderful work! Will find him next time!

Tarea técnica

This EA trades with time and price actions. It takes the high and low prices of a specific period of time to form a price channel, and open positions when the price breaks through the channel area.


Setup

Default time frame = 5m

 

Channel values are calculated and stored:

  1. At the last bar close before trade session starts (e.g. With 5m timeframe and trade session starts at 11:00, calculation is performed when the 10:55 bar closes)
  2. If the EA is launched after trade session has started (e.g. Trade session starts at 11:00 but EA only launched at 12:00. Need to make sure the correct values are based on the current session)

Clear channel values when trade session ends

 

Channel value calculation:

Channel high = highest price among an hour before the trade start time
Channel low = lowest price among an hour before the trade start time
Channel depth = Channel high - Channel low

 

Parameters:
        Trade session start (server time) = 11:00
        Trade session end (server time) = 15:59

TP Factor = 0.5

Fast EMA period = 3

Signal trend EMA period = 10

Trend EMA period = 200

Use Trend EMA filter = True

 


 

During the trade session, at every bar close, 3 steps will be performed:

Step 1: Cancel any pending orders that’s going against the trend

Step 2: Create new pending orders when condition is met

Step 3: Manage any opened positions

 

Step 1: Cancel pending orders that’s going against trend

        If Fast EMA < Signal EMA, cancel any pending buy stop order

        If Fast EMA > Signal EMA, cancel any pending sell stop order

 

Step 2: Create new pending order

Buy stop order

Conditions:

  1. No existing buy stop order
  2. No existing long position
  3. Current price closes above channel high
  4. Fast EMA > Signal EMA
  5. Channel high > Trend EMA (option to enable / disable)

If all conditions are met, create 2 buy stop order (A1 and A2)

Position A1:

        Place at channel high

        TP = Open price + (Channel depth * TP Factor)

        When TP is hit, immediately set SL of position A2 to breakeven

Position A2:

        Place at channel high

 

Sell stop order

Conditions:

  1. No existing sell stop order
  2. No existing short position
  3. Current price closes below channel low
  4. Fast EMA < Signal EMA
  5. Channel low < Trend EMA (option to enable / disable)

If all conditions are met, create 2 sell stop order (B1 and B2)

Position B1:

        Place at channel low

        TP = Open price - (Channel depth * TP Factor)

        When TP is hit, immediately set SL of position B2 to breakeven

Position B2:

        Place at channel low

Manage opened positions

For Position A1 and A2:

  1. Bar closed below channel low
  2. When in profit and bar closed below the low of previous bar
  3. When in profit and bar closed below the high of previous bar

 


Lot size calculation

There are 3 options for lot size calculation.

  1. Fixed lot size
  2. Risk % per trade – e.g. if set to 0.015, in case of hitting SL the loss of the position should be 1.5% of the balance
  3. % of equity

Position A1 & B1 would have separated settings to position A2 & B2.

 

Parameters:

[A1/B1] Lot size = “Fixed lot size”

[A1/B1] Fixed lot size = 0.01

[A1/B1] Risk % per trade = 0.015

[A1/B1] % of equity = 0.02

[A2/B2] Lot size = “Fixed lot size”

[A2/B2] Fixed lot size = 0.01

[A2/B2] Risk % per trade = 0.015

[A2/B2] % of equity = 0.02

 


Other requirements

  1. Trade time adjust to daylight saving
  2. Only check and manage the pending orders and positions which have the same magic number set by this EA
Draw a rectangle that marks the bounds of the channel on the chart

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(39)
Proyectos
50
18%
Arbitraje
5
40% / 40%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(7)
Proyectos
6
0%
Arbitraje
5
0% / 100%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(73)
Proyectos
72
46%
Arbitraje
2
50% / 50%
Caducado
1
1%
Trabaja
4
Desarrollador 4
Evaluación
(96)
Proyectos
142
75%
Arbitraje
0
Caducado
2
1%
Libre
5
Desarrollador 5
Evaluación
(4)
Proyectos
6
0%
Arbitraje
4
0% / 75%
Caducado
2
33%
Libre
6
Desarrollador 6
Evaluación
(68)
Proyectos
111
26%
Arbitraje
17
6% / 71%
Caducado
15
14%
Libre
7
Desarrollador 7
Evaluación
(263)
Proyectos
399
63%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabajando
8
Desarrollador 8
Evaluación
(223)
Proyectos
398
34%
Arbitraje
53
36% / 40%
Caducado
144
36%
Trabajando
9
Desarrollador 9
Evaluación
(463)
Proyectos
492
52%
Arbitraje
10
60% / 20%
Caducado
3
1%
Libre
10
Desarrollador 10
Evaluación
(34)
Proyectos
49
43%
Arbitraje
3
0% / 33%
Caducado
14
29%
Libre
11
Desarrollador 11
Evaluación
(249)
Proyectos
398
38%
Arbitraje
82
41% / 20%
Caducado
69
17%
Trabajando
12
Desarrollador 12
Evaluación
(2367)
Proyectos
2975
65%
Arbitraje
76
47% / 14%
Caducado
340
11%
Libre
13
Desarrollador 13
Evaluación
(16)
Proyectos
29
48%
Arbitraje
0
Caducado
6
21%
Libre
14
Desarrollador 14
Evaluación
(259)
Proyectos
533
50%
Arbitraje
54
41% / 37%
Caducado
224
42%
Trabaja
15
Desarrollador 15
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Trabaja
16
Desarrollador 16
Evaluación
(555)
Proyectos
922
48%
Arbitraje
300
59% / 25%
Caducado
123
13%
Trabaja
Solicitudes similares
I need an automated EA to open positions based on the closing of a candle over/under the 50MA TP must be able to be set at specific points SP must be able to be set at previous candle open
MT4 TRADE COPIER EA 30 - 35 USD
Hello , how are you doing? Am in need of MT4 developer that can help me to develop trade copier EA for MT4 account Kindly bid for the project if it is what you can do for me thanks
I am looking for a professional developer to help me with creating a hedge grid bot. The concept is in the picture. The bot is quite simple. The bot basically opens buy and sell positions on each grid and self terminates when the upper limit (manually set is reached) 1. Set timer for new's releases (manual entry) 2. Slippage in pip's (manual entry) 3. Maximum drawdown in USD with self termination when entry
I needed to create a script based on MQL5, which depends on Stochastic and MACD indicators. Long entry should be once Stochastic lines are crossed above and MACD lines are crossed above and vice versa for short entry. If you know pine script, I have the pine script strategy code for this strategy, you can convert this into MQL5, Refer the below text file for the code
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
This is ready made grid ea Bug- This ea has some bug like - a>if mt4 restart ea trade random without any logic. B>if i add 300 pips grid ,some time ea take next trade at 400 distance pips Feature 2. Add supply and demnad + 200 ma entry logic (supply demad indicator are add to attach) 3.Add two separet engine en1 -- en2. But engine have same grid logic but separate parameter and magic number bot have anti-grid
Due to developers not responding I try again. Im going to automate my strategy which is a breakout strategy but with some extra confirmations and rules, see attached file with description of the requirements. Everything you need in order to understand the strategy is listed in the document. If any questions appear feel free to ask! Please leave a quote, and only after reading the document attached. thanks ahead
Programmer needed to make my HFT bot more suitable for live trading. After testing and proven, if up to expectation, full funds will be received. Genuine offer but if this is successful further discussions can take place. DM me first so we can discuss further
An Expert Advisor based on Martingale's strategy is needed. Based on a tendency indicator, open a position, and if it hits the stop loss, open another position in the same or opposite direction (The EA should have the option to select this preference) with the lot size two times the previous lot. Also, the EA should have a risk management option to set the maximum drawdown limit to stop opening more orders. The EA
Hidden SL & TP 1. Design a simple interface on chart. Order No | Pair | Lot | TP | SL 5110022 | EURUSD | 1.0 | +20 | -30 2. EA will scan All existing orders and new orders and put to Chart Interface. 3. User is able to select which order on interface and put a custom TP and SL number. Eg: TP +20 | SL -30. And prices will calculate accordingly. 4. TP & SL is hidden on the MT4. 5. When the Order is closed, it will auto

Información sobre el proyecto

Presupuesto
50 - 100 USD
Para el ejecutor
45 - 90 USD
Plazo límite de ejecución
a 5 día(s)