Can you make some simple project for example, so I can see what are you doing, because I don't really understand what you want to explain here 
Best posts made by fxDreema
-
RE: MA cross with negative period produce funny result?posted in Questions & Answers
-
RE: fibo constantsposted in Questions & Answers
This input is a string value. When you write bl1, it remains bl1 as a string (text). I don't believe that it will work. You can try this:
Try this: https://fxdreema.com/shared/WKlVMBvvc
What I'm doing here is that I'm constructing the string. Those "" + and + "" in the beginning and in the end are what enables the input field to accept MQL4 code, so everything in between them is MQL4 code. -
RE: How i can create order one time only ?posted in Questions & Answers
There is a block "Once a day", maybe it will do the job if you put it before the Buy/Sell block
-
RE: Different leverage for different currencies?posted in Questions & Answers
Richard, I can see that you don't like fxDreema, so I refunded your last payment (which is 6 months old, so I just sent you $100). And with that I surrender, I can't help you. I don't agree that my responses were insulting, I actually have this feeling that yours are, but this is not important. I can't help you, because I can't understand you. I told you this before - I can see your emails, I can see how much text you wrote to me and I can translate it, but I can't understand it. And it looks that I'm not alone, because here in this topic other people can't understand you as well. I really don't know what else to say.
-
RE: Having Absolut Math inserted into Adjust fieldposted in Questions & Answers
I actually did that long time ago, but maybe I never wrote about it: Try this: https://fxdreema.com/shared/cjhGByvF
In "Adjust" you have this:
= MathAbs($)Where = means that the final value will equal what is after the = symbol, it's not like +, -, * or /. And $ is the value itself. MathAbs() is of course MQL4 function.
-
RE: How Open Buy or Sell After 3pip of open Candleposted in Questions & Answers
Try something like this:

This block will create a pending order at that price, which is Candle Close of the previous candle (because I set Candle ID to 1) + 3 pips (look in Adjust). The price offset is 0.And the other way is to use that price offset parameter:

-
RE: Closing all trades in one pair when target is met (equality?) when trading with multiple pairsposted in Questions & Answers
Ok, you have multiple pairs, many trades, only 1 Equity and 1 Balance value. You tried to compare different values and you don't like the result. This makes me think that the values you compared are not the right ones. Can you describe what value do you want to get?
That Bucket block is useless there. This block would make a list of trades, that's all. Then in another block you can get the results. See this:

In block 5 here only a list of Buy trades is created. Then in block 8 the count of these trades is calculated... and also other values (https://fxdreema.com/demo/mt4-bucket-trades)
The idea of those blocks is to be able to select group of trades, calculate some value out of them and use that value somewhere. -
RE: Trades closed at once with rising volumenposted in Questions & Answers
I don't understand what you can't do here - open the trades or close them. But I can imagine that you opened them and you want to close them. I imagine something like this

-
RE: Empty Valueposted in Questions & Answers
You want to modify the indicator itself to return 0 or to change its returned value from EMPTY_VALUE to 0?
-
RE: search chart for objects?posted in Questions & Answers
Yes, depends on what the indicator have in its buffers. Only when the data in the buffers cannot be used, and the indicator really prints objects on the chart, only then you should go to work with the objects. Here are 2 examples: https://fxdreema.com/examples#Chart-Objects
-
RE: onTester()posted in Questions & Answers
Here is another idea. Go here: https://fxdreema.com/studio/MQL4 And create a new custom function (lower right corner, hit button New). Then write the OnTester() function with its contents.... something like this:

Then mention that function somewhere, for example in Init:

Because the function is mentioned in the block, the EA generator will search for the function in the custom functions and will place it in the output code. Because this function is actually a system function, MetaTrader will run it when its needed.
if (0) => this prevents the function from running, because we don't need to run it.
-
RE: How to buy/sell/tp/sl at a main price level like 1.13, 1.14 ... etc?posted in Questions & Answers
There is one block "Round numbers detector" which can pass at such levels.
-
RE: how i do that in fxdreema in equity ?posted in Questions & Answers
To make things simple, don't make hedging strategies. As I said so many times, these strategies only make things complicated and it seems that this topic is a proof of that. The whole idea of trading is to make one number bigger - the money you have. There is nothing magical in using opposite trade instead of SL. So it's better to just close the trade and continue with the real strategy.
-
RE: ATR related lot size?posted in Questions & Answers
By the way, there is one undocumented thing you can do in Adjust. Normally we start with +, -, * or / and the things we write in this field are put somewhere in the code after the value. For example, let's say the value is called ATR. Then we write + 0.1. At the end we have something like this:
ATR = ATR + 0.1...where the ATR = ATR part is outside our reach, only the + 0.1 part is added.
One day I added new functionality. Let's write = $ + 0.1. Then the result will be the same:
ATR = ATR + 0.1but now we control the whole = ATR + 0.1 part. The dollar symbol is replaced with the variable that represents the indicator or whatever it is. In my example this is ATR. But let's make it different. Let's write = 2 * $ in Adjust. Then we will have something like this:
ATR = 2 * ATRSome example here: https://fxdreema.com/shared/UNvVIVJJ
The important thing here is to start with =. Some people doesn't even write + or - or whatever. By default, if the contents in Adjust doesn't start with +, -, *, / or =, then + is used.
-
RE: Hedging Faults - Fine in Backtest, Weird in Forward Testingposted in Questions & Answers
It's probably something in the project, I see you are using many Formula blocks and who knows where something fails. But to be honest, I don't even want to know and I don't want to hear that word "hedge". My advice is to forget about hedging in the same symbol. This doesn't work and will never work. Hedging in the same symbol is making the EA too complicated and hard to maintain, with no benefit at all. I guess that there are many people trying to sell this idea to naive people, but hedging is not that magical thing that they sell. Simply close the trade and continue with the real strategy.
-
RE: Button: Turn off some blocks.posted in Questions & Answers
Try this: https://fxdreema.com/shared/WPSiKSY7b
Here I create the button with name MyButtonName in "on Init", because I only need to do it once when the EA starts. Then in "on Chart" I detect when it was clicked (block 3). Then I load that button (block 4), check whether it is pressed or not (block 5) and do some actions depending on that. I change its name (6 and 7).
Blocks 4-5-6-7 can also be used at any time in "on Init". Depends on how what you want to do. You say that you want to turn off blocks, so in my example you can replace block 8 with the turn off block. Or set the value of some variable, which will then be checked in "on Init". But also, blocks 4-5 would do pretty much the same job if they are in "on Tick".
It seems that the Chart event (OnChartEvent() MQL function) doesn't work when testing on visual mode, it only works when you run the EA live.
-
RE: how can create ea like indicator ?posted in Questions & Answers
You are asking for a custom indicator, this is not something that EAs do
-
RE: Integrate with Line Notificationposted in Questions & Answers
There is a block to send web request
-
RE: pips or pipettes used for the blocksposted in Questions & Answers
Is this word "pipette" official word to describe this kind of value? I never knew how to describe it and in the blocks now I use "price fraction". I found this https://forextradingsystem1.com/pips-vs-pipettes-know-the-difference/ and here one pipette is what one "point" is in MetaTrader.
In fxDreema the size of 1 pip can be customized. And by default this is customized in the project settings. Click on this icon below "History" and you sill see these rules for pip size.
In all blocks, where you see "pips", the size of 1 pip depends on these rules I just mentioned. In some blocks for certain inputs there are multiple ways to select a value, this for example:
You can see 3 "Custom..." options here. For other inputs it is only one way, as you mentioned. Technically I can do this for all options, but it will be full of drop-down inputs.The turnover option is there because of the way this block works. It compares values from the current tick with values from the previous tick, and eventually it detects a crossover. But this crossover is on such a small level, it really is detected only by looking at 2 neighbor ticks, so what stops the same crossover to be detected few ticks after? (because the price goes up and down). So, the turnover pips are there to prevent this from happening - the price needs to travel certain distance, then go back, and only then a new crossover could be detected. But sometimes it can be interesting when the price and the indicator are moving in the same direction very fast, the turnover could become useless
