What closes the first buy? And how it was opened, under what conditions? Because if you open a new trade every time you close one, then you have one trade all the time. I do such EAs for experimenting when I don't want to put any Condition blocks, but this doesn't sound like a strategy for trading that someone will want to actually use.
Posts made by fxDreema
-
RE: Best way to achieve this?posted in Questions & Answers
-
RE: CLOSE TRADES WHEN ONE TRADE REACHES TAKE PROFITposted in Questions & Answers
I can see your experiment and it looks like it should work. But maybe you fixed it after you wrote this post. Is it working already?
-
RE: is it possible to get this info using fxdreema?posted in Questions & Answers
About the last post ^^, those functions (SymbolInfoDouble and so on) can be written directly into those input fields (Value -> Numeric), there is no need of variables
-
RE: What the advantage Visibilty Option "Hidden in the List" ?posted in Questions & Answers
I don't think that the broker can see any object on the chart anyway. If for whatever reason it can, then it should be able to see the hidden objects as well, there is no reason why not.
I think this option is if you to hide many objects with crazy names, who are not so important. Maybe temporary objects which are not used in the strategy.
-
RE: I am asking for help regarding the transaction order owned by EAposted in Questions & Answers
This translation was better. But I still wonder what is your idea. To get the information of each order... yes, you can do that, because all orders are known by MetaTrader. You can get Open Price. Lots, TP, SL and other data from any trade, any time. But what do you want to do with the data?
-
RE: Pending Order Priceposted in Questions & Answers
Just in case, you can always get the price of any trade.
-
RE: Partial TPposted in Questions & Answers
Well, the EA is programmed to see the lot step and round the number if needed. I don't even remember someone with this problem before. I wonder why it happens to you
-
RE: SELL now --- above --- BUY nowposted in Questions & Answers
@asif-20 The example above produces this result for me:

Be careful with the settings in the blocks, especially this one:

If it still produces too many trades, try to put "once per trade/order"
-
RE: Create EAposted in Questions & Answers
@rosered69 On every block you can double-click to see its settings
-
RE: Pending Order Priceposted in Questions & Answers
What do you mean to record them, for what purpose?
-
RE: How to check the last closed trade is closed by Stop loss?posted in Questions & Answers
I tried this https://fxdreema.com/shared/EarAHn7E
And it works for me. I can choose to Buy or Sell in "on Init", so this way I can change the way the trade is closed. For me if it's a Buy trade, it is closed by SL and I see the comment meessage. Or if it is a Sell trade, it is closed by TP and I don't see the comment.
Can you give me similar example (I prefer simple example) that shows the problem?
-
RE: HELP (If you don't want for free I can pay if you help me create my EA)posted in Questions & Answers
So, the thing with Martingale is that it looks at the lot size and profit of the last trade, no matter when it was created or closed. But as miro1360 suggests, you can "separate" trades in groups and Martingale will also see them in groups. But I would not increment the group, because this can cause problems if you restart the EA.
Try this: https://fxdreema.com/shared/U2WdkFUib
As a group number I use DayOfYear(), which is a MQL4 function that returns the day of the year - 1, 2... 365. It's just a number that changes every day.
There is a small issue with the Group input field, it is actually a string field which can accept values such as 1,2,3. I tried using DayOfYear() directly into the input field, but it didn't worked. So i decided to use it as a variable, which is set in block 1 and then used in 2 and 3 (and 4, to visualize it)
-
RE: Pending order with the lotaje of the open ordersposted in Questions & Answers
Lotaje? What is that?
-
RE: can it only create limit ordersposted in Questions & Answers
Yes. Long time ago when I created those blocks, I decided that the type of orders will be decided by the open price. Try this for example:

-
RE: Ask about buy or sell pending condition?posted in Questions & Answers
I tried to understand the question, but no success

-
RE: SELL now --- above --- BUY nowposted in Questions & Answers
Take a look at this example: https://fxdreema.com/demo/mt4-loop-add-to-volume-on-loss
Yes, it works with Sells only, but what I want to show with it is the idea for how to detect that the price is moved with X pips from the last trade. It can be customized of course. Instead of "add to volume", it can be something else - Buy, Sell... But do you always need to have Sell after Buy and Buy after Sell?Also, I think you can also make a pending order when you make a trade
-
RE: Ea Built using dreema executing trades even though there are no buy or sell blocks????posted in Questions & Answers
But in the example I see Buy and Sell blocks

These blocks are on the right side. I see them immediately, but maybe your display resolution is small and you need to scroll the horizontal scrollbar right in order to see them?
Otherwise I don't think that it's possible for the EA to make trades if those blocks are really not used.
-
RE: I am asking for help regarding the transaction order owned by EAposted in Questions & Answers
I don't understand your question, it is very confusing to me
I don't know what are empty orders and why they have hands 