EA with market price channel strategy

MQL5 エキスパート

仕事が完了した

実行時間2 日
依頼者からのフィードバック
Wonderful work! Will find him next time!

指定

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

ファイル:

応答済み

1
開発者 1
評価
(39)
プロジェクト
50
18%
仲裁
5
40% / 40%
期限切れ
0
2
開発者 2
評価
(7)
プロジェクト
6
0%
仲裁
5
0% / 100%
期限切れ
0
3
開発者 3
評価
(73)
プロジェクト
72
46%
仲裁
2
50% / 50%
期限切れ
1
1%
仕事中
4
開発者 4
評価
(94)
プロジェクト
138
75%
仲裁
0
期限切れ
2
1%
5
開発者 5
評価
(4)
プロジェクト
6
0%
仲裁
4
0% / 75%
期限切れ
2
33%
6
開発者 6
評価
(68)
プロジェクト
111
26%
仲裁
17
6% / 71%
期限切れ
15
14%
7
開発者 7
評価
(251)
プロジェクト
382
63%
仲裁
5
40% / 0%
期限切れ
4
1%
取り込み中
8
開発者 8
評価
(222)
プロジェクト
388
32%
仲裁
52
37% / 40%
期限切れ
138
36%
多忙
9
開発者 9
評価
(458)
プロジェクト
487
52%
仲裁
10
60% / 20%
期限切れ
3
1%
10
開発者 10
評価
(34)
プロジェクト
49
43%
仲裁
3
0% / 33%
期限切れ
14
29%
11
開発者 11
評価
(247)
プロジェクト
396
38%
仲裁
82
41% / 18%
期限切れ
69
17%
多忙
12
開発者 12
評価
(2357)
プロジェクト
2960
65%
仲裁
76
47% / 14%
期限切れ
340
11%
13
開発者 13
評価
(16)
プロジェクト
29
48%
仲裁
0
期限切れ
6
21%
14
開発者 14
評価
(258)
プロジェクト
532
50%
仲裁
54
41% / 37%
期限切れ
224
42%
取り込み中
15
開発者 15
評価
(66)
プロジェクト
143
34%
仲裁
10
10% / 60%
期限切れ
26
18%
16
開発者 16
評価
(549)
プロジェクト
918
48%
仲裁
300
59% / 25%
期限切れ
123
13%
取り込み中
類似した注文
Hello, This is for an MT4 EA. I need a function to loop through all open orders and store them in arrays based on price levels. Then from these arrays (i.e. @ price 1760 there are open orders and @ price 1770 there are open orders and so on) I want to calculate the ongoing profit of pairs of 2 arrays (i.e. sell array i with buy array i+1 AND buy array i with sell array i-1). And if profit is greater than target
I don’t have any strategy my family is poor i am the eldest of my siblings my little brother died yesterday because of sickness and no money to help I deposited here this $30 it the money I begged when trying to pay for hospital bill before he breathed his last I was not able to raise full amount pls I need help to save my family $30 is little for most people but is like a gold to me i need an ea that can help me
I need ready EA which works on US30 and has not been published in any marketplace, is profitable with low drawdowns has already been backtested with the source code. I need source codes for further improvements and licensing The strategy should be not risky with SL and TP points working on RR logic. Generally. it should be ready, and tested with results. not public
I NEED WORKING PROVEN MT5 HFT USED TO PASS PROP FIRM CHALLENGES OF HFT COMPANIES PLEASE SEND ME RESULTS PROOF AND DEMO VERSION FOR TEST AS WELL AS INSTRUCTIONS OR SET FILES
The idea behind this robot is to identify and confirm the direction of the market's trend using the higher timeframe charts before switching to the lower timeframe charts to find low risk, high probability trade setups in the direction of the prevalent trend to take advantage of. For example, If the direction of the trend is Bullish, then the robot will only take long trades on the lower timeframe charts and vice
EXPERT ADVISOR NEEDED Ideally want to use for Prop Firms Requirements: 10-20% Profit monthly Can not break prop firm rules (FTMO) Would also like for live, can invest minimum 5000-10000$ Can message me on telegram if you like. Telegram -> @ghostceo0
Hello, i have an ex4 file for an expert advisor and i want to transfer it into an ex5 file to be able to use it on meta trader 5, thank you. Ps: It is not an easy code
Hi developers! I'm looking for a good developer to build an EA based on my custom SuperTrend indicator. The requirements are the following: Features of the EA: - Start hour and stop hour trade (option to enable/ disable it); - Stop trading between start and stop hour trading (option to enable/ disable it) ; - SL & TP ( TP with trailing); - Capability to compute amount lost (principal + fees); -
Hello , i want to create an EA that get the High and Low of a specific time period for example from 10:00 to 11:00 , then set a sell stop on low and buy stop on the high , with tp and sl
Can you help me with automation of a strategy. Implementation-wise i'd be flexible, though ultimately I want it all in Python. Goal is to have a simple strategy run, and enter trades on Tradovate. Tactically we can do through Pinescript into Tradovate - unless you find python just easier to begin with (And we connect to Tradovate/Tradingview APIs for necessary connectivity). The business requirements themselves are

プロジェクト情報

予算
50 - 100 USD
開発者用
45 - 90 USD
締め切り
最高 5 日