@eray-dursun ... then you can combine the blocks "pips aways from open price" and "add volume", with whatever condition you want
Posts made by moreirajbn
-
RE: hello,help pleaseposted in Questions & Answers
-
RE: hello,help pleaseposted in Questions & Answers
@eray-dursun - use block called "buy pending orders in grid" and adjust the "gradation settings" for lot size.
-
Standard deviation of ATR.posted in Questions & Answers
Hello.
I've been trying to get the standard deviation of ATR (Average True Range indicator), but was not successful. I tried to edit the code based on the info from this link: https://www.mql5.com/en/forum/232952, but I was not smart enough to get it working.
I believe it should be a simple mql code, but I wasn't able to type it correctly.
Can someone please help with that? @miro1360 , @fxDreema ??
Thank you very much!
-
RE: Unsupported Filling mode (10030)posted in Bug Reports
This broker accepts only RETURN orders... that is the problem.
Not sure if @fxDreema can/will change the code just because of Modalmais... however, you can manually change the code of your EA to make it work..
-
RE: Pending Order Bugposted in Bug Reports
Broker - XPMT5 , symbol WINM18 (futures contract, so use april/may 2018 )
Do you need a demo account login?
symbol specs

-
Pending Order Bugposted in Bug Reports
Old topic, but I believe this problem is back... I fixed it manually in my EA, but I see that ORDER_TIME_* is used instead of SYMBOL_EXPIRATION_* in pending orders.... is it an error that you can fix or some particularity that Brazilian brokers have problems with (they report invalid expiration type)?

I fixed it manually but would be great to have it in the native code.
cheers
-
RE: SuperTrend with Macd Divergence and Semafor EAposted in Questions & Answers
You can use the controlling blocks called "Turn On Blocks" and "Turn Off Blocks" under the conditions that will block/allow trades.... if it should reset everyday, put a "Turn On (or Off) block" under "Once a day" block.... just be careful with the block numbers, as always
-
RE: SuperTrend with Macd Divergence and Semafor EAposted in Questions & Answers
The block "Set "Current Market" for next blocks" would probably do the same... wouldn't it?
It loops through all pairs input in parameters (in the order you typed in) and sets every next block to the different symbols
-
RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are usedposted in Bug Reports
I agree that there is no golden rule on how martingale should work. In my opinion the EA should look at the lot size and overall outcome (profit/loss) of the previous position, independently of how it was open (market or pending order) to decide on the next pending order's lot size, but this is just my opinion.
Either way, now that the function is working (I've tested a "simple martingale" from pending orders at least) the user can see how the block behaves and decide for himself what to do...
As always, fxDreema empowering trader's creativity... best tool on the whole internet

-
RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are usedposted in Bug Reports
Great if you can look it up...
Maybe this can help you further: I also thought the expiration was the problem, but at least here it's not. I tried without expiration and problem continues... I also made another type of expiration (blocks: "for each pending order -> check age (open time, pass if older than X min) -> delete pending orders"), and the problem continues as wells.
-
RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are usedposted in Bug Reports
I tried and it still doesn't work. I used the comment block to illustrate the problem I'm having.. but in fact it seems to be a problem with the history of trades created from pending orders.... for example, the martingale function doesn't work on the "buy/sell pending order" blocks. For example: fxdreema.com/shared/D4HmSiFE
The martingale doesn't add lots after loss... or whenever I try to search history trades with "for each position" or "bucket of position", it never gives the right results when the history is made of trades created from pending orders. I tried in 4 different computers and the problem is the same.. can you please check if , the martingale on pending orders work for you? fxdreema.com/shared/D4HmSiFE . (it's onTick)
-
MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are usedposted in Bug Reports
Hi @fxDreema
It seems like the "For each *** position" blocks (and other blocks related to trade history) are not working properly when I use "Buy/sell pending order". It seems to start passing only after a number of positions (opened from pending orders) have been closed, and it doesn't respect the rules under "loop settings", because the information I need (profit) only updates after several positions have been closed, even though I choose only 1 in "Not more than "n" history trades". It works perfectly when "buy/sell now" blocks are used.
Can you please check that?
See images below
The project: http://fxdreema.com/shared/Hlsgw9H9c

Closed positions, but no comments shown

Comments appear after many positions are closed

-
RE: Time bomb back testingposted in Questions & Answers
Hello.. you say "The lowest timeframe is 1 Minute and all ticks inside that minute are generated", but in MT5 we can in fact use real ticks from the broker in strategy tester, so I assume we can actually trust time bomb blocks as long as real ticks are used. What do you think?
As far as I noticed, the real ticks have millisecond resolution, matching the exact time they occurred in the market, and also account for spread changes. See image below:

-
RE: Big challenge... for me at least: Count candles crossed by a horizontal lineposted in Questions & Answers
@miro1360
Excellent Miro, thank you so much.. I'll try it right now... -
RE: Big challenge... for me at least: Count candles crossed by a horizontal lineposted in Questions & Answers
@miro1360
Hi,
I wish to count how many candles the yellow line "hits" (or touches, or crosses) in that period of time.... see new image below.... yellow line is hitting/touching/crossing 17 candles (red "X"es) within that time windowThanks...

-
Big challenge... for me at least: Count candles crossed by a horizontal lineposted in Questions & Answers
Hello guys,
I'd like to count how many candles are crossed by a horizontal line, over a defined period of time (analogous to market profile TPOs). See image below. Is there any way to count how many candles are crossed by the yellow line over the last "X" hours, days etc?
I thought of using condition blocks under "once per bar", to check if the line is within candle's high/low boundaries, then somehow count how many passes occurred, but I wasn't able to implement that.
-
RE: block of "Buy / Sell pending orders in grid" with errorposted in Bug Reports
You don't have to give up.... You can work around this problem by connecting the blocks: "for each pending order" > "check age" > "delete pending orders".... select the correct type of order (sell vs. buy) and go ahead.... The expiration function is a convenience, but some brokers do have limitations so you have to find a solution, and in fxDreema there are dozens of ways for doing the same thing... just be creative

-
RE: block of "Buy / Sell pending orders in grid" with errorposted in Bug Reports
You won't be able to open a demo account on a Brazilian broker without a live (real) account... in addition, quotes, history data and order routing in MT5 from Brazilian brokers are a joke. All kinds of errors, service outages while market is open... etc... they all blame MT5, but it's their servers.
-
RE: USING THE TESTERWITHDRAWAL() FUNCTION FOR MODELING THE WITHDRAWALS OF PROFITposted in Questions & Answers
I haven't tried it, but you can add a custom optimization criteria to your EA.... if you set that to "profit minus withdrawal" you'll probably get what you need.
CREATING CUSTOM CRITERIA - https://www.mql5.com/en/articles/286
I'm not a programer and haven't had enough time to dig into and it to my EA's, but it's something I'm interested in as well (also trade BMF in Brazil). So if you know how to add it to the EA code, I really appreciate if you could show me the way...
thanks a lot.
-
RE: Block "Check profit (unrealized)" is failingposted in Questions & Answers
fxDreema fixed it really fast....

thanks
