Multiple trades or 1 buy and 1 sell?
I recently added a block to work with basket of trades. The block selects certain group of trades and then in "Condition" few values are available, for example the total profit of the group. Multiple groups can be selected at the same time as well, so they can be compared. But better don't use == to compare such things, use >= or <=
Posts made by fxDreema
-
RE: Balance for the active tradesposted in Questions & Answers
-
RE: Compilation errors Server error, the file cannot be compiledposted in Questions & Answers
Use this:
C:\Users(my username)\AppData\Roaming\MetaQuotes\Terminal\CBC1E074A032EF0E6A1328D19FB1736E\ -
RE: Why here appear blank? Block did not it?posted in Questions & Answers
Because of some Javascript error, but I don't know exactly what is the problem because I don't have other reports for this. It's probably because of the chinese letters, but again, I don't know where the system breaks.
On Google Chrome, open the Developer Tools (Ctrl+Shift+I) and under "Console" there should be some error message. What is it?
-
RE: The 5 th digit in a Global Variable disapeared ??posted in Questions & Answers
https://fxdreema.com/shared/0jRPG1yJc
http://prntscr.com/8i0ph1Maybe the open price has 0 at the end and it's not displayed
-
RE: The 5 th digit in a Global Variable disapeared ??posted in Questions & Answers
I don't remember how months ago I renamed them to Terminal Variables, I guess you are using some old version. But anyway, I will suggest to understand the difference between those two different types of variables. The normal variables exists inside the EA and it's global for all it's functions, while the other are variables used to transfer data between EAs in the same MetaTrader. Those terminal variables are like cookies in the browsers - they are stored in files.
-
RE: Condition from offline chart to another chartposted in Questions & Answers
Any EA can only read the data from it's own chart. There is a way to transfer values between EAs, but... what is the problem exactly?
-
RE: For each Closed Trade no working?posted in Questions & Answers
I tried this thing and it works for me. But it depends on the datatype of the variable. For Time it's "datatime" normally. What do you want to do with that value?
-
RE: fxdreema cannot read indicator bufferposted in Questions & Answers
Use Candle ID at least 2. This indicator has nothing for the current and previous candle.
-
RE: The 5 th digit in a Global Variable disapeared ??posted in Questions & Answers
Why do you still use those Terminal Variables? Do you really, really, really, really, I mean do you really want to use them instead of the regular global variables?
This block called "Set Global Variables" was renamed to "Terminal Variables" long time ago. Well, I still need to update some naming inside it, but this block also works with the Terminal Variables. Do you really want to work with these?
And for the question, I don't know, maybe this value has 0 at the end that is not displayed. Obviously the value above has 5 digits
-
RE: Ability to add comments to blocksposted in Questions & Answers
Comments, where exactly?
Oh, patterns...

-
RE: TrendLine EAposted in Questions & Answers
Now the loop block looks to be working, but probably something is wrong in the condition, I don't like this crossover very much
-
RE: Asign sell price to a variableposted in Questions & Answers
Imagine what was the confusion before when the name "Global Variables" was used. And they are in fact named exactly "Global Variables", just hit F3 in MetaTrader and you will see the title of the windows that will appear. Then I decided to rename them to "Terminal Variables", but people are still confused

-
RE: Asign sell price to a variableposted in Questions & Answers
Again, Terminal Variables are NOT the same as the project's Variables. https://fxdreema.com/help/-/working%20w ... 0variables
Do it like this: http://prntscr.com/8g92lo -
RE: new learning basicsposted in Questions & Answers
The left side is correct, the right is not. This is also explained here: https://fxdreema.com/demo/mt4-wrong-closing-rule
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Well, I there is no way now in fxDreema to keep the variables in file and then read them from them, but almost the same problem appears for this way of doing things as well. If there is a cache file for each EA, how can we correctly identify EAs?
-
RE: Asign sell price to a variableposted in Questions & Answers
No, no, Terminal Variables are something completely different. Put the variable (with right-click) in Value->Numeric (Text, Boolean...), not in Terminal Variables
-
RE: Opening price for pending orders.posted in Questions & Answers
Where can I see what you are doing?
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
What about those Terminal Variables? https://fxdreema.com/help/-/working%20w ... 0variables
-
RE: Limit number of BuyOrders through Counter Routineposted in Questions & Answers
The idea of those counters is to count how many times the block runs. Optionally any counter can be reset, but the block to reset is normally located somewhere else, under another condition. You have the reset at the same place where the counter is, so the counter counts nothing.
But I will suggest to not use counters, because their memory is temporary. It's much better if you use only conditions who check things about the trades - their type, count, profit or something like this.