Tâche terminée
Spécifications
I need an EA with 5 basic functions all reversal trades limit orders:
- taking my manually plotted Horizontal lines. the EA should detect automatically the horizontal lines of any color present already on the chart, I also need to be able to turn On or Off this function
- Then in case I want to use an indicator to spot horizontal levels of SnR I want to implement the function to use an indicator that place horizontal levels of support and resistance, this indicator is names Support and resistance barry , I join the mql4 file below the description so for this one, I will need a line in the input parameter window to activate the use of this indicator to place horizontal levels of support and resistance from the daily chart only I also need to be able to turn On or Off this function
- Taking the trendlines already plotted on the chart so the EA should detect them automatically I also need to be able to turn On or Off this function
- Taking 4 different EMA, the 20period the 50period the 200period and the 800period all apply to close I also need to be able to turn On or Off this function
- As a filter to take those levels I use the daily envelopes with those parameters by default
![](https://c.mql5.com/21/163/image__25.png)
- In the input window of the EA the period, the shift, the MA method and Apply to close should not appear but should be by default like in the picture, the only line I need on the input window is the Deviation customizable and set to 0.7 by default
- I need the envelopes to be used as a filter and the EA should take all the previous levels (Horizontal lines, Trendlines and EMAs) only when the price is outside of the daily chart envelopes that’s a first use of it and I need to be able to turn On or Off this filter if I want the EA to take the levels without taking in account the envelopes
- Also I want to be able to take the envelopes as reversal if I need too so I need another function to be able to trade the envelopes as reversal trade levels, this function should be able to be activated or not too in the input window
- Finally whatever Deviation I chose to input in the EA I want the EA to display visually where are the envelopes on the chart at the present moment
Basic fonction:
The EA place a Buy/Sell limit order (only when the price broke outside the daily envelope) at the next horizontal line/Trendline or EMAs depending which option I chose
Indicator used
The envelopes are included in the mt4 platform plus the 14 days average ADR that I include
The EA should not modify the template that I use
Pairs traded:
All Forex pairs even exotics if I want to, I should be able to trade the indices and metals too especially XAUUSD XAGUSD XAGEUR so the number of digit and the pips computation need to be quality coding
Entry Point:
At my manually placed horizontal or trendline level outside the envelopes using the daily chart only
- Signal to open a position - (all of the indicator parameters should be adjustable):
- A long-position is opened if the price is outside the lower part of the envelopes and touch a specific EMA or an horizontal line or trendline ; To verify should be done
- A short-position is opened if the is outside the upper part of the envelopes and touch a specific EMA or an horizontal line or trendline ; To verify should be done
2. if I want to make en entry at the 20 ema 50 ema and 200ema and 800ema I want to select if i activate it or not the trade type will be the same
3. if I want to make an entry at an horizontal line that I have drawn on my chart or a trend line
4. The strategy is from the daily chart
SL definition
- StopLoss (SL) - are defined by the daily ADR computation below or, adjustable by the parameters StopLoss:
- The levels are specified in points of 5-digit quotes;
- The levels are calculated relative to the price of opened position ( the Ask price - for the long positions and the Bid price - for short positions);
Using the Simple ADR indicator that I join
the Stop Loss is computed as follow
SL= 0.36 X (14period ADR)
I need this line appearing on the input parameters window with the name SL ADR multiplier
And I also want another SL definition in the input parameters window in pips if I need it and set to 0 (= inactive) by default
I need another line named SL multiplier because I need to be able to multiply the SL value if a pair is more risky like XAUUSD for example so I'll need a line in the input panel set by default to 1 and that i can change to 1.5 or 2 if I want to multiply the original SL value on the specific pair
Type of Order:
All The trades are reversal trades so it will always be Buy or Sell Limit orders or a market order execution depending which one takes the less memory for my computer, take note that I will run the EA on 54 + pairs so the memory it will take is important that’s also why I need quality coding
Size of the trade:
I need to be able to set a specific % of my equity per trades I don’t need to use a lot value I need the EA to always compute for me on each trades a specific % of my account
- The position volume is calculated as a percentage of the current balance: Lot = Balance/MarginRequired * LotPercent / 100 where:
- Balance - current account balance;
- MarginRequired - the margin required to open a position with a size of 1 lot;
- LotPercent - an input parameter (the percentage for the calculation of the lot).
For example, when the LotPercent = 5, with a 1:100 leverage, the lot for
EURUSD (at current price of 1.3900) will be: 10 000 / 1 390 * 5 / 100 = 0.3597
The obtained result is rounded off by the usual rules to the
nearest correct value (up to 0.36 - if the DC allows lots with a precision of up to 0.01, or up to 0.4 - if the lot step = 0.1).
Target Profit
I want a function by default of taking 3 rewards (3 times my SL value) as TP
So the 1 stline I need in the input parameters window for the TP is =>” RR ration TP” set to 3 by default and customizable
Then another line for TP set in pips, set to 0 (= inactive) where I can set a specific amount of pips for a possibility to manage it manually
by the parameters TakeProfit:
- The levels are specified in points of 5-digit quotes;
- The levels are calculated relative to the price of opened position ( the Ask price - for the long positions and the Bid price - for short positions);
- I need another type of TP I need the EA to be able if I want to, to take profit when the price touch the 5 period EMA this option will need another line in the input parameters windows named “TP 5 EMA” to make it On or Off
Other specificities protections
· I want some different protections
- 1 st1 line in the input parameters window that I can customize the number to take maximum 2 trades with the same currency pair at the same time,
- 2 ndI need a second line in the input parameters window that I can customize the number to take maximum 2 trades with the same currency this time at the same time,
- 3 rd I need a 3rd line in the input parameters window that I can customize the number to take maximum 3 trades with the USD currency this one is an exception at the same time,
- so if I have 1 trade on EUR/USD and 1 on EUR/JPY the EA can’t open a 3 rdtrade with any other EUR currency in it , this should be adjustable for the USD
· 4 th protection another function in the input parameters window not more than 8% (8% is default but should be customizable) of the account at risk at the same time, I want to be able to modify this value if necessary but always in % of my account size or equity
· 5 thI need to set also a protection of my account like : closing all positions on Friday 1Hour before market will close so I don’t hold any trades during the week end
· 6 thAll pending orders not triggered should be cancelled every day 1h before market close until 1 hour after market opens this is an important security no pending trades should be in place 30 minits before the end of the daily candle and 1 hour after the opening of the new candlestick and no trades runs during the week end this should appear eventually in the input parameters window as a time interval when the EA should trade from 1:00 until 23:00 for example
· The EA keep OPEN trades over night but not oVer the week end
· to keep track of the trades once closed I'd like a little arrow on the entry point, a little red line on the SL and a little blue line on the TP I join a pic of it
Jumping Stop
I want an option that I can set on or Off to jump my SL when price reach 2 rewards, a jump stop not a trailing stop in the forme of a line in the input parameter window named Jump stop RR ratio set to 2 by default but customizable and a second line to enable or disable this function
In case the levels are broken
I want the EA to take automatically the next levels with a limit of 3 trades on the same pair during the same day I want a line in the input parameter window set to 2 by default
And if the level is broken I want the EA to increase/multiply the SL value by 1.5 for the next trade if happens on the same day
So if the 1 stlevel had a SL value of 25 pips, I want the next trade if happens the same day to make the SL 25pipsX1.5=37.5pips
Let me know if you need clarification on this one
Number of trades opened per pairs:
I need the EA to have opened 2 trade maximum at a time on the same pair
Panel Input: parameters needed:
All the parameters discussed above +
· Customizable sound alert when enter a trade
· Screenshot of the trade when entering a trade
* A possibility to save the settings in the preset like other indicators
* 1 line input by EMA if I want to modify the EMAs periods
* Market filter:
I need a line in the input to filter a maximum spread where the EA won’t trade.like 3 pips by default then
Another line in slippage case value 5 by default like in this picture
- Miscellaneous:
- When you run the Expert Advisor, it should attach the used indicators with the specified parameters;
- The information on the opening/closing of positions and of modifications of the SL should be stored in the Journal;
- If there are any errors, it must print a message describing the error.
Please answer those questions too Before making an order it is necessary to find out all of the conditions for cooperation:
- Is it possible to work through the "Jobs" service?
- Is prepayment required, and if so, how much is it?
- How the program will be checked? Will you get a demo version?
- Will you get the source code of the program, and if so, when - after the complete payment or right away?
- Who will own the rights for distributing the program?
- How long will be the technical support and on what terms? Will the fix of errors (discrepancies from the algorithm) be done free of charge? How much will small improvements cost?
I need someone professionnal who can code cleanly the EA and verify each details specified here before sending me a version to test, I have made the description as clear as possible but don’t hesitate to ask me questions if you need