Building an EA
-
Goodmorning everyone.
I have an idea for the construction of an EA, I have tried alone but I can't.
Can anyone help me ???
Thank you very much. -
@don-fabi I will be glad to help you. What do you want to buid?
-
Thank you very much.
Time setting
BuyStop and SellStop grid.
With Settings of:
Number of Orders.
Distance between Orders.
Distance of first orders.
Stop Loss.
Take Profit.
Break Even.
The goal is to start at 02:00 and end at 22:00
At 02:00 if they enter the Orders
Everything closes at 10 pm and as there and back.
The first Orders are activated at 25 points from the Bid price after the distance and by 50 points for each Order.
The detail is that for each Order that closes, another Order must be placed in both directions. -
 -
@don-fabi Not bad to begin with! Can you please share the link instead of showing the image? That would be easier to manage.
-
-
-
@l-andorrà I can't understand how to make all settings and connections work
-
@don-fabi You need to create three separated block trees. Your current strutcure will never work. Separate them this way:

For the third one, use a 'Pass' block on top of the break even block. And please remember that lonely blocks do not work. I see you have a few in your project.
-
@l-andorrà Thank you very much.
So can you go ???
https://fxdreema.com/shared/Gma6LS1G -
@don-fabi This is a better distribution:

Please notice the numer of blocks on top of each tree. That should be the correct order. Additionally, you need to add the condition blocks defining when a new pending order is set (below the 'for each trade' block). And now that I see it, substitute block ID 3 by a 'Pass' block with the same number, please.
-
@l-andorrà Good morning
I don't understand why hundreds of orders open -
-
@don-fabi Because I didn't include any limiting condition under block 2. Those were supposed to be your conditions, not mine.
Because all blocks are on the 'on tick' tab, every tick two new orders are programmed. You need to specify what limitations should be applied as per your strategy. -
@l-andorrà Good morning
Kindly can you tell me what this project has. Because it does not work.
Thank you very much
https://fxdreema.com/shared/IYVgOHK4c -
@don-fabi Apparently you want to create a pending orders grid, but all your blocks are on the 'on Trade' tab. This will not work. Initially move them all to the 'on tick' tab. Then, if I understand it correctly, do you want to add more pending orders as some of the initial grid are closed, maybe?
-
@l-andorrà Yes. I am trying to create a dynamic grid.
-
@don-fabi Ok. Then move trees headed by blocks 1, 3 and 4 to the 'on tick tab'. The rest may remain on the 'on trade' tab. Then substitute all 'for each trade' and 'for each closed trade' blocks there by purple 'Trade closed' or 'trade/order created'.
-
@l-andorrà I have the same problem. Hundreds of Orders are executed. I only want 5 Orders per type
-
@don-fabi But that's exactly the amount of trades in your grid. Why adding more of them in all those additional buy/sell pending blocks?