EA with market price channel strategy

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Wonderful work! Will find him next time!

Specifiche

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

File:

Con risposta

1
Sviluppatore 1
Valutazioni
(39)
Progetti
50
18%
Arbitraggio
5
40% / 40%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(7)
Progetti
6
0%
Arbitraggio
5
0% / 100%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(73)
Progetti
72
46%
Arbitraggio
2
50% / 50%
In ritardo
1
1%
In elaborazione
4
Sviluppatore 4
Valutazioni
(96)
Progetti
142
75%
Arbitraggio
0
In ritardo
2
1%
Gratuito
5
Sviluppatore 5
Valutazioni
(4)
Progetti
6
0%
Arbitraggio
4
0% / 75%
In ritardo
2
33%
Gratuito
6
Sviluppatore 6
Valutazioni
(68)
Progetti
111
26%
Arbitraggio
17
6% / 71%
In ritardo
15
14%
Gratuito
7
Sviluppatore 7
Valutazioni
(266)
Progetti
402
63%
Arbitraggio
5
40% / 0%
In ritardo
4
1%
In elaborazione
8
Sviluppatore 8
Valutazioni
(225)
Progetti
401
34%
Arbitraggio
53
36% / 40%
In ritardo
144
36%
In elaborazione
9
Sviluppatore 9
Valutazioni
(465)
Progetti
493
52%
Arbitraggio
10
60% / 20%
In ritardo
3
1%
Gratuito
10
Sviluppatore 10
Valutazioni
(34)
Progetti
49
43%
Arbitraggio
3
0% / 33%
In ritardo
14
29%
Gratuito
11
Sviluppatore 11
Valutazioni
(249)
Progetti
398
38%
Arbitraggio
82
41% / 20%
In ritardo
69
17%
Occupato
12
Sviluppatore 12
Valutazioni
(2367)
Progetti
2975
65%
Arbitraggio
76
47% / 14%
In ritardo
340
11%
Gratuito
13
Sviluppatore 13
Valutazioni
(16)
Progetti
29
48%
Arbitraggio
0
In ritardo
6
21%
Gratuito
14
Sviluppatore 14
Valutazioni
(259)
Progetti
533
50%
Arbitraggio
54
41% / 37%
In ritardo
224
42%
In elaborazione
15
Sviluppatore 15
Valutazioni
(66)
Progetti
143
34%
Arbitraggio
10
10% / 60%
In ritardo
26
18%
In elaborazione
16
Sviluppatore 16
Valutazioni
(555)
Progetti
922
48%
Arbitraggio
300
59% / 25%
In ritardo
123
13%
In elaborazione
Ordini simili
Hi, I am looking for a developer who will develop for me an EA code/program which will help me to get data from forex factory. The EA code/program meets the following requirements. 1. I currently have an EA that I manually specify specific (High impact) news times where I would want to start analysis (You will see a screenshot in the attached requirement). 2. I developed this EA myself, so I have the source code but
Please I need a profitable EA with any of the following criteria; Hedge Trading Hedging trades is permitted however, hedging separate accounts against each other (known as Wash Trading) is not permitted and is a direct violation of the OnlyFunds’ Terms and Conditions. Wash trading is illegal and considered to be fraudulent, as it undermines the integrity of financial markets. Swing Trading Swing trading is
I have an EA that has a nasty drawdown but otherwise is quite profitable. I am looking for a developer who can improve the drawdown by closing or hedging the older open orders. You'll need to supply a demo showing that you've solved this problem rather than just claiming that you can fix it
dear developers.i want to modify my custom indicator by adding new rules for alerts and arrows,the indicator is based upon some trend following rules and the indicator should be able to send out all types of alerts.i will need demonstration...thank you
Looking for a developer of profitable EA tested for over 2 or more years time history of profits with investors read me only access as proof of usage. MT4 or MT5
Adjust MY Hedging EA 30 - 40 USD
1. Need averaging TP for my hedging EA. (Close both Buy and Sell position with TP) 2. Add function auto/manual entry. (EA will entry based on manual position(placed by trader) or auto trade based on existing setting)
I have a robot set up that sends trading signals to my telegram group and the group sends trading signals for (28 forex pairs, 3 crypto pairs, 6 commodities, 6 indexes, & 55 stocks) basically almot 100 CFDs and sends out trend price action breakout, impulse, reversal, and exit indications to each one of those CFDs on different timeframes. I want to make it so that a person can sign up and choose which alerts they
I am in search of a skilled robot developer to craft a Martingale with Hedge strategy algorithm. The ideal candidate will possess deep expertise in algorithmic trading, proficiency in programming languages, and a keen understanding of financial markets. The role entails designing and implementing an automated system capable of effectively executing the Martingale strategy while integrating a hedge mechanism to manage
Create an EA zigzag 40 - 80 USD
Zigzag EA sends notify on MT4 mobile app indicator have 2 Conditions all are explained in the pictures accurately and clearly https://drive.google.com/file/d/10Y6SrvC2A7RTT_baAJ7vOKytTDaUvRRQ/view?usp=sharing Warning: Do not send me a notification if your offer is higher than $ 100 because I did the project twice for less than $60 And I want to do the project now because there are mistakes on my part that I want to
Hello developers, Thanks in advance for checking my order. I have been creating and trying to mastering this strategies for a long time and finally it's time to automate it. I’m not sure if everything I imagined can be done. I tried my best to explain whats needed for the ea and how it should performance but due my lack of knowledge in programming probably you will have some questions soo feel free to ask.. Only

Informazioni sul progetto

Budget
50 - 100 USD
Per lo sviluppatore
45 - 90 USD
Scadenze
a 5 giorno(i)