You can do math in all input fields in all blocks. "Formula" block is used when you want to get some value from the available toolset in fxDreema, but you can always go deeper and work with pure MQL4/MQL5 code everywhere
Posts made by fxDreema
-
RE: Adding multiple formula results together easilyposted in Questions & Answers
-
RE: backtester and volumeposted in Questions & Answers
I can't confirm the problem with backtesting, I have positive values for all buffers when backtesting in Visual mode and also in non-visual mode. I also have values of 0, but not all the time and everywhere.
Volume is part of the history data, it's a property of each candle in the given timeframe. Maybe you don't have this part of the data in your history data? What do you have here? http://prntscr.com/7hkg0g -
RE: Compilation errorsposted in Bug Reports
I guess there are 2 lines because 2 different indicator settings are used. You know that when you use MA20, MA20 will appear on the chart. But if you also use MA21, then also MA21 will appear on the chart
MT4 detects all the different indicator settings that are used in the EA, and for each one it creates a new indicator view. -
RE: backtester and volumeposted in Questions & Answers
I'm not really aware of what Volume means on the chart. As I remember, there are 2 types of Volume in MetaTrader 5, which adds to my confusion. So I don't know what can bewrong with this really. What I can suggest is to use "Indicator tester" to check what the indicator is giving to the EA.
-
RE: Error 152 if constant definedposted in Questions & Answers
Well, Constants are variables, and as such they have values. +50 is a positive value that is actually 50. It will not give you an error if you give such value, it will simply assume that you want to assing the value of 50 and it will do exactly that.
The Adjust field is a place where you can write any code. This code is then appended to the value of the operand (in MQL4). This code is like continuation of the operand and it must start with one of these + - * or /. But when you use a Constant for it, it does not start with these. The only way is to write it's name, or in your case you can write +intervalo. Yes, if you decide to rename the constant you should also rename it in this block, which is not very elegant
-
RE: Local Version - Bug with Project Variables screenposted in Bug Reports
Someone wanted to be able to use any data types (and enumerations), so I removed the available options. But I also added some basic description for data types below. The most important are int, double, **bool **and string
-
RE: Dreema EA able to terminate another non-dreema EA?posted in Questions & Answers
This is the function available for terminating EA: http://docs.mql4.com/common/expertremove But it does not have any parameters and obviously it can close only the current EA.
Two or more EAs can communicate using Terminal Variables, if that helps you. Or maybe check the same conditions in both EAs

-
RE: Suggestion - Auto Magic Numberposted in Questions & Answers
Mm, I don't like the Chart TimeFrame part, I always change timeframes

By the way, you should not have problems when you put the same EA on different pairs, because all the blocks are set up (by default) to work only with the Current pair. Even if the magic number is the same in two trades, EURUSD and EURAUD, only because the EA is working on EURAUD should not touch EURUSD at all. Again, this is the behavior by default, it can be changed!
The only problem that I can imagine is when we want to put the same EA on two charts from the same pair, but with different magic numbers. In this case the problem can be that we can forget to change the MagicStart for one of both EAs. But if there are 2 EAs, like EA1 and EA2, then both will be unique.
-
RE: Indicator buffer has different valuesposted in Questions & Answers
If you watch how the indicator works (Visual Test), you will see that it modifies not only the last point, but also the last few points. I don't know if this is a bug or it's just how it works. fxDreema reads it's values correctly, but then the indicator changes his decisions.
-
RE: Close trade manually opened by E.A.posted in Questions & Answers
It depends on how the EA is working. If you manage trades with Variables, then such thing will matter. But I don't recommend to do that.
MetaTrader manages these things by itself. If we have the block "Check trades count", it asks MetaTrader how much trades there are running right now (with some magic number, currency, type and so on). If you have 3 trades and you close one, the EA will just start to see 2 trades. And it will start to see the one that is closed as... closed history trade. Nothing unexpected, I hope. Almost the same situation as if you restarted the EA.
-
RE: About Martingale and Basket Systemposted in Questions & Answers
- You want to do Martingale without closing the trades?
- You can get the lot size of any trade that is currently running. Of course, you should know which of the trade you want to work with. But I'm not sure that you really want to do that. Give me more details
- If this is only for indication, maybe some indicator can help. Such a value is sometimes hard to predict with 100% accuracy, like when the currency is different from the one of the account, because sometimes 0.0001 does not translate into let's say 1 dollar, it depends on the movement of other currencies.
-
RE: Suggestion - Auto Magic Numberposted in Questions & Answers
Not a bad idea. Can you point some EA that does that?
-
RE: Sell at previous bar high or low.posted in Questions & Answers
Pending orders can be placed everywhere at any time. At 02:53 in the night you can place a new pending order with open price at the previous day's high. Like this: http://prntscr.com/7gbdvz
-
RE: Indicator buffer has different valuesposted in Questions & Answers
Are you sure that you have added this indicator to the chart with the same settings as those used in the EA?
-
RE: Compilation errorsposted in Bug Reports
Most of the time I don't know what you are asking me. Here is a little tool that does amazing things: https://app.prntscr.com/en/index.html
-
RE: osma trendlinesposted in Questions & Answers
Here I tried to explain buffers: https://fxdreema.com/documentation/you% ... indicators
Also, here is how to add indicators in fxDreema: https://fxdreema.com/documentation/work ... indicatorsBuffers are the way for the EA to communicate with the indicator. The indicator puts data in those buffers and the EA can then read that data.
-
RE: osma trendlinesposted in Questions & Answers
Isn't it possible to use the buffers from this indicator? I can see that there are 3 buffers where 1 and 2 are for those gray dots. I didn't checked them, but I guess that they work.
-
RE: Compilation errorsposted in Bug Reports
I think that it works for me.
This is how it looks when backtesting
http://prntscr.com/7fd3s1This is for Visual backtest (it's too slow for me to wait for all trades, to here is the first one only)
http://prntscr.com/7fd4bgAnd when optimizing
http://prntscr.com/7fd239
http://prntscr.com/7fd28c
http://prntscr.com/7fd2cx
http://prntscr.com/7fd2j5 -
RE: pivot need timezone shiftposted in Questions & Answers
Well, you can always use some indicator that has bunch of options
