https://fxdreema.com/shared/jRwPB544
This tells which trade(s) to work with: http://prntscr.com/3ysvmw In the case - only 1 trade, which is the very last one that is created.
Posts made by fxDreema
-
RE: The strategy from scratch questions and problemsposted in Questions & Answers
-
RE: How to avoid losses at each tick?posted in Questions & Answers
But you have block 7 directly after "If trade...", no conditions are checked and the trade is closed if CCI is.... whatever it is.
-
RE: EA works fine in Backtest but fails on live ECN brokersposted in Questions & Answers
What project are you using? I can see in your account directly, so it's enough to tell me it's name.
Some error logs in details? -
RE: volatily eaposted in Questions & Answers
Be careful when you use "==". I used it, but my idea is that when the candle is going up/down for 1st time, it's Close price is equal to High or Low, depending on the candle type. But otherwise to use "==" to measure prices... bad idea. A candle might be exactly 0.5 pips... very very rarely. Ticks are jumping up and down, now it can be 0.3, in the next moment it can be 0.7 and never be exactly 0.5.
-
RE: MAE maximum adverse excursionposted in Questions & Answers
http://docs.mql4.com/strings/stringfind
What do you want to do? -
RE: Problem with custom indicator ex5posted in Bug Reports
I'm confused, I don't understand your english in the last 2 posts.
Let's say this:
Trade = running, not closed order in MT4.
Order = Pending order.
Position = running order in MT5.Now, what needs to be done, step by step?
-
RE: MAE maximum adverse excursionposted in Questions & Answers
If *10000 works, use this. But I don't like such a way to do things. In many places, for example Stop Loss in Buy now can be placed as a custom value - custom price level, custom pips or custom price fraction (price fraction is value like this 0.0031).
Otherwise in the EA itself I use some function for these conversions, but I will not recommend someone to use them
Sometimes I change them or rename them. But you can always use native functions. -
RE: Problem with custom indicator ex5posted in Bug Reports
What is "order" for you now?
In any case, "For each Trade" (and other "For each..." blocks) can load certain trade or order, look at the option "Not more than...". But if you use one of these blocks, you most probably have to use another pink blocks, and the problem is that most of the people don't get how to deal with these blocks and I don't know why

Or there is a block "Check last closed trade profit"
-
RE: EA works fine in Backtest but fails on live ECN brokersposted in Questions & Answers
I receive reports and questions every day, no one reported something like this soon

The native function OrderSend() is used, and if something is wrong with the EA itself, the error will be something like "Invalid stops". "Trade is disabled" is somehow different. There are some rules and limits when sl or tp are too close to the current price, but I think errors should be different than these. Check if everything is ok with "No trade is running -> Buy now", both with default settings (big enough stops)
Also you can check some EA that comes from internet, not from fxDreema. I almost believe that the problem is not in the code, but I might be wrong.
-
RE: volatily eaposted in Questions & Answers
I don't think you need tick size, at least not to detect candle movements.
Try this: https://fxdreema.com/shared/o282mhOEc
(candle Body size = the difference between Open and Close) -
RE: How to avoid losses at each tick?posted in Questions & Answers
I guess these are trades with loss > 1 pips. You open a trade in the first group of blocks, and right after that you have "Close losable trades". Trades are losable right when they are opened, how much... depends on the spread at that moment

-
RE: MAE maximum adverse excursionposted in Questions & Answers
Look at the border colors. White border - there the variable is midified when entering the block. Orange border - when going to the orange output, Yellow - the yellow output, Gray - similar here.
In the field you need, write the value you want the variable to have. For example "2". Or "2+2". Or something more complex.
There are short names that each variable (and constant) gets for this block. V1, V2, V3... C1, C2, C3.... these can be used instead of their real names. -
RE: EA works fine in Backtest but fails on live ECN brokersposted in Questions & Answers
Well, these errors are response from the server, so I guess the problem is there. Maybe your broker have some things disabled?
-
RE: Problem with custom indicator ex5posted in Bug Reports
____Try this: https://fxdreema.com/shared/ojzKofPgb
__And please, try "Indicator tester" block at least once[/quote:3oo9e1do]
Yes, I did the test indicator, and I only came with 16 digit numbers e+308[/quote:3oo9e1do][/quote:3oo9e1do]
Which means something
It's not that "Indicator tester" is broken. That value is when the line is not visible.
Using "Indicator tester" from the last project I shared, I get this: http://prntscr.com/3yfgg2 -
RE: MAE maximum adverse excursionposted in Questions & Answers
Also variables can be modified at another place, click on this tab: http://prntscr.com/3y4g0m
-
RE: MAE maximum adverse excursionposted in Questions & Answers
__maybe something like this: if trade is running > pips away from open price > compare to previous value? if higher, store in a variable > at trade close, write variable to an excel file.
i just need help with the question mark part :)[/quote:1ml9vzke]
I think this is ok. Otherwise this information is not collected, let's say it's too specific, but it can be done anyway with some variable or with a custom block (if you know MQL4 of course). -
RE: EA works fine in Backtest but fails on live ECN brokersposted in Questions & Answers
What about settings in MetaTrader 4, Tools -> Options -> Expert Advisors?
-
RE: New EA mt4 BBands.posted in Questions & Answers
I don't like how it looks in your project, you probably didn't added it successfully in fxDreema, this indicator has many input parameters and buffersand it should look like this: http://prntscr.com/3y3mdm
That indicator, when it does not draw anything, it's value is -1. Which is currently not supported by "Indicator appear", because "Indicator appear things that -1 is a regular value because some indicators can use it. Or maybe not, I will probably integrate it somehow, but anyway.
For now you can check if the indicator is > 0, which means that it is visible (buffer 0 or buffer 1). Also in Condition, crossover with 0 will work somehow, like this: https://fxdreema.com/shared/yiZrQbZEd
-
RE: cross other currencies through indicatorposted in Questions & Answers
Indicators gives the EA values, if those values are similar - ok, it can be done easily. Otherwise there is no something like automatically formatting MAs in a way to look like they cross while they are 1000s of pips away from each other, and that number even changes depending on the time window perion where you are looking at. But if there is some custom indicator that does something similar, it can be used.
-
RE: negative variablesposted in Questions & Answers
If you made the same project in the web version I will be able to see it and tell you exactly what is going on. It can be imported also from .mq4 file (the one generated with fxDreema).