Need help to build simple EA
-
@fxdreema How many ea can i build in a day? my first ea was working then i did some modifications. Now it's not working again......
also, how do i create eas having different Magic? -
Hi everybody,
I am working on an EA. My EA should work like this :
Buy now and sell now at the start of EA. It then opens Sell and Buy pending orders with selectable lot sizes, offset from current price, with or without TP and/or SL. The most important thing is that when any TP is hit the EA should close all positions including all pending orders. It then start the process all over again. Can anybody help me. I have ensembled few blocks but so far never work as inspired.
-
You can check the number of trades / orders under "on Tick" and close everything ( Close trades, Delete pending orders) when that numbers is less that what is needed. Or under "on Trade" you can detect the event when some trade is closed and react on that moment.
-
__You can check the number of trades / orders under "on Tick" and close everything ( Close trades, Delete pending orders) when that numbers is less that what is needed. Or under "on Trade" you can detect the event when some trade is closed and react on that moment.[/quote:pzb98497]
I have tried and still can't make it. Appreciate if you can help me to add blocks needed for the said functions based on my blocks below. Thanks Admin.
https://fxdreema.com/shared/kqtghXD0b
Thanks
-
Now what you have is as direct as it looks like - in one shot you are creating 2 trades and 6 pending orders. Then depending on the price another trades are created ot of the pending orders, but when no trade left - another shot of 2 trades and 6 pending orders is created.
Please, take a look at some examples here: https://fxdreema.com/examples/
This is how to close everything when one trade closes: http://prntscr.com/9jhpxx
-
__Now what you have is as direct as it looks like - in one shot you are creating 2 trades and 6 pending orders. Then depending on the price another trades are created ot of the pending orders, but when no trade left - another shot of 2 trades and 6 pending orders is created.
Please, take a look at some examples here: https://fxdreema.com/examples/
This is how to close everything when one trade closes: http://prntscr.com/9jhpxx[/quote:2tnlwq1h]
I have incorporated blocks you have suggested. Total blocks is now 10, the limit that we can have on this free version. Unfortunately, after compilation and installed, it does not fire. What can be wrong here? Do you have any idea why. In this limited version, they don't allow me to create anymore links and cutting/pasting using Lightshot is also not available. Otherwise, I can show you what I have done. Tq
-
It works for me: http://prntscr.com/9k477a
http://i.imgur.com/tvOgVfE.pngI can see your projects. I don't know what is wrong for you, do you have error messages or something?
But what is wrong with Lightshot, this is fantastic soft and as you can see I am giving screenshot made with it. I also use it to show everything to my friends
-
__It works for me: http://prntscr.com/9k477a
http://i.imgur.com/tvOgVfE.pngI can see your projects. I don't know what is wrong for you, do you have error messages or something?
But what is wrong with Lightshot, this is fantastic soft and as you can see I am giving screenshot made with it. I also use it to show everything to my friends :)[/quote:1git9iv8]Thanks. I got it now running as you did. For more aggressive EA, I need to subscribe and pay. Lightshot also working as usual. Thanks to you. TQ
-
__It works for me: http://prntscr.com/9k477a
http://i.imgur.com/tvOgVfE.pngI can see your projects. I don't know what is wrong for you, do you have error messages or something?
But what is wrong with Lightshot, this is fantastic soft and as you can see I am giving screenshot made with it. I also use it to show everything to my friends :)[/quote:1fuhawdj]Hi fxDreema Admin,
Now, if I want to modify my EA in such a way that it will replace with the same order/trade once its TP is hit. What bock should I use? It's not obvious for me. Thanks again.
-
Now when TP is hit everything is closed and then new set of 2 trades + 6 pending orders is created. You want to add one more trade with that? If this is the case, maybe something like this: http://prntscr.com/9koj5u
http://i.imgur.com/Q9SljU2.png -
__Now when TP is hit everything is closed and then new set of 2 trades + 6 pending orders is created. You want to add one more trade with that? If this is the case, maybe something like this: http://prntscr.com/9koj5u
http://i.imgur.com/Q9SljU2.png[/quote:2jcy2cvs]Thanks for the suggestion, but what I need this time is that when any of the trade hits its TP, it will be automatically replaced with the same one and other positions should not be closed as before. This should happen for all positions - pending or otherwise. Thanks again Admin
-
I don't know, try something, you saw some examples. I obviously don't get the idea

-
My EA wont delete the remaining pending order when reach the targeted TP and start the whole process again.Please advise
-
kusilie, I have no idea how your EA looks like
-
@remzeal Are you a free user maybe?
-
No, i subscribed recently
-
@remzeal Can you please create a new thread woth your EA requirements? I promise I will take a look at it.
-
Here ia the link; shared/m2NfwcwBb
-
2021.01.06 10:09:04.430 GBPUSD,M15: 10461468 tick events (16284 bars, 10461568 bar states) processed in 0:01:36.253 (total time 0:02:03.927)
2021.01.06 10:09:04.430 2020.12.31 20:59:48 Mzx GBPUSD,M15: Expert Advisor self terminated
2021.01.06 10:09:04.430 2020.12.31 20:59:48 Mzx GBPUSD,M15: Average ticks per second: 109
2021.01.06 10:09:04.430 2020.12.31 20:59:48 Mzx GBPUSD,M15: Backtested in 96.11 seconds
2021.01.06 10:07:28.171 2019.08.12 00:00:00 Mzx inputs: MagicStart=2569; inp7_VolumeSize=0.1; inp7_StopLossPips=0; inp7_TakeProfitPips=50; inp8_VolumeSize=0.1; inp8_StopLossPips=0; inp8_TakeProfitPips=50;
2021.01.06 10:07:07.593 TestGenerator: unmatched data error (high value 1.27452 at 2020.07.23 18:00 is not reached from the least timeframe, high price 1.27397 mismatches) -
@remzeal Please create a new thread with your request. I will not answer any more posts here.