@gobeef Ok. This is the basic idea. You need a variables that will be storing the value of all price levels from all pending orders right now. Then you need to compare the value of that open price with the highest/lowest one up to that moment. And finally use the highest/lowest one identified to search for its ticket number (that means a second variable for it). Once the ticket number is identified you can delete that specific order. This is the first part of that structure for the highest price, for example:
Posts made by l'andorrà
-
RE: How to delete 1 highest or lowest pending order ?posted in Questions & Answers
-
RE: For Each Position Close, Please Helpposted in Questions & Answers
Can you please share the link to your project? It should work now.
-
RE: Remove The Spread Infoposted in Questions & Answers
Then it should work for sure. It's working fine on my end now.
-
RE: How to delete 1 highest or lowest pending order ?posted in Questions & Answers
Then you need to create a loop searching for the highest and lowest price at the moment. There is no block doing that automatically. Are you familiar with loops in fxDreema?
-
RE: Hi & Low of Current Day Valuesposted in Questions & Answers
@bigfoot The problem is that the market doesn't know what the high will be until today's session is closed? How can you tell the EA what is the high today if it can change the next minute?
-
RE: MARTINGALE RESETposted in Questions & Answers
@Aitor-0 I missed your question, sorry. Here you have my customized martingale project doing exactly that:
-
RE: What am I doing wrongposted in Questions & Answers
Do you really need the rectangle? Using variables instead would make it far easier.
-
RE: Remove The Spread Infoposted in Questions & Answers
It works fine on my end. Are you using MT4 or MT5?
-
RE: How to delete 1 highest or lowest pending order ?posted in Questions & Answers
What do you exactly mean by ' Highest or Lowest pending'? Highest/Lowest price level maybe?
-
RE: Hi & Low of Current Day Valuesposted in Questions & Answers
So the pending order is programmed today but you are searching for yesterday's High and Low. Right?
-
RE: Question on Trading Time settingposted in Questions & Answers
@jstap Correct, except for the DST periods between Europe and the US.
-
RE: Repeat buy or sell from the same price pointposted in Questions & Answers
That would require a full structure doing that. It is not that easy as to upload a screenshot. Those are the substructures necessary (for buys only):
- Variable 1 counting how many times the level is hit.
- Variable 2 counting how many times the open price is hit after the previous level was hit.
- Matching variables 1 and 2 structure monitoring when the condition is met.
- Resetting variables 1 and 2 when point 3 happens.
As you can see that is not a trivial thing to do. You can try to begin it and I will assist you to review it.
-
RE: How to set candle ID and group?posted in Questions & Answers
The problem is that block 43 is searching for all open trades, regardless the group number. You need to specify the group number that is to be closed. So you should create more than one closing structure, each specifying what to close per group.
-
RE: I want to place an order at atr 2 level.posted in Questions & Answers
@yazar-ilyas Then you will need a variable like this:

-
RE: how to place orders at the same timeposted in Questions & Answers
@kk-fxdreema-2 Yes, but all the charts symbols need to be visible on the MT4's market watch window. Otherwise they will not be open.


