fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. moreirajbn
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 1
    • Topics 11
    • Posts 64
    • Best 5
    • Controversial 0
    • Groups 0

    Posts made by moreirajbn

    • RE: hello,help please

      @eray-dursun ... then you can combine the blocks "pips aways from open price" and "add volume", with whatever condition you want

      posted in Questions & Answers
      M
      moreirajbn
    • RE: hello,help please

      @eray-dursun - use block called "buy pending orders in grid" and adjust the "gradation settings" for lot size.

      posted in Questions & Answers
      M
      moreirajbn
    • Standard deviation of ATR.

      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!

      posted in Questions & Answers
      M
      moreirajbn
    • RE: Unsupported Filling mode (10030)

      @joanirj

      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..

      posted in Bug Reports
      M
      moreirajbn
    • RE: Pending Order Bug

      @fxdreema

      Broker - XPMT5 , symbol WINM18 (futures contract, so use april/may 2018 )

      Do you need a demo account login?

      symbol specs

      0_1526148999586_Screen Shot 2018-05-12 at 20.15.52.png

      posted in Bug Reports
      M
      moreirajbn
    • Pending Order Bug

      @fxdreema

      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)?

      0_1526148365341_Screen Shot 2018-05-12 at 20.03.55.png

      I fixed it manually but would be great to have it in the native code.

      cheers

      posted in Bug Reports
      M
      moreirajbn
    • RE: SuperTrend with Macd Divergence and Semafor EA

      @mustafafr010

      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

      posted in Questions & Answers
      M
      moreirajbn
    • RE: SuperTrend with Macd Divergence and Semafor EA

      @miro1360

      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

      posted in Questions & Answers
      M
      moreirajbn
    • RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are used

      @fxdreema

      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 🙂

      posted in Bug Reports
      M
      moreirajbn
    • RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are used

      @fxdreema

      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.

      posted in Bug Reports
      M
      moreirajbn
    • RE: MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are used

      @fxdreema

      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)

      posted in Bug Reports
      M
      moreirajbn
    • MT5 projects only: "For each closed position" not working properly when "Buy/sell pending order" blocks are used

      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
      0_1523745619895_Screen Shot 2018-04-15 at 00.40.07.png

      Closed positions, but no comments shown
      0_1523745667843_Screen Shot 2018-04-15 at 00.36.22.png

      Comments appear after many positions are closed
      0_1523745698878_Screen Shot 2018-04-15 at 00.38.14.png

      posted in Bug Reports
      M
      moreirajbn
    • RE: Time bomb back testing

      @fxdreema

      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:

      0_1523573638080_Screen Shot 2018-04-13 at 00.53.06.png

      posted in Questions & Answers
      M
      moreirajbn
    • RE: Big challenge... for me at least: Count candles crossed by a horizontal line

      @miro1360
      Excellent Miro, thank you so much.. I'll try it right now...

      posted in Questions & Answers
      M
      moreirajbn
    • RE: Big challenge... for me at least: Count candles crossed by a horizontal line

      @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 window

      Thanks...

      0_1523541771253_Screen Shot 2018-04-12 at 14.26.12.png

      posted in Questions & Answers
      M
      moreirajbn
    • Big challenge... for me at least: Count candles crossed by a horizontal line

      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.

      Any thoughts? @fxDreema @miro1360
      0_1523537489399_Screen Shot 2018-04-12 at 14.26.12.png

      posted in Questions & Answers
      M
      moreirajbn
    • RE: block of "Buy / Sell pending orders in grid" with error

      @cjdduarte

      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 🙂

      posted in Bug Reports
      M
      moreirajbn
    • RE: block of "Buy / Sell pending orders in grid" with error

      @fxdreema

      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.

      posted in Bug Reports
      M
      moreirajbn
    • RE: USING THE TESTERWITHDRAWAL() FUNCTION FOR MODELING THE WITHDRAWALS OF PROFIT

      @vinicius-pereira

      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.

      posted in Questions & Answers
      M
      moreirajbn
    • RE: Block "Check profit (unrealized)" is failing

      fxDreema fixed it really fast.... 🙂
      thanks

      posted in Questions & Answers
      M
      moreirajbn
    • 1
    • 2
    • 3
    • 4
    • 3 / 4