Haydn's Breakout EA

MQL4 Experten

Auftrag beendet

Ausführungszeit 13 Tage
Bewertung des Kunden
Alexander is fantastic, he coded quickly, code is clearly written. He answered my questions and used screen shots when explaining the functionality of the EA. Will definitely use again.
Bewertung des Entwicklers
Detailed description + good communication skills = everything perfect. Thanks!

Spezifikation

Settings Adjusted by User

 


Day and Time the EA executes

(This EA should execute at the time set on each of the days selected)

 

Day 0:  False  //Sunday

Day 1:  True    //Monday

Day 2:  True    //Tuesday

Day 3:  True    //Wednesday

Day 4:  True    //Thursday

Day 5:  False   //Friday

Day 6:  False    //Saturday

 

Start Time:  7am


(See attached file "Bar setup.jpg" for example of what an opening time frame might look like)


(At the day and time set by the user above I want the EA to find the trading range between two points in time specified below – shown in the screen capture attached "Bar setup.jpg" as the orange and the brown vertical line.  The user sets the period used to calculate the trading range by counting back the bars from the opening time bar.  In the example above the user set the trading range from 16 bars back to 3 bars back.

 

Note:  Please feel free to advise whether it is better to select the time period over which to calculate the trading range by using bars as described here, or actual times)

 

TradingRangeOpen: 16

 

TrandingRangeClose: 3


(The trading range is the maximum and the minimum value that was reached by the currency pair during the trading range time period.  At the day and the time the user set above the EA will then set two pending orders with the following settings)

 

LongBuffer: 20

LongStop:  500

LongTP:  0

 

ShortBuffer:  20

ShortStop:  500

ShortTP:  0

 

TrailingStopActive: False

TrailingDistance:  120


(LongBuffer is the number of pips above the TopTradingRange, this should be the value that the EA opens the pending order at if the price breaks above the trading range.  LongStop is the stop loss for the pending long position and LongTP is the take profit value to set with the pending order.

ShortBuffer is the number of pips below the BottomTradingRange, this should be the value that the EA opens the pending order at if the price breaks below the trading range.  ShortStop is the stop loss for the pending short position and ShortTP is the take profit value to set with the pending order.

 The position of the pending orders, as set by the LongBuffer and ShortBuffer settings above are shown in Purple in the attached screen capture “Bar setup.jpg”.

I would like to include the option of setting a trailing stop, but I don’t know how best to include that functionality or what settings need to be specified in order to set a trailing stop.  Please advise.

I would like to be able to turn the trailing stop option on and off.  If the trailing stop option is turned on then the EA will use the trailing stop settings.  If the trailing stop option is turned off then the static stop losses, LongStop and ShortStop defined above will be used instead.  LongStop and ShortStop will not be used if TrailingStop is set to True.

As I understand EAs the SL and TP levels are specified in points not pips.  I use a five digit broker and so I need to specify my stop loss x 10, to say 50 pips for me I will need to enter 500.


When value = 0 no SL/TP is set)

 

Other user defined settings

Lot Size = 0.3

Money Management = False

(see below for description of how I would like this EA to calculate lot size when money management is turned on.  If money management is turned off then EA will use the lot size specified here)

 

MarginPrice = 155

PercentageofEquity = 0.1

LotSizeMultiplier = 0.1

(To calculate the lot size to take when money management is turned on the user needs to specify what their broker charges for margin.  That value is then used to calculate the lot size.  The user also specifies what percentage of equity should be used to open positions.  Lastly the user selects what order of magnitude lot size to use, ie to use micro lots the user would enter 0.01, to use mini lots the user would enter 0.1 and to use standard lots the user would enter 1 – if possible can these three options be offered as a drop down selection as it will one of those three that should be selected here.  The default value can be 0.1)

 

Magic Number:  15555

Check for Manual Positions = False

(Under the section below “Each time the EA is triggered” the EA should check for open positions using this magic number and whether the free margin is less than Account Equity.  The "Check for Manual Postion variable allows the user to turn off that second check)

 ClosingTime = 23:55

 (I need some advice on how best to close the position since I think it will be affected by how MT4 executes the instructions from EAs, but I am not sure.

 I would like to be able to specify time, and the positions with this magic number are closed at that time.  If I am using 1 hour charts can I specify intermediate times?  For example, could I specify that I wanted to close my positions at 21:45?  Or do I have to use whole bar times.  So would I have to specify 21:00 and I would actually be using the closing price of the previous 20:00 bar?

 

Lastly can you please advise how you can specify a time beyond the current day?

 

The opening settings earlier let you choose which days of the week the EA is active.  If the day is active then at the time set the EA will execute.  If for example the EA executed on Monday, Tuesday, Wednesday and Thursday, at 9pm and you wanted to close the positions at say 4am, how would you do that since that would be 4am the next day.

 

Please advise.

 

See the section below for the checks to perform each time the EA executes to prevent more than the set number of positions being opened)

 

MaxTradingRange:  1000

MinTradingRange: 40

 

(MaxTradingRange, is the maximum size in points of the trading range.  If the Trading range is larger than this value over the time period selected above, no position will be opened.  MinTradingRange is the minimum size in points of the trading range.  If the Trading range less than this value over the time period selected above then no position will be opened.  Note: the above value is specified in points so for a five digit broker the above values will specify 100 pips and 4 pips respectively)

 

CancelPendingOrders: 12:00

 

(CancelPendingOrders is the time that any pending orders for this EA only that are still opened should be cancelled.  There will only be pending orders remaining at this time if neither of the pending orders has been triggered.  If one of the pending orders is triggered, the other pending order should be cancelled and so if one of the pending orders is triggered then there won’t be any pending orders to cancel)

 


Money Management

 

To calculate the Lot Size to open

(using the values for MarginPrice, PercentageofEquity and LotSizeMultiplier specified above)

 

LotSize = (Equity*PercentageofEquity/MarginPrice)* LotSizeMultiplier

(And then just use the first decimal place.  E.g. if I had Equity of $10,260.24 with a margin setting of $155 and wanted to only use 10% of my equity, then I would get:

 

($10,260.24 * 0.1 / $155)*0.1

= 0.6619509677419355

= 0.6

 

(Note: I don’t want to round up or down I just want to use the first decimal place here, ie in the number above, 0.6619509677419355, I want to use 0.6 not 0.7.

 

So as I understand it we can’t use NormalizeDouble(LotSize, 1) since that will normalize to the first decimal place but it will do it by rounding and I would end up with a lot size of 0.7 in this example. E.g. see discussion at: https://www.mql5.com/en/forum/113562

 

To only use the first digit without rounding I think we have to first of all multiply the raw LotSize number by 10 to move the first decimal place to the left hand side of the decimal point:

0.6619509677419355 x 10

= 6.619509677419355

Then convert to an integer which will remove all the decimal places:

= 6

Then convert back into a double and divide by 10

=0.6

 

If that is not possible then just normalize double to two decimal places, ie NormalizeDouble(LotSize, 2).  Or if you know of a better way of using the first digit without rounding then please advise

 

Again, I hope that makes sense)

 


Each time the EA is triggered

 

(Each time the start day and time set by the user occurs, eg 7am in this example, the EA should check if there is already any positions open.  Check for open positions in two ways:

  • Check that there are no positions with this Magic number open
  • Also check that Free Margin is not less than Account Equity (so that way any manually opened trades, or trades by other EAs on other charts are detected)

If any of these checks are true then don’t open anymore positions and wait until next week to check again

 

Note: The Free Margin check can be turned off by the user setting listed above)

 


Cancelling the Pending Orders

(When the EA is executed at the day and time set by the user the EA then places the pending orders.  If one of the pending orders are triggered, the other pending order should then be cancelled.  If none of the pending orders is triggered, then both pending orders for this EA only should be cancelled at the time set above)

 


Error Return

(You probably have a better idea of the sorts of values that the EA needs to check and what sorts of errors need to be reported than I do but for the sake of completion some that come to mind are:   )

 

(Check that Stop Loss and Take Profit were entered correctly.

 

Note: I am not sure what to put here since my broker has particular minimum values probably related to their spread which I think is different for each currency pair.  I think for the GBPUSD, for example the min stop loss distance for example is 12pips, so if the user entered a value of 100points (10 pips) in this EA, no stop would be entered.  I do not know how an EA running on a virtual server returns errors or how you tell if the EA is not carrying out its instructions as I intended.  If the stop cannot be entered (because the broker won’t accept one that is too low) I don’t know if that prevents the entire EA from working or whether the position is still opened but just without a stop.  I know when opening a position manually if the stop loss is entered incorrectly then the entire position cannot be opened so I suspect the same is true for an EA.  I don’t know how to get the EA to check if an appropriate value has been entered for Stop Loss or Take Profit, so if you could suggest something here that would be great.  If possible, so that the EA is not stopped by a stop loss (SL) or Take Profit (TP) entry error, if it is possible, if the value entered is below the minimum allowed by the broker, just set the SL and TP to whatever the minimum is.  Again I am happy to be guided by you as to what the best way of going about this is )


 


Closing the Position

 

 (All positions from this Magic Number should be closed at the time specified by the user)

 


Notifications

(The opening and closing of the positions should be indicated on the chart. I am happy to be advised as to the best way of doing that.  I have seen screen captures of other EAs that show the open and close of executed trades with a dotted line drawn between them.  If this is possible I would like to colour the dotted line blue for a buy trade and red for sell trade – see attached “Marking trades on chart.png”)

 

(In the Journal the actions taken by the EA should be noted along with the Magic Number, eg EA [Magic Number]: Pending orders placed; EA [Magic Number]: Buy order triggered, pending sell order cancelled; EA [Magic Number]: No pending orders triggered, pending orders cancelled; EA [Magic Number]: Buy order Closed P/L =  $XX.XX.)



Bewerbungen

1
Entwickler 1
Bewertung
(844)
Projekte
1445
72%
Schlichtung
119
29% / 47%
Frist nicht eingehalten
355
25%
Arbeitet
Veröffentlicht: 3 Artikel
2
Entwickler 2
Bewertung
(89)
Projekte
137
24%
Schlichtung
35
9% / 40%
Frist nicht eingehalten
52
38%
Frei
3
Entwickler 3
Bewertung
(414)
Projekte
670
33%
Schlichtung
60
17% / 32%
Frist nicht eingehalten
113
17%
Arbeitet
4
Entwickler 4
Bewertung
(130)
Projekte
210
40%
Schlichtung
90
20% / 43%
Frist nicht eingehalten
85
40%
Frei
5
Entwickler 5
Bewertung
(53)
Projekte
79
18%
Schlichtung
13
15% / 54%
Frist nicht eingehalten
5
6%
Frei
6
Entwickler 6
Bewertung
(298)
Projekte
427
26%
Schlichtung
18
61% / 33%
Frist nicht eingehalten
26
6%
Frei
Veröffentlicht: 8 Beispiele
7
Entwickler 7
Bewertung
(121)
Projekte
134
66%
Schlichtung
36
25% / 56%
Frist nicht eingehalten
22
16%
Frei
Veröffentlicht: 10 Beispiele
8
Entwickler 8
Bewertung
(229)
Projekte
339
49%
Schlichtung
21
5% / 33%
Frist nicht eingehalten
24
7%
Frei
Ähnliche Aufträge
Project description: Development of a high-precision scalping Expert Advisor (EA), optimized for small capital accounts (starting from 50 USD) with 1:30 leverage on the IC Markets broker platform. The EA should be ready for use on both demo and live accounts, with pre-optimized settings, but with the flexibility to adjust all parameters. Mandatory technical requirements (all must be demonstrated in a working demo)
I need an edit and modification done to a deriv bot, who has experience in same, please reach out, Currently I have a system that only martingales on new signal but I want it immediately after a loss and then switch to ping pong
Hello 👋🙂 I need help with a very small finishing task 🧩 A previous programmer almost completed the EA , but stopped right before the finish line 🏁😅 Everything is already prepared and clear — just needs the final touch 🔧✨ This is NOT strategy work ❌🧠 The trading logic is already done, tested and working ✅ Only simple completion / cleanup needed. ✅ What’s already provided: Python source code 🐍 Exact entry &
Need a pro dev to create an MT4 Expert Advisor ("Monitor EA") acting as execution firewall & auto-recovery controller for multiple EAs on XAUUSD (M1). How it works: Runs on blank chart; controls EAs via chart/template actions Closes/reopens charts to manage trades (EAs aren't editable) Targets IC Markets/VT Markets ECN Raw Source code handed over on completion Key Features:* XAUUSD (Gold) focus M1 timeframe
We're looking for a highly professional MQL5 developer to create FX Apex, an advanced scalping EA optimized for small accounts ($50+), 1:30 leverage, IC Markets broker, and ready for demo/live trading. Key Features:_ Scalps XAU/USD & major pairs (M1-M15), option to add more Adaptive TP/SL based on volatility, trend, ATR, momentum Dynamic trailing, breakeven, partial close functionality Configurable risk per trade
We are looking for a highly professional MQL5 developer to create the Ultimate Super Scalper EA, optimized for small accounts starting from $50, with a leverage of 1:30, broker IC Markets and ready for both demo and live trading. This EA should be fully configured for maximum profitability upon delivery, but all parameters should remain modifiable by the user to adapt the risk, frequency of trades and trading
I have pine editor script I want to convert this into MT5 EA Main i want to match tv and mql5 buy and sell signal to match in trading view i use this with heikin ashi candles things to add in this but after main need to be done 1 Ea start stop time 2 Manual lot size 3 tp sl - on Ea start if i want to add separate tp for first 2 trades and after that same tp 4 halt ea and close all trades after over all daily profit
Hello Programmer! **Objective** Create an **MT4 Expert Advisor (“Monitor EA”)** that runs on a single blank chart and acts as an **execution firewall and auto-recovery controller** for all other EAs trading on the account. Because existing EAs are **not editable**, the Monitor EA will control trading by **closing and reopening charts/templates** instead of modifying EA logic. Target Platform: **MT4** Broker Type
💰 BUDGET: $2000-$4000 XAUUSD EA (Negotiable) Institutional XAUUSD EA with 20+ Systems | Sharpe 4.2+ | Quant Firm Standards DESCRIPTION I need an experienced MQL5 developer to build a professional institutional-grade EA with 20+ integrated trading systems for MetaTrader 5. CORE REQUIREMENTS: Architecture: • 20+ independent trading systems (trend, mean reversion, volatility, breakout) • ON/OFF toggle for each system
Hi , I am finding scalping Ea for Mt5 which can work on all pairs and have back tested results at least of 1 year and is currently running in Mt5 so i can login and see how it is performing who ever have message me

Projektdetails

Budget
60 - 100 USD
Ausführungsfristen
von 14 bis 28 Tag(e)