Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Hello please my budget 40$ I have Range breakout EA I need:
· Change the current orders from execution order to stop orders, BUY STOP, SELL STOP
· Add Points above range in points 0=OFF
· Add Points Below range in points 0=OFF
· Add Delete pending orders time
· Add Position is too close in points 0=OFF
. Fix trailing stop loss
. Add range size filter in points 0=OFF
. Add Just buy 0=OFF
. Add just sell 0=OFF
· Add Multiplier main lot 0 = Main lot
· Add Multiplier main lot ratio 0 = Main lot
· Add Multiplier main lot times 0 = Main lot
Notes :
Multiplier main lot :: Add multiplier the main lot in new day if we have open positions from previous days same symbol chart, For example in first day the EA open 0.02 lot and still to next day, In next day the EA should open 0.04 (( if I select multiplier * 2 main lot)) if still not close the next day EA again open 0.08 lot and ..... when any day close all positions, the EA must back to 0.02 main lot.
Add Multiplier main lot ratio that mean first position multiplied by ratio and second position multiplied by same ratio.
Multiplier main lot times:: For example, I enter the 3 in input, and the expert opened new position on the 1st day of the month, And did not close it, On the next day 2nd day of the month, The expert will open second position = first position multiplied by ratio, If it did not close on this day as well and did not close position on the previous 1st day of the month, then The expert must open a third position= second position multiplied by ratio on the 3rd of the month. On the fourth day, if the positions on 1, 2, and 3 are not closed, the lot will remain on this fourth day = same third day if ((Multiplier main lot times = 3 times))
If the first day still opened in next day EA must open new position = first day multiplied by ratio or near ratio.
If the second day still opened in third day EA must open new position = second day multiplied by ratio or near ratio.
If the third day still opened in fourth day EA must open new position = same third day Positions, If ((Multiplier main lot times = 3 times))
For example, let’s say I select Multiplier main lot = 1.5 and Multiplier main lot times =3 mean just three times EA must Multiplier lot
And in first day EA opened 0.01 lot and not closed in second day EA must 0.01 *1.5 ratio or nearest ratio 0.01 *1.5 = 0.015 and that not possible, Possible = 0.02 the nearest lot, If closed second positions and first position the EA in new day must back and open main lot size.
If closed second positions and first position still opened in new day EA must open first position multiplied by ratio.
If closed third positions and first and second position still opened in new day EA must open second position multiplied by ratio.
If closed second position and first and third position still opened in new day EA must open same second position.
If closed first position and second and third position still opened in new day EA must open same first position.
And so on....., keep in mind, Possibility of closing parts of the positions manually, and the expert’s work should not be affected by this.
Notes :
((((Rang for current time)))))::If still have time before range time end, For example the EA range today from 2AM to 10AM and i want to attach the EA to chart today and now 9:50AM, If i attached the EA to chart should work for today and calculate range and put stop orders and all options of EA should work .
For new positions :: The EA now work like this way if positions still running from previous days, The EA not open any new positions in new days, I need the EA to open new positions if positions still open from previous days
EA draw lines :: the EA draw vertical lines and horizontal lines for the range, If positions still open the horizontal line extends to the next day, I need IF ANY POSITIONS STILL RUNNING TO NEXT DAYS the horizontal lines extends to the end of current day.
Position is too close:: (In Points): Work just with the same side, If we have open positions from previous days or any old orders still open (not today orders),The EA must read the orders entry price from terminal for example Sell, In new day if first order side sell if is near from the (( still SELL from any open positions )) of previous days for example 20 Points, 20 Points mean above and below Points from entry price of previous days ,The EA should not open any position today, For example I have open position Sell from previous day in price 1.2245 and set in input menu 20 Points that mean the EA should not open any position today if entry price between 1.2245 20 Points then = 1.2243 to 1.2247 and cancel trade today.
Disable trade (( for new trade )) :: That mean the EA will not open new trade if this option enabled and keep open previous positions in normal EA work conditions.
For buy stop orders when ask price reach the orders
For sell stop orders when bid price reach the orders
Fix trailing stop loss for example the EA attached to chart EURUSD and set TSL to 100 points and step to 50 points, if I have another charts EURUSD with different TSL for example 500 points TSL and 250 points step, And 750 points TSL and 500 points step The EA work with minimum TSL 100 points and 50 points step and close all EURUSD charts I need to fix that. I need the TSL work just with his chart.
Fix high and low breakout calculation look to the picture 1 i need it to be like the picture 2 and add the points above and below range if not zero.
Add range size filter in points 0=OFF For example 200 points that mean if range more than 200 points the EA must cancele the trade today
Make multiplayer True/False if true the the EA work in multiplayer options, if false then the EA should work manual ((fixed lot)) at this way
Fixed Main lot, if no position opened, then open for example 1 Lot
Fixed Second lot, if one position was opened in terminal, then open for example 1.5 Lot ((manual)).
Fixed Third lot If two positions was opened in terminal, then open for example 2.25 Lot ((manual)).
Fixed Fourth lot If three positions was opened in terminal, then open for example 3.38 Lot ((manual)).
And if EA not closed any of this four positions next trade will be same (( Fixed Fourth lot )) and if EA lets say closed any two positions the EA will see two positions in terminal and the next trade will be same ((Fixed Third lot))… and like this way, If it possible let me know.
And I need to add minimum rang size filter in points True/False
Positions is too close True/False: if True, The EA work now like this way for example If we have sell old positions and the price today for sell side near from sell old position the EA will cancel the sell position and just open BUY stop position, I need the EA to cancel both of SELL position and BUY position. And make this function True/False.
Positions is too close True/False: if False, The EA work in the current way, only one side is eliminated.
You should remove from code any license or expiration date
Looking for clean code with zero error and zero warning, And I need everything's work, in strategy tester.