Posts made by fxDreema
-
RE: Implementing MA and RSI indicatorposted in Questions & Answers
@mmaarits I know how to make it on MetaTrader, but I don't know how to do that in MQL4. I tried iMAOnArray before and I could not make it as well... I forgot the reason. In the link they do that in a custom indicator, which is a bit different than EA
-
RE: Confirm a buy or a sellposted in Questions & Answers
But MA holds the values for the old candles, I mean you can get MA for the current candle, for the previous candle and for any candle on the chart. It's easier to do that by specifying Candle ID to 1, 2 or whatever candle you want.
-
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: What do say as variable?posted in Questions & Answers
Depends on what "downtrend" means for you. Is it when one MA is lower than another MA, or something else

-
RE: Symbol problemposted in Questions & Answers
If you want the EA to work with the current symbol, don't specify any symbol, don't touch these settings at all and it should work. If you want to specify a symbol, then the name should be the same as those used by the broker. If you specify USDJPY and there is no such symbol, then the EA fails. The EA doesn't know that USDJPY should be the same as USDJPY.e
-
RE: I need a simple ea that buys after a bullish candleposted in Questions & Answers
Also take a look at the description of "Condition" block to understand about the "Adjust" parameter, maybe you can use it in this case
-
RE: Best way to confirm Buy/Sell was successfulposted in Questions & Answers
Buy/Sell blocks won't pass if no success. Their gray output is the "error" output, which becomes active if something failed
-
RE: Gross profitposted in Questions & Answers
Try "Bucket of Closed Trades". Here is some example, not with this block, but similar - https://fxdreema.com/examples#Bucket-of...
-
RE: Indicator above High for n Candlesposted in Questions & Answers
Of course there is difference. This block checks whether MA8 is between the upper and lower level. Imagine that the upper level is the upper line of Bollinger Bands and the lower level is the lower line of BB. Then the block passes when the indicator (in your case MA8) is between both levels for the specified candles.
-
RE: Having troubleposted in Questions & Answers
For me all indicators do the same - they give values that you check. It's not that hard to check how the indicator itself works, like this - https://fxdreema.com/demo/mt4-trace-multiple
I just don't like your project, it's strange. I also don't understand those Loop blocks that are set to 1 loop. What they do now is to run their outputs in order - first the orange one and then the yellow. Maybe you want that, I don't see any other reason for them. But even this is not necessary.
Something is also wrong with blocks 47 and 6, they are both set to the current timeframe only, so I don't see why they are used as well. And they are connected in a different way. Maybe this is intentional, I don't know.
Also I'm not sure that what happens below blocks 47 and 6 is what you think should happen.
I also don't see why those "Every n ticks" are there.
-
RE: "Spread filter" block always set 5.0 fixed pips in the codeposted in Bug Reports
Well, you can get very confused if you are looking at the code. I am using many classes linked together. In the past each block had it's own code, but the downside was that if you let's say use the same block copied 20 times in the project, the same code is printed in the source code 20 times. Then I introduced those classes and now the main code of the block is written 1 time (for most blocks, not for all) in a class that I call "model", and 1 separate class for each block where the parameters are set.
So, in your screenshot what we have is one class that is the model for "Spread Filter", and in this class we have a constructor. What is a constructor? Some part of the class that is called once when we make instance of the class. In short, that value 5 is the initial value and it could be changed for every unique block. The actual value for "maxSpread" is set somewhere else in the code.
-
RE: What do say as variable?posted in Questions & Answers
To put it where?
About Init, here on the bottom - https://fxdreema.com/tutorial/builder/expert-advisors#4
-
RE: How to use Weekday and Hour filter for EA?posted in Questions & Answers
On Init works 1 time when you start the EA, I don't think that you want that.
On Timer works on regular periods of time. But on the Tester you can't have such event, because the Tester works on irregular tick events based on generated ticks. Similar to On Tick with "Once per seconds" or something like that.
If you want to backtest quickly, test the "Open prices only" model.
-
RE: Gross profitposted in Questions & Answers
What do you mean exactly? The sum of profits of all profitable running trades (hedge mode) or something else?
-
RE: trading stop seguir las gananciasposted in Questions & Answers
I used Google Translate to translate this and I see that you are asking something about trailing stop, but I could not understand the meaning of the translation
