Is this right?
-
Hi, I want to open an order when both indicators are crossed above or below. is this the right way to do it? Thank you.

-
Possibly, only 1 trade at a time, add a shared link so what is happening inside blocks can be seen, this will not look at two indicators at the same time, to check two types put them in the same row.
-
@realjoker said in Trade manually and by robot at the same time:
@melnsee said in Trade manually and by robot at the same time:
As I may manually create some orders, I'm curious about how we can ensure that the robot recognizes the presence of these orders.
Excellent question! In MQL4, each order in MetaTrader has a unique identifier, known as an Order ID, which is automatically assigned when an order is opened. This ID is crucial for an EA to recognize and manage its own orders, especially in an environment where orders can also be placed manually.
To ensure that the EA specifically recognizes orders that it has generated, a common practice is to use the OrderComment() field to assign a custom tag or string to each order that the EA opens. For example, you could use "EA_BUYS" for buy orders and "EA_SELLS" for sell orders that your EA places. This way, when your EA reviews open orders, he can filter them by this specific comment and act only on the orders he himself has created.
And here example
First you should define 2 blocks and give groups to the buy and sell operations, to have it better organized, since the way you have now, I understand that you do not have groups and by having the NO TRADE block it assumes that when there are no operations, Since you have not defined the group, if there are purchase operations, then if there is a BUY operation, it will not place a SELL operation. Well unless you want this goal. I attach a link where I explain to another user

It would also be very helpful, as @jstap says, if you shared your fxdreema link so I can correct it
-
https://fxdreema.com/demo/simple This is the link where you may help me guys. Thanks a lot.
-
@jstap I want the bot to close the orders in profit when MA 5 and MA 8 cross each other in both sites long and short and was thinking to have fixed SL and this is why bot will close the orders before it start reversing and the market moves to the other site.
-
You do not have a close option in any of your blocks
-
Look, open your project and share the link to the project you have, so we can help you. -
@realjoker Hello friend, I think that first you should share the link of your project to be able to help you better, secondly, the way you have the condition blocks placed, the EA will take one of 2 paths, either only with the CCI conditions or only with the conditions of the MACD, according to what I understood from your question, you want the CCI and MACD conditions to be met to make an entry, in that case you should:
place block 5
below block 2,
place block 6
below block 3,
place block 10
below block 8,
Place block 11
below block 9