But I don't want to modify your project, I want you to know what is going on and how to modify it. That's why I explain things here, it's not that I have nothing else to do 
Posts made by fxDreema
-
RE: Help me, how to use (and) to buy or sellposted in Questions & Answers
-
RE: Indicators Appearingposted in Questions & Answers
If they are on fixed candles, it's easy. Otherwise there is no block with this functionality for the moment.
-
RE: Help me, how to use (and) to buy or sellposted in Questions & Answers
I can see you are using custom indicators and you have crossover in all conditions. Crossovers are detected within a single candle, so you want to detect a moment when there are two crossovers at the same time in two indicators. I don't know how these indicators look and work, but I guess that the chance to detect this situation is rare. So I will suggest to use > or < for one of the indicators.
You can also check indicators with "Indicator tester" block to see if their buffers are actually giving the EA normal values.
-
RE: "draw line" only in a Indikator Window?posted in Questions & Answers
It is possible to draw objects on subwindows, but for things to be simple I didn't used this option in the blocks. Maybe there is a better way of doing whatever you want to do? What if you draw another object, like an arrow?
-
RE: Printing multiple trades to a log.posted in Questions & Answers
For each Trade is the important block here. You can run this block once, and it's orange output will be active 10 times in a row if you have 10 trades. Of course, this is not mandatory, because the block has filter settings, so you can choose to skip some of the trades. And in your case the block runs on every tick.
Then you have once per trade/order - this one monitors trades/orders that For each Trade is loading and it will pass once for every unique ticket number. It has something like private database where it writes ticket numbers that were passed once. Note that this private database is deleted when you reload the EA

So, even if block 2 passes 10 times per tick, on every tick, the check profit block is reached only few times. As many times as many trades are created. For example, 10 times for the whole lifetime of that EA
-
RE: Help me, how to use (and) to buy or sellposted in Questions & Answers
I will suggest to not use this "AND" block - there is no need to. It should work, but it's better and faster without them. Look at the example here, the one on the left: https://fxdreema.com/demo/mt4-and-logic
-
RE: show time in commentposted in Questions & Answers
The EA inside does not work with values like 08:00, it works with values like 1420809893 - the number of seconds since 1.1.1970.
Condition -> Value -> Time - these options here are convertors. You choose how you want to enter the time, and then this is converted into something like 1420809893.
Why 1420809893? Because it is one and only format, it is universal, this is normal integer value that holds everything in it and can be stored easily in every database.
The difference between 07:30 and 08:00 is 30 minutes, which is 30*60 seconds, which is 1800 seconds.
It's a little bit complex with the comment
Because the block treats all values as they are, it does not know whether the values are time integers or not. I will see if I can do something about this. -
RE: MA Cross and Daily Countposted in Questions & Answers
Here is some idea: https://fxdreema.com/shared/oKWBYjWlb
I used a variable where I can store the value of time after which I will be allowed to do something (like drawing a vertical line). The value of this variable is checked on every tick and when the current time is >= from that value, the Condition pass. In Modify Variables I set the variable with a value that represents the current time + 4 days in the future.
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Well, it becomes slower with every new block
I did optimizations multiple times in the past and actually now it's maybe 100 times faster than in the very beginning :))) I will do more, because I am freak when it comes to speed of working. As you probably know, I am rewriting the whole website now and I am on the point where I will rewrite the EA generation mechanism... hopefully it will become faster.There are no special options in MQL4 itself for pressed buttons, CSS and JS are not present here
So in order to do that, the event of clicking on the button must be detected and then then properties of this object must be modified. But I think I don't want to include that into all EAs, because it means more input parameters for the block... at least 
-
RE: Read from csvposted in Questions & Answers
Damn, this indicator has some big code
But if you want to get values from this rectangle, you can do it 
-
RE: MT4 closes When switching EAposted in Bug Reports
But it should not do that. I guess you are working with the local version. If this EA is not a secret for you, send it to me so I can check it, and tell me what to do, so I can replicate the problem. My MT4 build is 765
-
RE: show time in commentposted in Questions & Answers
No, it's not. The result will be 00:30 at the current day

"Components" is the widest option, where you can write exact moment of time - year, month, day... You can get the Unix time of your birthday. If you have parameters where the value is empty, then the current value is used, from the current time. You see that Year is empty by default, which means that the Year will be 2015 (or older year if you backtest). If you write 1992 there, it will send you back in time

-
RE: Read from csvposted in Questions & Answers
Using some of the functions here http://docs.mql4.com/files, but as I said, I never tried to do this thing and there is no block that uses these functions right now. I will do this eventually, but it will probably take some time to figure out how what block inputs to be used, because you know that csv tables can have multiple rows and columns.
But I think it will be much better if the indicator can send data to the EA the normal way with buffers, or with it's objects at most. Now you are going to read the file again and again, which is not very intelligent. These files are basically used as a log files, some data to be written there so you can then read it or do some calculations over it with Excel. But to get information from there...
Rectangles are built from 2 points - 2 price value and 2 time value.
Point 1 => Time 1 and Price 1
Point 2 => Time 2 and Price 2You can see 4 points, but the other two have the same Time/Price of the other two. If you know how to get "Price level 1" and "Price level 2", then you have all the data of the other two points, it is the same "Price level 1" and "Price level 2"

It is similar with time values. -
RE: MT4 closes When switching EAposted in Bug Reports
And I don't know for a function that can cause MetaTrader to close itself. At most, an EA can terminate itself, but not the terminal. It can be some MT4 bug. Does this happen with other EAs from Internet?
-
RE: chart objects(horizontal line)=ask buyposted in Bug Reports
You know that the price always jumps from here to there? You know that there are 5 digits after the point? The price is 1.23456 now and in the next millisecond it is 1.23478. The chance is that the price will never be 1.23457, so if you wait for this exact price, you will most probably wait forever.
When you work with prices, just forget about the "equal" feature, because as you said - it does not work. Don't use "==" when you have a price value in one of both sides.
-
RE: show time in commentposted in Questions & Answers
I don't know what kind of value do you have from your formula block, but normally the time is in this universal format: http://www.epochconverter.com/
As you can see, the time is the number of seconds since 1 Jan 1970. All the default options for "Expiration mode" are everything, but this time format. Whatever you enter, it is converted to this format. But you can also use this format as well - Expiration Mode -> Custom -> Value -> Numeric -> put the variable here and add some seconds to it (30 minutes are 1800 seconds).
-
RE: show time in commentposted in Questions & Answers
Which project is this?
Low level, but there is a function to convert the time into a normal text in whatever format you want: http://docs.mql4.com/convert/timetostring
-
RE: project is loading....posted in Questions & Answers
Hmmm, I don't know what exactly happened, but you can always move one step back.
Where fxDreema is installed, go into \Data*username*\experts*expert-id*\HISTORY and notice the folder with higher number. Then open that file lastactive.ini and write lower number, for one of the other history folders that exists. Let's say that the project broke at history number 45, then you can write 44, 43 or something lower. Then launch fxDreema and it should open the project correctly.
You can also backup Data folder, just in case

-
RE: Read from csvposted in Questions & Answers
There is no such block yet
I never tried to build one actually. How does your data look in this file?
