Job finished
Specification
Hello,
i am looking to create EA for MT4 base on breakout strategy.
parameters inputs that EA will use (option that i can change them anytime):
- Start range time Hour
- Strat range time minutes
- end range time hour
- end range time minutes
- TP : percentage from the distance between high and low, example if i will write 2 and the distance is 15 pips then TP will be 30 pips
- SL : percentage from the distance between high and low, example if i will write 2 and the distance is 15 pips then SL will be 30 pips
- initial lot : the first deal lot size the EA will open
- multiply lot: when SL reach then EA will open new deals the lot will be the value here multiply the old deal size, example: if here the value 2 and the deal the closed was 0.03 then ea will open 0.06 lot
- minimum distance - i will not place limits if the distance between high and low less than this value
- max distance : i will not place limits if the distance between high and low more than this value
- delete orders hour : if we reach this time the and we DONT have open deals then pending orders will be deleted
- delete order minutes
- magic number
every day the EA will draw the range time on the chart and then will place 2 orders buy on the high rate and sell on the low rate. when one of the orders activate then the other order will be delated and create instead same order but with double volume from the open deal that i have (all the time will use sl\tp). .. will continue placing orders on high and low with SL and TP until TP will reach then when TP reach he will delete all the pending orders and in this case we can say cycle close and we will wait for the next day.
in case i didn't reach the tp on the first day i can continue in the second day (orders will not delate because i have open deals) and also will not draw new range because i didn't close the circle of the previse day.
Example:
EURUSD
high 1.0550
low: 1.0530
TP=1 SL =1
initial lot 0.01 multiply= 2
the EA will place buy 0.01 at 1.0550 and sell 0.01 at 1.0530
buy order activated --> EA will delete the pending sell and place new sell 0.02 at 1.0530
the first buy order reached the SL (in this case 0.02 sell activated) then EA will place buy 0.04 at 1.0530 and continue every time reach sl then ea will place opposite limit
when we reach TP then we are deleting all the pending orders and waiting for the next day.