Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
My EA is a momentum and time focused auto trader that is constantly watching the markets called "Big Blue Whale". It functions as follows:
The EA opens trades based on two variables set within its parameters, the "Spike Distance" and the "Spike Countdown".
The "Spike Distance" is a set number of pips that price must get to within a certain period of time for a trade to be opened. The "Spike Countdown" is the time in which it has to get there by.
Spike Countdown will have an input for selecting units of measurement below it between ticks, seconds, minutes and hours.
If price moves the "Spike Distance" within the time allotted in "Spike Countdown", the trade is opened at market. If it does not, no trade is opened and the Spike Countdown is restarted. This cycle continues repeatedly until a trade is opened.
Upon opening a trade, two new variable come into play. These are the "Min. Momentum Distance" and the "Momentum Countdown" parameters.
"Min. Momentum Distance" is a certain number of pips that price must gain before "Momentum Countdown" reaches zero. For example, with a min momentum distance of 5 pips and a momentum countdown of 30 seconds, price must move and remain an additional 5 pips in the direction of the trade every 30 seconds to remain open. If it doesn't, the position is closed at market.
Momentum countdown will also have an input for selecting units of measurement below it between ticks, seconds, minutes and hours.
*Note, that price moving against the trade will not count towards the min momentum distance. Only movement in the direction of the trade will qualify. This means that the Momentum Countdown acts also as a times stop by naturally closing trades that proceed in the opposite direction of the trade.
Reminder, in the parameter settings for all time based inputs, I would like to have an input for selecting the time format to be in ticks, seconds, minutes, or hours.
For all pip based inputs I would like to use whole numbers( 25 pips, 50 pips) as opposed to full length prices (.0025 pips, .0050 pips)
The position size is determined by one of two methods. The first method will be a simple raw account percentage per trade up to the maximum margin able to be put on a position.
The parameter "Use Account Percentage" will be selectable in the EA parameters, as well as "Percentage of Account to Use" to accept input if this method is enabled. Simply put, this number will determine how much of an account to use, up to the maximum margin allowed, in order to open a position. For example, 100% will open the Maximum position possible for the account size and leverage available. 10% will use just 1/10 that amount and so on.
The second method of determining position size will basically measure the strength of price momentum against our set parameters and open a position sized accordingly.
The EA will have a selectable parameter "Use Sliding Account Percentage". Upon selecting this method, an input field "Max. Sliding Account %" will become available. This method will determine position size based on the speed of price movement in reaching the set "Spike Countdown".
For instance, assume we have a Spike Distance of 10 pips and a Spike Countdown of 10 seconds. If price reaches the Spike Distance in 1 second, this indicates a faster move taking just 1/10th of the time we set, and 100% of the Max Sliding Account % is opened. However, if price reaches the Spike Distance in 5 seconds, only 50% of the Max. Sliding Account % is opened. This sliding scale continues all the way down to opening just 10% of the maximum account % set and is calculated based on both the Spike Distance and Spike Countdown upon opening each trade.
It may be useful to determine the Maximum account leverage beforehand to increase execution times and determine maximum position sizing. As such, a drop down menu will also be available to select the account leverage beforehand with the options for: 10:1, 20:1, 30:1, 40:1, 50:1 & 100:1.
Two parameters, "Use Fixed Take Profit %" and "Use Fixed Stop Loss %" will be checkable. "Take Profit %" & "Stop Loss %" will be available if either of the features are enabled respectively. What these will do is simply take profit or exit the position if a certain % of the account is gained or lost on each individual trade.
A selectable parameter "Run EA on all charts" will be selectable. If enabled, the EA will scan for trades continuously on all opened charts. If disabled, only the chart it is attached to will be scanned with the chosen parameters.
A final parameter "Max. Open Trades" will be available for input. The EA may only have as many trades open as this number allows. An input of 1 will allow only one trade on the account as a whole at a time. An input a 3 will allow 3 and so on.
Attached is a EA template overview for reference.
I'm looking for the best developers available to create this EA in the most effective way possible. High Quality coding is a MUST. Looking forward to hearing from you!