please help me to create EA as per my strategy
-
i have tried to create this EA over fxdreama but not success. unable to understand how to create it properly. please anyone help me to make it as below strategy. THANK YOU.
policy :
-
i will set the open order price both buy and sell and take profit price too. (market price open also ok)
-
if buy order open then sell order price will be it's stop loss point vise versa for sell order too.
-
i will set the lot size of every order after hitting s/l.
-
next order should open pending order.(please ask me if not understand)
-
EA should work continue with previous running open order in case of chart time change, ea apply on another chart and MT4 terminal close and open.
-
example :
-
cmp : eur/usd 1.3000
-
if i set sell order should open at 1.3020 and buy order at 1.3050.
-
also i will set take profit price for sell order 1.2920 and for buy 1.3150.
-
sell order s/l will be buy order price and buy order s/l will be sell order price.(next order should be pending order open)
-
sell at 1.3020 s/l 1.3050 and buy at 1.3050 s/l 1.3020
-
now here ea has to open order continuesly one by one each time s/l will hit.
-
lot size and how many trades of same lot size will be decided in every order and order list should be there... like 1st order 2nd order 3rd order 4th order......till 20 order.
-
suppos 1st order : 0.10, 2nd order : 0.20, 3rd order : 0.40, 4th order 1.0 (2 trades) 5th order : 1.0 (3 trades) like that i will set lot size till 20 order.
-
now ea has to open order line wise if 1st s/l hit then 2nd order if 2nd order hit s/l then it has to open 3rd order like that it should continue....till 20 order.
-
remember there should be option to open decided trades of same lot size too. suppose if want to open 2 trades of same lot size or 1.0 lot size of 2 trades in 4th order there should be possible.
-
summery Ea should be like.......
*sell order price option and it's take profit option /and buy order price option and take profit price option.
*buy order s/l will be sell order price and sell order s/l will be buy order price.
*lot size option / how many trades1st 0.01 / 1
2nd 0.02 / 1
3rd 0.04 / 1
4th 0.10 / 2
5th 0.10 / 3 till 20 orders.....
.
.
.
.
.-
if frst sell open at 1.3020 with 0.01(1st order) and if hits s/l at 1.3050, then buy at 1.3050 0.02 lot size(2nd order), if 2nd order also hit s/l then sell again with 0.04(3rd order)
-
if 3rd order also hit s/l then again buy with 0.10 with 2 trades (4th order) like that ea has to open order untill it hit it's TAKE PROFIT and after hiting TAKE PROFIT again start with first lot size continue.
thank you.......
-
-
@vasu-dav-naidu for clear understanding refer the attachment.

-
Apparently you already have an initial project to begin with. Can you please share it?
-
Thank you l'andorrà for replying.
i have source code .mq4 not fxdreama project. if needed .mq4 source code i can share you
i want below correction on my current EA :-Problem 1 : once applying the EA on chart it's marking one red line that is bid rate and it's not opening any order until ask price reached to bid rate.
Resolution Need : Excute the order at market price once applied it on chart instantly no need to wait to reach Bid rateProblem 2 : while change chart time frame or applying EA on different chart and if MT4 terminal get close open or restart. EA start the working with starting and does not care of previous running
open trades.
Resolution Need : EA should work continue with previous running open order in case of chart time change, ea apply on another chart and MT4 terminal close and open or restart, any condition.Problem 3 : At the time of high volatility on market or price moved quickly from take profit in this case EA not opening order untill price back to near the take profit price of previous order.
Resoution Need : if first sell open at 1.3020 with 0.01(1st order) and if hits s/l at 1.3050, then buy at 1.3050 0.02 lot size(2nd order), if 2nd order also hit s/l then sell again with 0.04(3rd order)
if 3rd order also hit s/l then again buy with 0.10 with 2 trades (4th order) like that ea has to open order untill it hit it's TAKE PROFIT and after hiting TAKE PROFIT again start cycle
with first lot size continue (if buy order take profit hits than open buy order only if sell order hit take profit than open sell order with first stage).please confirm
-
I'm agraid fxDreema cannot import external mq4 files. That means you will have to craete it here from scratch. Certainly it's an ambitious project, but are you sure you want to base it on a martingale?
Before doing that I recommend you to read the following threads:
https://fxdreema.com/forum/topic/6624/problem-in-martingale/7
https://fxdreema.com/forum/topic/5500/reset-martingale/8
https://fxdreema.com/forum/topic/7108/how-to-use-martingale/7