Best posts made by miro1360
-
RE: Finding the nearest horizontal line of indicator. (Complex question)posted in Questions & Answers
Someone can play and convert it into blocks, other users can benefit from it

-
RE: ObjectSet function on MQL5posted in Questions & Answers
ObjectSetInteger(0, LoadedObjectName(), OBJPROP_STATE, 0);
ObjectSetInteger(0, "exactObjectName", OBJPROP_STATE, 0);
-
RE: How to include library?posted in Questions & Answers
it is simple ...
copy your include files into your fxdreema local folder (folder named MQL4\Include)
you can recompile the inserted mqh file in metaeditor
the json file needed to be modified because (all the variables/objects named as "v" or "c" must be renamed to something else)
https://gofile.io/?c=3ysLTado your job in fxdreema and generate only mql code

open the EA in metaeditor and insert desirable statement in the top of EA code and click compile button:

hope for no errors
-
RE: How to include library?posted in Questions & Answers
this is how to create a custom code block in the studio, only for the MQL4 (mql5 probably the same)

then insert the include block in the project ... only the mq4 code can be generated from fxdreema, then it has to be compiled with the metaeditor:

...Would be easy to have a block for includes maybe on init tab?!?
Well, it is not that simple because you have to compile with your local Metaeditor even with a block for includes (the include files can be seen only from local, they are needed for the compilation process ..... custom indicators may not be present, that is the difference). Therefore the web based ex4 compilation throws an error, because the compiler looks for these "missing" libraries on the compilation machine (webserver).
Just use the first method, it will take a few seconds.
Test your code prototypes in the Metaeditor, and after that put a functional prototype into a complicated EA in fxdreema.That is all I can do to help you

-
RE: How to include library?posted in Questions & Answers
note this:

... for an include file with such issue, it will only be done only once, but it must be correctly done
-
RE: Can someone help me with SL calculated form wick?posted in Questions & Answers
all blocks are executed at the tick X, but the order of path execution depends on the ID (lowest first) ... did you get it?
the example above goes as:
8-9-10
11
12-13-14
16
20
21-22 or 21-23
... everything in one tick (if an execution time is less as the time between 2 ticks) -
RE: Can someone help me with SL calculated form wick?posted in Questions & Answers
here the execution is as:
8-100-10
1
21-22 or 21-23
11
2
12-13-14
-
RE: Can someone help me with SL calculated form wick?posted in Questions & Answers
@tom-5
you are exactly right, I totally forgot about this option in the Martket properties, you can use it this way .... anyway if you come to a stage where you need more detailed logic then you already know how@seb-0
it can execute 1000 of simple blocks in one tick as well as one very complicated custom block may need a few ticks to execute
... the above are very simple blocks (light blocks, easy to calculate)a complicated block is something where EA has to use many array calculations (e.g. complicated work with zigzag) .... or a bad or overlooped logic

-
RE: Tick Chartposted in Questions & Answers
I will save you time, it's a bullshit.
Ticks are emulated by brokers. You don't get real ticks, there is nothing like real ticks for normal traders. There is no way to be one step ahead of the banks and big institutions. -
RE: backtesting ea in mt4posted in Questions & Answers
the more accurate your strategy needs, the sooner it crashes

-
RE: zero divide error MT5posted in Questions & Answers
workaround:
add this to line 569:
if (SymbolInfoDouble(symbol, SYMBOL_POINT) == 0) { return (CustomPoint(symbol) / xxx); }
where xxx is 0.00001 or 0.001 ... or any (depends on symbol) -
RE: How to fix this mq4 file?posted in Questions & Answers
by automated naming for variables

on the other hand, if EA is sold as profitable but ruins the customer's accounts, who is the thief
-
RE: Problem with custom indicatorposted in Questions & Answers
just a fast fix

DisplayType value is now disabled (it should print all on the chart) -
RE: Apply template on selected pairposted in Questions & Answers
only this for current chart:

or modified code for all charts with a specified pair: (untested)






