EA with market price channel strategy

MQL5 Experts

Job finished

Execution time 2 days
Feedback from customer
Wonderful work! Will find him next time!

Specification

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

Files:

Responded

1
Developer 1
Rating
(39)
Projects
50
18%
Arbitration
5
40% / 40%
Overdue
0
Free
2
Developer 2
Rating
(7)
Projects
6
0%
Arbitration
5
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(74)
Projects
73
47%
Arbitration
2
50% / 50%
Overdue
2
3%
Free
4
Developer 4
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
5
Developer 5
Rating
(4)
Projects
6
0%
Arbitration
5
0% / 80%
Overdue
2
33%
Free
6
Developer 6
Rating
(68)
Projects
111
26%
Arbitration
17
6% / 71%
Overdue
15
14%
Free
7
Developer 7
Rating
(300)
Projects
448
65%
Arbitration
5
40% / 0%
Overdue
4
1%
Working
8
Developer 8
Rating
(247)
Projects
440
34%
Arbitration
56
36% / 38%
Overdue
161
37%
Busy
9
Developer 9
Rating
(481)
Projects
510
53%
Arbitration
10
60% / 20%
Overdue
3
1%
Free
10
Developer 10
Rating
(34)
Projects
50
44%
Arbitration
4
25% / 25%
Overdue
14
28%
Free
11
Developer 11
Rating
(261)
Projects
423
38%
Arbitration
86
44% / 19%
Overdue
70
17%
Busy
12
Developer 12
Rating
(2440)
Projects
3075
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
13
Developer 13
Rating
(16)
Projects
29
48%
Arbitration
0
Overdue
6
21%
Free
14
Developer 14
Rating
(266)
Projects
540
50%
Arbitration
55
40% / 36%
Overdue
224
41%
Working
15
Developer 15
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
16
Developer 16
Rating
(564)
Projects
933
47%
Arbitration
302
59% / 25%
Overdue
125
13%
Loaded
Similar orders
Alex 30+ USD
//+------------------------------------------------------------------+ //| PriceAction.mq4 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "2023" #property link " https://www.mql5.com " #property version "1.00" #property indicator_separate_window #property indicator_buffers 2 #property
**Technical specifications for the improvement of the ProNewsTrader advisor** 1. **Description of the current state of the advisor:** - The **News** advisor automatically trades on financial markets, focusing on news events. - In the current version, news is loaded from external sites that no longer work. - The **Stop Loss**, **Take Profit**, **Trailing Stop** levels and pending orders are implemented virtually. 2
hello here am looking for someone that can assist me in removing validation form my demo file and if anyone is interested dm the for more details i will be waiting to get any reply by some on that can assist me with this
I need an expert to trade Heiken Ashi candles according to the conditions in which Doji candles appear until signs of buying or selling appear, and to enter into trades after the Heiken Ashi candle above, using the scalping method, especially for gold and currency pairs with high liquidity. I have more details for those who want to prepare an expert
1. Trading behaviour: If blue supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If red supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. EA should place the pending limit order ONLY when the current price is about 10 points above the limit order level. Check the
Hey developers! It is my pleasure to meet you. I am looking for a developer to help meet build and develop a simple EA robot that works based on EMAs. If you are a professional and expierenced MT4 programmer looking to work on this project, do bid for this project so that we can proceed and work on it. Thank you
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
Hello, I am looking for developer who develops me a renko trading robo with following requirement Time :1 sec Box assignment method : Percentage change LTP Source : Close/OHLC Auto Break-even setup option after certain box Trialling Profit Pips after certain box profit with auto Sl set in PIPs Auto open reverse trade after hitting Sl with given conditions . It is very simple trading tool
At bot 30+ USD
Help me to trade create orders for me and analyze the markets and decide when is a good time to buy or sell. Determine which pairs are best to use to trade with and indicate trading signals to me
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding

Project information

Budget
50 - 100 USD
For the developer
45 - 90 USD
Deadline
to 5 day(s)