Yes, fxdreema has a learning curve, as it is that versatile a tool. But once you get used to it, it is actually pretty intuitive and uses the basic logic of all coding languages.
This forum has very good chance of giving you answer to any problem, using the search function. What would you suggest to improve, for example?
Posts made by roar
-
RE: Making fxDreema betterposted in Questions & Answers
-
RE: Question about 'on trade (Event Data)'posted in Questions & Answers
When you find yourself copying the same block over and over again, there is usually a way to loop the process:

This method creates as many trades as you want, and assigns a special number for each one.
That number (group #) can then be used to control the trades.Doesn't really answer to your question though, just wanted to give another way of doing it

-
RE: Close newest and oldest tradeposted in Questions & Answers
@ambrogio For changing a minus sign to a plus sign.
Lets assume the "profitSum", thats the sum of the positive profit trades, example $12
Then the profit of the losing trade can be -$57. Positive is always bigger than negative, so we have to -1 * -57 to make it +57 so we can better compare -
RE: Close newest and oldest tradeposted in Questions & Answers
Mine works differently.

Here, take this .mq4 and import it to fxdreema so you get the exact same project. I also added a trade count condition for comfort.
0_1531746692796_hedge.mq4 -
RE: Here, take this profitable eaposted in Tutorials by Users
@richard96816 Agreed, fxdreema has some very versatile functions. It's very good to see other's ideas too, avoiding "tunnel vision" with the alone development.
Some say that sharing good eas doesn't happen because nobody would give away free money like that. I don't believe that approach at all - no matter how profitable your system is, there is always a risk present with trading, and the risk is higher if you don't even know the system you are using. So you have to learn the system, and thus you can also develop it further. Collaborative effort is the way to go
-
RE: Close newest and oldest tradeposted in Questions & Answers

The variables need to be reset at some point, otherwise the sum just piles up. Shared link somehow dropped that. I did that on the first loop block.
Tbh, I didn't actually do any test run with this ea, could still be faulty
-
RE: Close newest and oldest tradeposted in Questions & Answers
https://fxdreema.com/shared/fceTizc8
This one first calculates the amount of profitable trades. Then it checks the most losing trade against that profit sum, and if profit sum is bigger, close them all. Small losing trades will stay open. -
RE: Close newest and oldest tradeposted in Questions & Answers
It's a bit odd to pick oldest and newest, but this should do:
https://fxdreema.com/shared/QRnvqa97 -
RE: Close the oldest/farthest tradeposted in Questions & Answers
Maybe using the blue blocks is easiest way here:

This will close n (set to 3) most profitable trades, and immediately after that, the least profitable.
https://fxdreema.com/shared/2HwUCstX -
RE: Close the oldest/farthest tradeposted in Questions & Answers
Hi!
What is the "first" losing trade? Is it the oldest, most pips, or most $ ?
https://fxdreema.com/shared/2TwfqkIod
https://fxdreema.com/forum/topic/6019/how-to-select-least-profitable-trade
For finding the least profitable trade, check this post and example. It requires a bit tricky process (maybe there is some simpler one, idk) -
RE: Profitable Startegyposted in General Discussions
@moreirajbn
I like your thinking, I recognized myself there
Trading with robots is very different than manual trading - robot can never have the human ability to see beyond the price data, consider aspects outside the standard strategy, it just follows its path.
On the other hand, that is also something humans can never do: we can't analyze millions of price points in our heads. That is why robots should not follow the traditional price action rules, but to find some statistical edge, for example buying at 10 and selling at 4
-
RE: filtered by groupposted in Questions & Answers
You can add a group number to each trade from the "buy now" block, and use that to filter trades to groups 1-6
-
RE: Add a Position to a Current Winning Positionposted in Questions & Answers
@ronniethetrader said in Add a Position to a Current Winning Position:
The screenshot is everything I have so far, original entry is pretty much an MA Cross Is there a way to specify to start the count after I am in the original trade and not before?
This connection should do the trick


-
RE: New user! MQ4 file won't run.posted in Questions & Answers
The .ex4 file is in the correct folder but the 'Start' button won't press, or any of the buttons above it, such as 'Expert Properties.'
This sounds like a problem with your terminal, does it run the other EAs properly?
Check this example, I think this is close to what you want.
https://fxdreema.com/shared/Ossluy54
First it checks if there is no buy- if true, it checks if both 20 and 50 emas are above 200, and then opens buy
- if false (trade is running), it checks if both emas are below 200, then closes.

-
RE: New user! MQ4 file won't run.posted in Questions & Answers
The algorithm runs on every tick, from start (block 1) to finish (block 8).
You probably don't want your trades to be closed on the same tick as you open it
Try connecting the closing logic to the yellow (false) output of "no trade" block.
Also, be careful with multiple crossing conditions - they rarely happen on the same candle.
-
RE: Once per bar but selected barsposted in Questions & Answers
Connect the hours filter and once per bar blocks together

-
RE: How to Select "Least profitable trade"?posted in Questions & Answers
@rafaelgrecco said in How to Select "Least profitable trade"?:
What I was missing was:
- Reseting the variable "smallestprofit" on every new loop
We must reset the variables at some point, so the ea don't get "stuck" to some big loss that is already closed. Now it resets the variable on every tick, and also calculates it again so we always have the correct value. It is not the most cpu-optimal way but should work fine.
- Using the second output of "Each Trade" to wait for all trades to be checked
I think this is the correct way, we must first check all trades in order to find the lowest profit.
The looping blocks work a bit different than other blocks, go ahead and test different logic builds

-
RE: How to Select "Least profitable trade"?posted in Questions & Answers
https://fxdreema.com/shared/2TwfqkIod
Well, I have an idea but its not the simplest one
We could use a position loop that goes through all your open trades, it finds the lowest profit and the trade number (loop id) - after that loop we have the amount and trade number identified and so we can select that individual trade, and also use the basic condition block.If you copypaste the blocks, you will need to create these variables to your project:

Hope you get the idea

