When you make a new project, there is an option to choose to make it for MT5
Posts made by fxDreema
-
RE: MT5 free export?posted in General Discussions
-
RE: Unsupported filling mode (10030). XM Broker , Partially Close Blockposted in Bug Reports
I added this into the function, I hope this will not break something else

-
RE: Error to load a custom indicatorposted in Bug Reports
Maybe you can share the indicator so I can investigate it?

-
RE: critical runtime error 503posted in Bug Reports
Can someone make a shared copy for me to investigate

-
RE: How can I specify a distance between indicators?posted in Questions & Answers
Yes, this should remove 20 pips from the value of MA20. If the value of MA20 is let's say 1.2345, then this value will be modified to be 1.2325 (which is 1.2345 - 0.0020). You can actually see the result of this calculation if you try this in the "Trace" block
-
RE: Help wanted, please!posted in Questions & Answers
Yes, I just opened this link now https://fxdreema.com/shared/YGCxbQKOd (note that when someone opens a shared link, a temporary copy of the project is created for him, and after a while this copy is automatically deleted) and I have this: http://prntscr.com/ibgnoa
Because it works for me at the moment, I can't really tell what was the problem and whether it is in MetaTrader or in the EA. What I can suggest, just in case if the problem is in the EA, do remove those blocks and connect them again... but I don't see why this would work, because the output code should be the same...
-
RE: want to close most recent tradeposted in Questions & Answers
For each Trade -> check age -> check age -> close
-
RE: "Terminal connected"-Block does not workposted in Questions & Answers
Well, if you are under "on Tick" and there is no connection, nothing will happen because there are no ticks as well. I guess that this block should be used somewhere else, in "on Init" or "on Timer"
-
RE: Very unique time filter-is it possible?posted in Questions & Answers
But be careful with these seconds. Under "on Tick" you should expect that there is no tick coming in your time, so the exact second could be missed. That's why miro1360 shows you how to set a period of few seconds, just in case. After this block I can suggest to place "Once per bar", because you could have multiple ticks in this period.
And if you really, really want to open a trade at this second, you can put these blocks under "on Timer". There are settings for the timer somewhere in the project settings (that icon in the upper right corner) where you can set the timer to work every 1 second.
-
RE: Do Virtual Stops work with Multiple Level Trailing Stops?posted in Questions & Answers
As you know, bugs are always around. I can't tell what it is, I guess you may provide some example project that it shows the problem, so I can investigate it and fix it if something is wrong.
Otherwise the virtual stops are simply horizontal lines. On every tick one special function is called, and the code in this function looks at these lines and compares them with the current price. If the price is beyond some line, the trade that "owns" the line is closed. In theory everything should work almost the same, especially when backtesting.
-
RE: critical runtime error 503posted in Bug Reports
I don't know what this error is. In the documentation of MQL5 there is no error with this number. Google finds this topic: http://fxdreema.com/forum/topic/4712/how-to-fix-critical-runtime-error-503-in-ontick-function But tcanuto somehow decided his problem with this error in the first message.
I put your project to test (on EURUSD) and I have no errors, but I removed block 15 because I don't have the indicator used in it. Do you have the error without this "tdi" indicator?
-
RE: Help wanted, please!posted in Questions & Answers
@isp00rt It's funny, this seems to work when it wants.
I first backtested the shared project - no ugly Comment on the chart.
Then I imported that project into my projects, so I can investigate it more. Still, no Comment and I found that block 11 probably doesn't pass. I used "Draw arrow" and block 11 was when it all breaks.After few more checks the Comment started to show. And now I can't un-show it, now I can download the untouched shared project and I can see the Comment every time. It just shows every time now, as it should. There is some magic here, I don't know how this happened

-
RE: Constantsposted in Questions & Answers
That's true, but the idea is to use Constants for values that you don't want to change. Also, those values will be input parameters for the EA in MetaTrader.
Variables are to be used inside the project, they are like global variables that hold certain values and these values can be changed at any time in the project.
In the desktop version I mixed them a little bit, which was probably not a good idea.
-
RE: Multi strategy EA?posted in General Discussions
Take a look at that "Group" parameters in each trading block, such as No trade, Buy now, Trailing stop, and so on
https://fxdreema.com/help/working-with/magic-start-and-groups
-
RE: Trading multiple pairs with 1 chartposted in Questions & Answers
But of course it's a little bit different than having the same EA on different charts. Remember that if you put one EA under say EURUSD, then it only works because of the EURUSD ticks.
Check this block: Set Current Market" for next blocks
-
RE: trend line in pipsposted in Questions & Answers
In MQL they call this object Label, in fxDreema you can print text on the chart with "Draw Text" - http://prntscr.com/i6xflz. The trendline object itself does not have such optional labels I think, it's just a simple line.
-
RE: Trailin stop, my idea. Should it work?posted in Questions & Answers
I think you want to use that Trailing Start parameter, here is more info about the parameters in the trailing stop block: https://fxdreema.com/help/working-with/trailing-stop
In MQL4 I recommend using one of the "For each..." blocks before that "modify stops" block. Remember that "modify stops" block modifies the stops of one trade or order. Ask yourself - if you have many at the same time, which one?
-
RE: Custom blocks seem to be disabledposted in Bug Reports
I never tested long names, this is intresting
-
RE: Condition for spreadposted in Questions & Answers
In "Value", where "Numeric" is, there is "Pips" as well. There is this option there to get a value "as price fraction", by which I mean the difference between two prices, exactly what ask-bid is.