@spuzy 
I know where the log files are but MT4 doesn't write the log files to disk when they change in MT4.
MT4 does create the log file when you open the log folder within MT4 for example. You can open the log folder with teh windows explorer and you won't see a log file from the current day.
When you now right click into the history log in MT4 and select 'Open', MT$ will immediately create the log file.
There also seems to be no way to force MT4 to write the log to disk when you need it.
Thats the problem...
Posts made by hilavoku
-
RE: Read content of Expert -Tab Log entriesposted in General Discussions
-
RE: Read content of Expert -Tab Log entriesposted in General Discussions
Thanks Spuzy for the reply.
There is a EA running which writes some info data which you can see in the 'Experts' Tab in MT4. The problem is that MT4 won't flush the Log data directly from memory to disk. Then it won't be a problem for my external program to get the log data.
I know the 'Write to file' block but it can't get the data from that tab. So I'am stuck at the moment.
-
Read content of Expert -Tab Log entriesposted in General Discussions
Hi.
I have running an EA which outputs some information in the Experts-Tab Log on the MT4 screen.
I want to write an indicator which can read those entries and write them to a csv file.
I can't find a fxDreema command for reading those outputs.Can somebody point me into the right direction?
Thanks in advance!
hila -
RE: TicksData functionposted in Bug Reports
You have a function TicksData().
I think there is a bug in it.
if (shift<=0) { if (type==MODE_ASK) { return(MarketInfo(symbol, MODE_ASK)); } else if (type==MODE_BID) { return(MarketInfo(symbol, MODE_BID)); } else { double mid=((MarketInfo(symbol, MODE_ASK)-MarketInfo(symbol, MODE_BID))/2); return(mid); }I think when you wan't to return the mid value it should be
double mid=((MarketInfo(symbol, MODE_ASK)**+**MarketInfo(symbol, MODE_BID))/2);see you
hila -
RE: last action at tickposted in Questions & Answers
That sounds cool. To have more then one event pages. Nice.
When I have more then one block with a text-ID. Will they be executed in alphabetical order? -
RE: last action at tickposted in Questions & Answers
Puuuhhh.
When I give this special block the ID 999 which at that moment would be the greatest one then its okay but when I add a new block then the new one will be 1000 and I have a problem.When do you wan't to change the handling of the IDs? Do I have then still the possibility to use the 'Run block' block?
-
RE: last action at tickposted in Questions & Answers
Hiho.
I wan't to have a block which should be running just as a last action before the EA waits for the next tick.
Is there a chance? Something with the block ID? -
RE: Custom function errorposted in Questions & Answers
Working fine!
I'am the only person here which uses custom functions!? Wondering...
-
RE: Custom function errorposted in Questions & Answers
Thanks!
Eagerly waiting for youre helping hands
-
RE: Custom function errorposted in Questions & Answers
Hi.
Just a question: I have a custom block which calls a custom function. When using the custom block and trying to compile the EA I get an error that the compiler misses the definition of the custom function. Bug or do I miss something?
You can take a look at the test EA with ID: MT4-8181
Thanks in advance
hila -
RE: giving trades some attributesposted in Questions & Answers
At the moment I try to get a workaround so that I'am not needing arrays...

Meaning a little more typing but that is okay. Arrays would make using FXdreema better but I see that only a hand full of people need it... -
RE: giving trades some attributesposted in Questions & Answers
Thanks for the fast answer.
I will use the loop and set 'Not more then' to 1 to get the ticket number. So I don't have to use the comment.
I also will need to use an array otherwise I can't handle the lines I'am drawing on the chart. Hope to get a good solution combining the FXdreema blocks and the array in the background...Thanks again. Now I can keep going on !
hila -
RE: giving trades some attributesposted in Questions & Answers
Hi.
I wan't to give an open trade some attributes like a value or an boolean flag. One possibility could be to use the comment of an trade. I see that in FXdreema I can set the comment to a string but only a string without having parts of it build of variables. Would be nice to fill the comment with variable values!
Do you see any possibility of doing that?
Is it also possible to get the ticket number when a trades was made? So I could get the ticket number and save it to other attributes...
thanks in advance
hila -
RE: rename block IDposted in Bug Reports
__Now you can't connect blocks between tabs only because you can't see them at the same time. And if it is possible to make connections like this, how the connections would look like? :)[/quote:3blsqgjh]
Sorry I don't understand.
Ex.: 'on Init' I do a 'Run blocks' and in there I call a block which is on the 'on Chart' tab. This is how I do it at the moment. As I said. Its some kind of GoTo statement and easy to handle. (at least for me).
-
RE: rename block IDposted in Bug Reports
I understand.
More block functionalites means more support. 'Keep it simple' is the way to go. Sure.
Sometimes drag and drop is easily done but without any thinking before doing it. When there is still a chance of 'calling' a block from another tab or some other 'distant location' you can hide the IDs.
-
RE: rename block IDposted in Bug Reports
You could prevent several connections from one block to another and introduce a new block which has one input and several outputs. And the logic in which ordering the outputs will be activated lies within the block. (Left to right, Right to left, ...) What do you think of this?
-
RE: rename block IDposted in Bug Reports
Fine that you found the problem.
Giving block a real name and not only a number is in my opinion a very good idea!!!!!

When you also wan't to remove the IDs from the vision of the user then how can I jump from one block to another when they are not connected.
Example: I have some functionality at the 'on chart' tab and when I initialize the EA I need to call that functionality within the 'on init' tab then I won't have any chance of calling the blocks at the 'on chart' tab and have to copy the whole functionality to the 'on init' tab!? I won't have any 'GoTo' functionality!?I really would love to see the names IDs stay ! I was so happy to see that I can jump to another block on another tab that makes the EA better readable and gives it more structure!
Hope you let the IDs stay.

thanks
hila -
RE: rename block IDposted in Bug Reports
So. I made a copy of the current project its ID is mt4-1549.
You see the error. The blocks to take a look into are on the 'on Chart' tab number 66 and the 'DrawGui' block.
Thanks in advance
