I think I fixed that. But these betting strategies should normally be used with 1 trade at a time
Posts made by fxDreema
-
RE: Lot size incrementposted in Questions & Answers
-
RE: Profitability annual, monthly and yearlyposted in Questions & Answers
If any "Bucket of..." block is not capable of loading existing positions/orders, it does not pass. The idea is that if you don't have something to select, there is no point to work with it. You can connect each yellow output to the next block as well, but at the end you will see some weird numbers on the chart. Or connect each of them to the Comment block (in parallel).
But I found that there are problems sometimes and I need to check how things are working when Time A and Time B is used.
This is good for MT5, they finally admit that MT4 is better than MT5

-
RE: The strategy from scratch questions and problemsposted in Questions & Answers
There are few problems:
-
X30/100 outputs 30% of X. If X = 100, then 10030/100 is 30, but it's not 130. You can use *1.3 or *(100+30)/100
-
101.3 is 13, but -101.3 is -13. In other words, this *1.3 thing doesn't work with negative numbers the way you want.
-
Let's say you have few Sells with total losses of -200. Only one Buy with very small profit is needed to say "My all Buys have profit greater thant Sells with more than 30 percent", because in reality even 0.00001 is so much larger than -200.
-
Easy to fix.
-
You can turn -10 to -7 with a little bit more complex formula using MathAbs(), but 3)...
-
I don't know how to deal with this
Here is something I was playing with. You can see the effect of 3) here - https://fxdreema.com/shared/Ky8OEJf2e (run this on Visual Mode)
Don't look at the block names, I was lazy to name them properly...
This is what I got:
http://prntscr.com/awiy59
http://i.imgur.com/UiVaHbl.png -
-
RE: Need help to built multiple entry for EA or Scriptposted in Questions & Answers
And what exactly do you mean by "if price reverse"?
-
RE: The strategy from scratch questions and problemsposted in Questions & Answers
I don't know about the condition, but you **must **use "Bucket of Trades" in this case, 2 of them actually. Look __here__for a basic example. These colors (red and green) are in no way linked to the types of trades (sells and buys). Instead, these colors are just alternative way to identify different groups of buckets. And by "bucket" I mean few trades that must be picked and selected (which is what Bucket of Trades do) and then in Condition different kind of data can be extracted out for them.
-
RE: Local - Desktop versiรณn?posted in Questions & Answers
At the moment I'm not working for this version, obviously. I'm actually tired to explain why, so I will just say... this is what it is now, I don't know for the future

-
RE: Lot size incrementposted in Questions & Answers
This sequence is called Fibonacci and there is a MM option for this as well
- https://fxdreema.com/help/-/working%20w ... d%20groups
- If empty, this is the current market (symbol), otherwise it's what you specify
- Take a look at this and this
- The status is near the spread meter when you run an EA, look at the lower left corner
-
RE: Kaufman's Adaptive Moving Average (KAMA)posted in Questions & Answers
I have no experience with Mac, I have no idea at all
-
RE: SETTING CLOSE ALL TRADES AT EQUITY/BALANCE PROFITposted in Questions & Answers
Ok, just put that * before the name of the constant
-
RE: RESTART EA AFTER NO TRADES OPENposted in Questions & Answers
Reading "It doesn't...." I understand that this is the way it is right now and it needs to be other way. I also assume that the screenshot shows the problem.
Ok, this is what I have -
https://fxdreema.com/shared/iJnetfkZb
http://prntscr.com/avhp7w
http://i.imgur.com/a0g0VaZ.pngYou can see the price labels. They represent the signals that the block produce. Tell me which label you don't want to appear? Or which arrow you expect to appear, but it doesn't?
(it's funny how the golden labels ends with 001, this is probably some bug and I will fix it later)
-
RE: Trace Questionposted in Questions & Answers
Condition - Candle - Parameter - this is a drop-down select menu that is not supposed to be replaced with a Variable
-
RE: Trailing Stop and Spreadposted in Questions & Answers
Trailing stop works this way from the beginning and maybe there are people using the fact that it's output is always true to connect other blocks after it that should run every time. If I change the way it works, these project will become buggy for these people, because they don't know what happened
-
RE: SETTING CLOSE ALL TRADES AT EQUITY/BALANCE PROFITposted in Questions & Answers
Here is about Constants and Variables - https://fxdreema.com/examples/#Constants-and-Variables
Constants are actually variables, but they are also the input parameters of the EA, so don't modify them in the EA.
Variables - global variables in the whole EA. Don't use too much of these.Constants and Variables - you will see that there are multiple ways to use them, it's your choise. One of the ways is to just write the name of the Constant/Variable in any of the input fields of the blocks.
-
RE: RESTART EA AFTER NO TRADES OPENposted in Questions & Answers
Well, if something does not work on the web version, give it to me to test it and tell me what should I expect. Because honestly, I don't really know what you are actually doing. I just connected Round numbers detector with other blocks in my Desktop version and as I expected, I got signals here and there.
Also, from your HGI project that is now in your profile I have this as a result:
http://prntscr.com/av8rv1
... obviously, I have more than 2 initial trades and my picture does not look like yours -
RE: Profitability annual, monthly and yearlyposted in Questions & Answers
What, hedge operations, really?

I added those bucket things, you can try them. I tested them, but who knows... if you see some problems tell me
MetaQuotes are changing things. Sometimes things are going faster, other times - slower. Like now, after I started to use the latest compilers (which is now the metaeditor.exe file), the compilation process is much slower than before. I don't know about the hedging thing in MT5, but I honestly wish them to kill this shitty version and just continue with MT4

-
RE: Trailing Stop and Spreadposted in Questions & Answers
Well, the thing with the Trailing Stop block is that it can work with 1 trade and it can work with 100 trades at the same time. If you have many trades at the moment, one of them will be modified now, other one will be modified later... you don't know, it's like something random. The output would be compound.
Anyway, I added this Reference price option in "pips away..." blocks. I didn't tested it, but I tink it will work
I was wrong about Spread(), it looks to be a function in some different context. There is a way to get the spread anyway, but with functions that look ugly

pips away from stop-loss - this block measures the difference between the current price and the stop loss. This distance is always a positive value. For Buys this is Ask-SL, for Sells this is SL-Bid. I made this block when I wanted to be possible to make trailing stop functionality with pink blocks. And the trailing stop works this way - it check the distance to the current SL and if it's too big -> SL is moved closer. The yellow output of the block is "else" of the orange output, I guess not very useful
-
RE: Trailing Stop and Spreadposted in Questions & Answers
By the way, just for fun you can try something like this - http://prntscr.com/aut7v9
http://i.imgur.com/8zST6Ca.png
I didn't tested it and I don't know if it works. But Spread() is this native function https://www.mql5.com/en/docs/standardli ... infospread and toPips() is fxDreema function that can convers values such as 0.0001 to pips. Of course, you can also multiply or divide Spread() with plain number. -
RE: Trailing Stop and Spreadposted in Questions & Answers
But the Trailing stop block is very customizable, why is it not enough? Otherwise yes, I think such option is possible.
-
RE: Profitability annual, monthly and yearlyposted in Questions & Answers
Damn, I forgot that this is missing for MT5. I guess I need to see what can I do with this for MT5. Right now I don't have other good ideas. Of course, you can do this with few pink blocks and a variable, but it will be a little bit ugly.
But why do you need that? No one ever asked me for such an old profits and also my logic says that profits/losses in the past should be forgotten.
Otherwise you can try to keep Balance in a variable and update it every month, or something like that. Balance is global, but if this is what you want, why not
-
RE: When I got consecutive losses twice per day, I wanna make to stop trading that day.posted in Questions & Answers
There is a block now Check profit (period of time). It does not check the number of trades, instead it check their total profit, but if you know the profit that can be made from them it will work.
The other way is Bucket of Closed Trades. You will notice that this block has some Time settings in it. It is similar to the block described here - https://fxdreema.com/demo/mt4-bucket-trades