Posts made by fxDreema
-
RE: Preventing Entering A Trade On Same Candle of Exitposted in Questions & Answers
Well, you have "No trade" at the top and when the first trade is created this block will not pass until that trade is closed. Try what will happen if this one is removed
-
RE: all stops on the same priceposted in Questions & Answers
This is just one way of giving a trade the SL of the alreasy existing (oldest) trade: https://fxdreema.com/shared/xJWQKFgub It's pretty simple idea - after a trade is created, get the SL of the oldest trade and modify SL of the current (newest) trade with this value.
Of course, the SL can be pre-calculated. But it's also important to check if that SL is possible for the trade that will be created. If you put SL that is on the other side of the current price, then you will got only an error message.
-
RE: Is there a way to track Draw Down Of Open Trades?posted in Questions & Answers
The difference between the highest profit earned from this trade and it's current profit? Not implemented and it will probably not be (as default functionality), because such additional calculations will only cause more calculations that almost no one needs. Most of the time we care about the current profit of a single trade, not where it happened to be, and you are the first one to ask me for this since fxDreema started
And not to mention keeping history of such data. It's not impossible of course, but it's too specific.Are you sure that you are asking for this, ot I understood the question wrong?
-
RE: Close all trades depending on profitposted in Questions & Answers
Just do some basic math. What you have now is this:
Is Total Profit > Balance * 0.2 ?
What about this:
Is Total Profit *(-1) > Balance * 0.1
If the profit is positive, it will be turned into negative and there is no chance to be bigger than any positive value. When it's negative it will be turned into positive and it can be compared (with ">") with any positive value.
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Are you afraid of creating some project with 2-3 blocks only to show me something and then delete it later? I believe I suggested this many many times in this topic and... nothing. What is the problem with that?
Under On Init in these projects I can see that the "Pass" block above is disabled, I don't even expect something to be working below them.
-
RE: I thik this has a bugposted in Bug Reports
Try with the pink block called "close" instead this blue one. Blue blocks like this has the loop inside, they don't care about pink blocks.
-
RE: HELP MA on RSIposted in Questions & Answers
In EAs in fxDreema MA can't be put over another indicators. I tried few times to implement this, but every time I find problems and I only remember that the last time my conclusion was: Impossible. And I don't like "Impossible" as a conclusion normally

-
RE: To use engulfing candle high/low values to trigger signalsposted in Questions & Answers
Oops, my fault, try now
-
RE: Splitting up grid orders so that the EA will respect the maximum lot size allowed by broker AND a virtual grid questionposted in Questions & Answers
Maximum lot for a single order, this is something new and obviously very very stupid

There is one momeny management option - Custom sequence. But I don't know what to do with this max-lot thing. I guess that SYMBOL_VOLUME_MAX is what we are talking about
-
RE: all stops on the same priceposted in Questions & Answers
I think you want one of these:
- to create a trade with SL and then to copy that SL for each following trades
- to create a trade with SL and copy that SL to all previously created trades
but I'm not sure which one of these?
And why you mention block numbers 
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Can you show me smaller temporary examples of something when it doesn't work. It's always projects with hundreds of blocks... I have no idea where to look at and what am I looking for

-
RE: variables and constantsposted in Questions & Answers
Again, variables are totally free. Those are 100% global variables for MQL4 and they can be modified from everywhere. Of course, with the same kind of value. Here is how to modify them in different ways https://fxdreema.com/demo/mt4-variables
At least tell me which one of your projects does not work or gives an error. I can see you recently worked on many of them, but I can't find something that is using constants and variables in the way described here.
-
RE: Problem to compile in ex5posted in Bug Reports
I don't remember that
Just show me what is wrong and what can I do exactly to see it -
RE: Part of profitposted in Questions & Answers
__Or should I take the profit and then open a new trade after that block?[/quote:2bm0909v]
I'm not sure what is the difference in terms of spread and commissions. Maybe in this way you will generate more losses, but I'm absolutely not sure about this. Maybe both ways are equal.
-
RE: Part of profitposted in Questions & Answers
Patially close. "For each Trade -> pips away from open-price -> once per trade/order -> close (partially)". "Not more that n trades" in "For each Trade" is an option to only work with the last trade.
Paritally closing a trade in MT4 creates a new trade actually, but it shares some information with it's parent trade. I don't remember what information, open time, price or something like this
I mean that it's a new trade with new ticket number, but somehow indirectly linked with the parent. -
RE: all stops on the same priceposted in Questions & Answers
Remove 1 from "Not more than N trades" in block 360. In this situation you want to change SL of all trades, including those who were modified in the past... if I am not wrong.
But if you do this on every tick, you will just flood the server with requests and SL will always be at the same distance from the current price until some big price movement happens. So It's a good idea to limit these modifications somehow, by time for example - every minute or something.
I don't get this: http://prntscr.com/9phpvw
By "price fraction" I mean values like 0.0010. By "pips" I mean values like 10. By "Price level" I mean values like 1.23456.What you have now is that you are getting some value that looks like 1.23456 and then using that value where 0.0010 means 10 pips, but 1.23456 means many many more pips.
In other words, I have no idea what you want to do, but at least I explained some things

-
RE: variables and constantsposted in Questions & Answers
Variables and Constants are both global variables in MQL4, the difference is only that Constants are also external - they serve as input properties of the EA. So at least in MQL4 Constants are not really constants, they can be changed, but I call them Constants (Inputs) because my idea is that they must not be changed.
There are real constants in MQL4 which can be defined using "const" or "#define" keywords, but you have no control over these from the project in fxDreema.
So yes, you can use and modify variables as much as you like. They are global and they can be accessed from everywhere.
The only thing that is quite impossible is to work with a block in the way we work with functions in the programming code. We can call the same function from multiple places in the code, we can reuse it. But blocks in fxDreema are connected to other blocks, so when you run one block it doesn't just return a value, instead it runs the next blocks connected to it. As a result, sometimes you just have to copy that block. But if you actually want to work with all the blocks connected after, then it's ok to call it from multiple places in the code with different values of the Variables.
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
I don't know what to tell you, as I also have troubles with this
Floating numbers are crazy in C/C++, and MQL4 comes from there. NormalizeDouble() is used to cut digits, but sometimes it doesn't work as expected. For displaying data DoubleToString() is used, the input here is a number and the output is string (text).I discovered that in strict mode if I try to get the Equity, which is some floating number, the result can be some number followed by many random numbers. And if I apply NormalizeDouble to the 2nd digit for example, it still does not cut the number to the 2nd number, there is something like 000001 left at the end. Then if I put (double) in front it appears that everything is ok. But the whole thing becomes something like:
(double)(NormalizeDouble(AccountEquity(), 2))... only to cut some floating number to the 2nd digit. And I'm still not sure that the number is actually cut or I am only hiding the truth

This is for strict mode. Currently I disabled it, because... because. With strict mode people are complaining more from weird looking numbers coming out of "Comment"
While in normal mode at least numbers are outputted in the way they should be.