@timmyhanke here's how to find the extreme win and loss:
https://fxdreema.com/shared/1nybT8tae
Posts made by roar
-
RE: Find ordersposted in Questions & Answers
-
RE: Find ordersposted in Questions & Answers
@timmyhanke find biggest losing trade? Just use the loop block, sort the trades and set n=1? No need for any variable. Just 1 block and done.
I see you have done exactly that, so why dont you like it? What needs to be changed?
-
RE: Find ordersposted in Questions & Answers
@timmyhanke Do you reset the dd variable before using the "for each trade" to find new losses again? I would reset all relevant variables to 0 just before launching the loop, but I'm not sure if it matters here.
Do I fully understand the mechanics you are after: match win trades to lose trades and close all? Do we look at history trades or only running trades? Can you make a numerical example?
A tip: I see a lot of repetition in your full project, I think it would be easier managed if you used some loops here and there. Also, "modify variables" block is actually very rarely needed, you can use the quick "variables" tab on upper right of each block to do almost anything, only indicator calls are easier done with "modify variables"...
-
RE: 3 questions about EAposted in Questions & Answers
Take this EA:
https://fxdreema.com/shared/hCsoFD9xb

I put it into a chart, it opened a trade.
Then I closed the chart, closed mt4, and then put the EA on again.
It does not open any new trades.
So the conclusion is that the EA does find its earlier trades

-
RE: set limit ordersposted in Bug Reports
limit/stop order choice is automatic, sell orders above current price are always limit, below current price always stop
-
RE: MQ4 EA -> MQ5posted in Questions & Answers
@cbot-0 just try it, 99% of the blocks copy without any error
-
RE: HOW TO USE ATR TO SET STOP LOSS? :-) Stay safe peeps!posted in Questions & Answers
@nico1397 open the adjust box and type this:
*1.5
-
RE: EA not registering RSI crossoverposted in Questions & Answers
@miano everything in one tree, from "no position" all the way to "close positions" here will always happen together, in one second, or in one tick in this case (see the "on Tick" up there?).
You probably dont want to close your sell immediately after opening it - if that's the case, cut the link between "sell now" and "condition", so they can be 2 different processes.
-
RE: Looking for roar's formulaposted in Questions & Answers

@l-andorrà I dont remember making actual pip size rules, but maybe it was the SL in money terms -topic:
https://fxdreema.com/forum/topic/8169/how-can-a-sl-based-on-currency-be-set-up/22If not, here's all my forum replies with the word "calculate" in it, maybe its there somewhere

https://fxdreema.com/forum/search?term=calculate&in=titlesposts&by=roar&sortBy=timestamp&sortDirection=&showAs=posts&page=1 -
RE: Is there access to the download MT5 code once a subscription is paid for?posted in General Discussions
@seonfx Yes, you get to download the code. However, its machine-generated and so not very elegant or optimal..


-
RE: New eaposted in Questions & Answers
https://fxdreema.com/shared/O8qhmli3b
I hope this at least puts you into right direction, I'll leave you to it, got something else to do..
-
RE: New eaposted in Questions & Answers
Ok, if you only care about the part after 20 points, why not set pending buy/sell stop order at 20 points? This way you dont have to pay for the zero-sum part.
I dont think this strategy is actually a huge success, holy grail, but its good practise!
-
RE: New eaposted in Questions & Answers
My concern is the first 20 points, when you have trades to both directions. The 20 points are useless from your perspective, you only start to earn actual profit after price moves more than 20 points. Am I right?
-
RE: New eaposted in Questions & Answers
@runegg the trade is actually less than 0, because there are trading costs. You are giving money away to your broker, and you get nothing back.
Anyway, here's how you wanted it:
https://fxdreema.com/shared/NR8tjDmvc -
RE: New candle - Open trade issueposted in Questions & Answers
@gsmtricks theres lots of problems with ontimer lately, maybe there is some unknown bug...
You could do it ontick, and just hope there are ticks during those 1-3 seconds.When new candle opens, put the time into a variable with TimeCurrent() function.
Now you can set condition: TimeCurrent() > variable + 2
This way you get a 2 second delay from candle open. -
RE: New eaposted in Questions & Answers
But you must see that you are locking in 1 guaranteed 20 pip win and 1 guaranteed 20 pip loss. Its 0.
Think about your account in total, not individual trades.
If you put 2 stop orders 20 points away and 2 limit orders 60 points away, you get the same strategy but it is more efficient, because you dont pay for nothing. -
RE: New eaposted in Questions & Answers
Putting 2 limit orders 60 points away is the same strategy, you will only lose less money because you dont pay spread, commission and swaps for nothing.
-
RE: DRAW TEXTposted in Questions & Answers
@ituinvests sure! Here:
https://fxdreema.com/builder/shared/npJqcCJO
You can't see variable declarations from that shared thing, but its 0 by default:

-
RE: DRAW TEXTposted in Questions & Answers
- Set some variable to 0
- Condition: variable == 0
- if TRUE, draw text
- Set variable to 1 -> now the condition will always be FALSE
-
RE: need help plsposted in Questions & Answers
@ralph EA should work ok on multiple pairs, I dont see how there can be any interference. Anyway, you can try to set different magic number for each EA:
https://fxdreema.com/tutorial/builder/groups-and-magic-numbers
If you'd share an example screenshot, I could better see the problem.