One Trailing stop blocks treats its trades the same way, it doesn't care when were they opened. I will suggest to use the Group number and two separate Trailing stop blocks, one for each Group of trades
Posts made by fxDreema
-
RE: Question about trailing stopposted in Questions & Answers
-
RE: Custom indicatorposted in Questions & Answers
EAs are different than Indicators. fxDreema only generates EAs and Scripts

-
RE: Problem with stochasticposted in Questions & Answers
Here is about Once per bar: https://fxdreema.com/demo/mt4-once-per-bar I imagine the left situation. In the Condition block you can use whatever Stochastic values you want.
Here is another example that comes to my mind when someone talks about closing on opposite condition: https://fxdreema.com/demo/mt4-buy-sell- ... conditions -
RE: Objects are not deletedposted in Questions & Answers
I wrote CLR_NONE directly in OrderSend in the output code, but it doesn't work for me. This is the default value after all, OrderSend is designed to print those arrows when the value is CLR_NONE (or clrNone).
The name of this arrows does not contain "Arrow". Open Objects List in MT to see the names. This now works for me: https://fxdreema.com/shared/Jer6zQQBb
-
RE: Condition to open trade - Help Pleaseposted in Questions & Answers
Well, for such conditions I added second alternative Condition block that accepts code. You can define few Variables, then set values to them in "Modify Variables" and then write the condition with them in this Condition. Of course, regular Condition and Formula blocks can be used, but it will take more blocks to do the same.
-
RE: How to approach if several conditions should be met but they span over several bars?posted in Questions & Answers
Under "on Tick" each block that is on top level (nothing connected in its white input) runs on every tick. When you have group of blocks and one of them can't pass, then this is the last block to work. But if you have multiple paths after one block, each path will run. Look at these examples https://fxdreema.com/examples/#Interface
MetaTrader already provides arrays with candles data and indicators data. In all moments you can get O, H, L and C of candle 17 for example. The same goes for incdicators - by prividing Candle ID, you can get the value from that candle just like that.
It's a little bit harder when you don't know the ID of the candle from which you want to get a value. But it depends, some things are already avalable, like the Highest value of N candles for example. Also, for custom indicators (My indicators) there are extra options in More settings
-
RE: Modifying pending orders?posted in Questions & Answers
__Worked like a charm, amazing. Thank you!
Is there a way to make it edit the pending orders every X seconds though? I noticed tthat 'on tick' isn't quite stable, sometimes it edits them and sometimes it doesn't. It would be easier if I could just put 30 seconds or something and it would edit them automatically. I made one EA already with your tools and it had that feature but those were on positions already open, not on pending orders.
Thank you in advance[/quote:2sv0zpgj]
There is "on Timer" as well and this runs on every X seconds, no matter if there are ticks or not. The problem is that this can't be backtested and you don't really need that accurate seconds, i guess.
Under "on Tick" you can try some of the blocks in "Time Filters". They are not that accurate because ticks are not accurate, but I think that "Once per seconds" can do the job -
RE: "complex" formulaposted in Questions & Answers
It's not 1 block, but few Condition blocks and maybe Formula. These blocks are pretty simple, they do one thing only, but when you connect them in proper way, they all do the complex thing
-
RE: Why can't I copy from project to project?posted in Questions & Answers
Ok, but which project is this? Because when I'm copying in my profile, everything looks fine. Maybe something is broken in one block only, but I don't know what
-
RE: No trade nearby - case 1: and case 2: something missingposted in Bug Reports
But I believe that this is the way this block should work

-
RE: No trade nearby - case 1: and case 2: something missingposted in Bug Reports
But if you have 1 trade and the price goes below it's OpenPrice, the price is now away from this trade. I mean, from the zone between OpenPrice and 10 pips above it. This is when "At the winning side" is used.
If I put price <= OrderOpenPrice(), the "No trade nearby" will never pass if the price is below OpenPrice of the highest Buy trade. Even if there is 1 trade only, the block will never pass if the price is below trade trade.
I think we have different opinion about this "At the winning side" option

-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
I'm not very deep into EA optimizations. For the code I'm writing (in particular NodeJS at the moment), I'm sdoing my best to make everything as fast and optimized as possible. And this process took almost a year
So, making programs fast and lightweight is not very easy. And in fxDreema, not always possible, because blocks are meant to be universal, the code that is generated is mostly trash. Also, many people don't really know how to connect their blocks in the best way, and to be honest, I also don't know when some block would be faster than another.I was thinking about making some kind of code optimizer, to get the final generated code and remove the unnecessary parts. This is for later. Now... I don't know what to say. I don't understand these Amazon services, I only heard about them.
-
RE: "complex" formulaposted in Questions & Answers
In Condition (or Formula), somewhere in "Market Properties" you can get the highest value out of few candles in the past. I guess you know how to use indicators. The rest is calculations. Maybe it's better to use Formula block, which does very basic calculation. But it's also possible to work with variables, and there are other ways as well. I don't know what exactly to recommend. Check these examples here: https://fxdreema.com/examples/#Constants-and-Variables
-
RE: Where do I start?posted in Questions & Answers
What exactly do you want to know or don't understand?
-
RE: Why can't I copy from project to project?posted in Questions & Answers
I don't know exactly, it could be a bug. In general this works, but I would not be surprised if in some situation something fails. What's important is to do that while logged in with the same user and in the same browser. If you want me to investigate this, tell me which blocks from which project needs to be copied, and where.
-
RE: Feature Requests - Scale Fixing and Screen Shotposted in General Discussions
I think these are possible. There is a block for making screenshots, but with very basic settings. I made it long time ago and who knows, maybe options like "Active chart" didn't existed back then... I don't remember
-
RE: Any explanation for a single missed execution of a condition?posted in Questions & Answers
No need to be converted, just use "int" as a data type and values such as 0, 1, 2.... It's not very practical, but it should work. To be honest, I don't even know how to "see" the custom enumerations used in custom indicators from Expert Advisors. Yes, we can define enumerations in our Expert Advisors or work with the predefined, but I don't really know how to read the enumerations used in external custom indicator
-
RE: count consecutive stop lossposted in Questions & Answers
I still don't understand what needs to be counted. But each trade exists in the database of MT4 even after restarting the PC, so you can always loop through the history trades (or the running trades) and get different values out of them. Of course, most blocks in fxDreema are set up in a way to work with particular Magic Number and with the current Symbol (Market), so if you need to work with all available trades, then some small changes are needed in the blocks (their Filter settings).