I remember that I edited this block like 2 weeks ago, because of another report for not so important problem. I reverted it now and it should work for you.
Posts made by fxDreema
-
RE: "modify stops" seems brokeposted in Bug Reports
-
RE: MA crosses not working?posted in Questions & Answers
I tested this and there is no delay for me. Are you sure you are testing the right EA? Or maybe you manually added those MA lines with different settings, so you are seeing wrong MA lines.
-
RE: Stop Loss according to the Max, Min of the day.posted in Questions & Answers
You can get the maximum and the minimum in different ways. High - Low from the Daily candle or Highest/Lowest price somewhere in Condition. But you should know this, so I guess this is not the problem.
In the Trailing stop block you have different options for Trailing Stop, I think price fraction would work: http://prntscr.com/eq3vrc But maybe you need to put the difference into a Variable and use that variable there.
But if you find the difference from the current day, don't forget that at 00:00 all the levels (O, H, L and C) are equal and the difference between High and Low would be very small for some minutes, if not for long hours.
-
RE: Project not loading...posted in Bug Reports
There was some block that was written in the database wrong. I don't know why, but I removed it. Find the project in your projects list.
-
RE: Online Builder Variable issueposted in Bug Reports
@Jnmr1, I don't know, but I missed your question. I think I have some issue with this subforum.
Anyone able to show project for example?
-
RE: Project not loading...posted in Bug Reports
If such thing happens, try to load previous History point. Well, I prefer to report the problem to me, like you did now, so I can investigate it, but if you just want to skip it and continue working I almost believe that you can do it.
For other people who found this topic - sometimes the "loading..." problem is because of some project fail, like the situation here in this topic. But I also received reports for "loading..." where the problem is probably something in the browser. I don't know exactly what, but if all projects are showing you "loading...", then try to disable some browser extensions, and you find the cause of the problem write to me

@nickmccomb I think you deleted this project. Do you still need it?
-
RE: Partial closing after 2 candles of profit.posted in Questions & Answers
For sure this was already asked before multiple times
There is nothing for the "candles" part. What I normally suggest is to use "For each Trade/Position" -> "check age" -> "close". And the profit could be checked as well. Of course, "check age" measures the time difference betwen Now and the time when the trade was opened, which is measured in days, hours, minutes and seconds, but not in candles. -
RE: Passposted in Questions & Answers
I don't understand the idea of this group 1-2-3-7. From what I see, it doesn't prevent the group 5-9-11 from working.
-
RE: First green/red bar above/below MAposted in Questions & Answers
I tried your project and this happens: http://prntscr.com/epnzo5 Obviously there are some arrows, it's not "nothing"
-
RE: Help convert this fileposted in Questions & Answers
I think it works if you use _rates_total instead of that Bars() function. I'm not 100% that this would be the correct way to make it work, but I think it works
-
RE: Help convert this fileposted in Questions & Answers
Well, I now think that this is some newly introduced bug in MQL5. This is the way it should be, but it doesn't work
The indicator needs to know the number of bars in order to make its calculations for all of them, but Bars() returns 0 bars. If you write any positive number it will work... write 100 and you will see the line for 100 candles, but this is not exactly the best way to do this. -
RE: Help convert this fileposted in Questions & Answers
It appears that the function Bars() returns 0. I don't know why, I think it worked before, and it works when it is used in an EA. Very strange.
Here is some indicator on the bottom where Bars() is used, and it looks that it doesn't work as well: https://www.mql5.com/en/docs/basis/function/events Can you confirm?
Otherwise the indicator works when this value is bigger than 0... but why it is 0...
-
RE: Once a day not working?posted in Questions & Answers
How are you trying to do that? Because this block is one of the mostly used and one of those that I don't update very often and my expectation is that is should work. Maybe something else does not work?
-
RE: Keeping data after a crashposted in Questions & Answers
If you can get data from the latest trade, do that. Because you know, all trades exists even if you reinstall everything, and their data can be read.
Otherwise I don't use any kind of persistent memory in any block. There are some options - Terminal Variables (aka Global Variables in MetaTrader, or F3), data written in files or even objects on the chart. Well, there is no block to read data from files

But be careful with this idea, because there is some scenario where the strategy could fail even if you use such persistent memory. Imagine that your PC goes off for 10 minutes. But what happens if meanwhile some trade was closed by SL or TP on the server? You have data in your variables, but your data is now old and possibly dangerous for the strategy. That's why it's better to read data from the actual trades.
-
RE: Alert Messagesposted in Questions & Answers
Label - this does 2 things. It is obviously some text that is printed. But also, if this is empty, then also the value of that "Data row" is not printed.
-
RE: Trend New Top And Range Detectionposted in Questions & Answers
Even I don't know
The future of these blocks is not bright, all I want for them is to hide them. Because Expert Advisors are not even supposed to do such job. This is something that a custom indicator should do. Back then, when I created these blocks I didn't realized that. But probably some people are using it, and only because of that I keep them visible (and also because I'm lazy to hide them
) -
RE: swing high or lowposted in Questions & Answers
Expert Advisors are supposed to manipulate trades and pending orders. Indicators are supposed to manipulate candles data.
-
RE: % of Trade Questionposted in Questions & Answers
Maybe use some formula. In all input fields you can write MQL4 code. You can use functions, +, -, * and /. But what would be the formula, I don't exactly know. I think you will also need to use at least one Variable.
It also depends whether you want to use hard Stop-Loss/Take-Profit or monitor the profit and close the trade when certain profit/loss is reached. Different blocks are used in these cases. And if you use hard stops , there is something that we can call Tick value, which is the amount of money (in your account currency) that your trade would profit/lose if the price moves with 1 tick. This is little bit complicated... at least for me.
Otherwise there is no such option that turns lot size into SL/TP size, and I don't even remember someone asking for this
And I don't know how good is the idea. Because even if you put let's say 10 pips normal SL, the loss would be proportional to the lot size anyway.