fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Posts
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Posts made by roar

    • RE: Mql5 EA build

      @spicynote
      The code inside "once per bar" -block will execute on every tick. However, the block will continue the execution flow to blocks 8 and 9 only at the first tick of the bar. When new bar appears, it will once again execute only on first tick.
      Go ahead and compile the .ex5 and backtest it (in visual mode), that is the best and quickest way to learn. When I do something new, I compile and test 10 new versions of my EA in 10 minutes, its all about the repeating process. You can copy some block groups, turn some blocks off, experiment and find out which does what.

      I'd like to keep the process in this forum, for (1) building a knowledge base for everyone and (2) separating my free time, I only come here when I want to escape my busy life, I should be studying right now lol

      posted in Questions & Answers
      roar
      roar
    • RE: onTester()

      @spuzy
      Off topic - have you tried optimizing by recovery factor? I have found it to be better than profit factor, as some backtests with 2 trades can have a huge profit factor but the statistical credibility is still negligible..

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      @spicynote
      Like dis:
      0_1549380028337_Screenshot 2019-02-05 at 17.19.13.png

      posted in Questions & Answers
      roar
      roar
    • RE: Candle size

      Use the block "modify variables" and from there select candle -> candle total pips

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      @spicynote
      The EA doesnt currently care about the current candle for the trade opening, it only looks the ID 1 and 2. To trade only on candle open, use "once per bar" at the very top of your project

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      @spicynote The reason here is probably our closing condition: it checks candle close and MA with ID 0 (the current candle), and the price can naturally cross the moving average multiple times in one bar time. Use ID 1 in the closing condition to fix,
      or put "once per bar" in the project

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      @spicynote
      Here: https://fxdreema.com/shared/Y3lUXgVrb
      Moving backwards in time is best done with the candle ID.
      ID 0 = current, updating candle
      ID 1 = latest completed candle
      ID 2 = 2nd completed candle
      etc.

      Connecting blocks vertically means "AND".
      I connected 2 blocks with condition: "candle close is above 60 MA", with different candle IDs, so the combination reads as "latest candle is above 60 MA, AND the one before it is also above 60 MA"

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      @spicynote
      This will need some fixing. Remember that the ea algorithm runs on every new tick (as we are "on Tick").
      Now it checks every tick if the candle is above MA 60, and if that is TRUE, then it buys.
      It will not open new buys (even if price is above MA) before we wait 2 bars, that's what the "every n bars" does.
      You shouldn't put any closing conditions after the opening condition - that means that you want to close the trade on the same second you open it.

      I'll make a working example in a minute

      posted in Questions & Answers
      roar
      roar
    • RE: Mql5 EA build

      I can't test the .ex5 right now, got an optimization running..
      Please use the windows snipping tool to put a picture, or share a copy of the project:
      0_1549307479441_a6e39f48-ce0f-4a15-9b4d-9a220d05d46b-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Having trouble creating a MT5 EA even after converting it from MT4.

      Haha awesome!

      posted in Questions & Answers
      roar
      roar
    • RE: Generate a random chart

      HERE WE GO:
      0_1549302132153_79c02e83-0299-4065-864c-7a81b2c3ee71-image.png

      For some reason I couldn't get the gaps working, there was a gap on every candle... Going without them for now

      Here's a link to google drive, couldn't put the data here: [use new link below]

      It still has some problems with minute gaps, but the general concept works

      posted in General Discussions
      roar
      roar
    • RE: Generate a random chart

      Uhh working with 3 million candles (with all the factors that makes some 20 million data points) isn't as easy as I thought lol 😄

      I'm making good progress, though...

      e: Getting there... wow this is interesting

      posted in General Discussions
      roar
      roar
    • RE: Having trouble creating a MT5 EA even after converting it from MT4.

      @spicynote
      Starting a new project:
      0_1549296362338_f6912d48-be68-4a0b-82a9-b46fc23bf860-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: what option can use it if i want create order on chart1 create in the same time on chart2?

      @moon
      Honestly, I don't know with mt4. With mt5 you don't have to.

      posted in Questions & Answers
      roar
      roar
    • RE: what option can use it if i want create order on chart1 create in the same time on chart2?

      Use the symbol parameter:
      0_1549292946090_c5277863-eca6-4004-8628-624b09ed4b38-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Stop and reverse strategy(No martingale)

      @arrow82 Hi!
      I ran a quick backtest with the project https://fxdreema.com/shared/Cy0GAae1c
      0_1549292577195_59672b6c-1a73-42ec-8d32-ed3a767c58ec-image.png

      It does create trades, but the bot trades quite rarely by design. Engulfing candles don't happen very often with RSI over 70.
      The reason why you dont see the level 30 is because I mirrored it. It makes no sense to have different levels, like 70 and 20, it must be 70 and 30, 60 and 40 and so on. So its better to use only one level, less work with optimizing.

      See what I did here:
      0_1549292710935_52e9c1c3-cc88-4779-9832-e98a772de00a-image.png

      The level parameter is indeed 70, but the whole condition actually reads as "14-RSI is below 30" when you work the math out.

      posted in Questions & Answers
      roar
      roar
    • RE: Generate a random chart

      Thank you both! I'm going to build something up today once I get home from my real job lol

      I think mt5 has improved the custom symbols function, it should be easier. I am thinking of just copying the eurusd m1 data, and then just "flip" some candles over, bull to bear and vice versa, based on some random sequence. Spreads, tick volumes, volatility, gaps, dates will all stay correct, just the direction will be random, onwards from an achor point like 1.1.2010

      posted in General Discussions
      roar
      roar
    • RE: Having trouble creating a MT5 EA even after converting it from MT4.

      You can build in both mql4 and mql5. There is an option to choose mql5 when you start a new project

      posted in Questions & Answers
      roar
      roar
    • RE: Having trouble creating a MT5 EA even after converting it from MT4.

      So you can view the project in the fxdreema builder? You know, you could just open 2 browser tabs with fxdreema builder, and then copy-paste the blocks. Probably still gives some errors but they are easy to solve.

      posted in Questions & Answers
      roar
      roar
    • Generate a random chart

      I think it would be nice to backtest EAs on a completely random chart. A chart that by design does not follow technical analysis rules or anything else we see on the forex charts.
      If the EA "works" in a 100% random environment, one would be certain it has no real trading edge as the profitability would be just a tricky money management scheme. If EA works in real chart but not in random chart, that would be a promising sign.

      Do you have any ideas how to generate such a random chart for mt4/mt5? Perhaps it could follow the daily volatility cycle (13-hour ATR) but otherwise the candle opens, closes and wicks would be random...

      posted in General Discussions
      roar
      roar
    • 1
    • 2
    • 99
    • 100
    • 101
    • 102
    • 103
    • 120
    • 121
    • 101 / 121