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: Check Candle 1-5 if Price was higher then MA

      @siggi12345 I think I got it, try this version
      https://fxdreema.com/shared/cV7V8KE9e

      posted in Questions & Answers
      roar
      roar
    • RE: how do I make my ea to take trade after every 5 minutes?

      @brend or "Once per bar (5 minutes)" -> buy

      posted in Questions & Answers
      roar
      roar
    • RE: Lot size decrease

      @ramimoujaes hi!

      You didnt mention about buy/sell separation, does the calculation take that into account. So I have to assume.

      https://fxdreema.com/shared/NYjuilPKd
      Here is my thoughts, its not exactly as in your project, but I hope you get something out of it.
      Download the .mq5 and import it back again to your builder, then you see all the variables and such.

      There's lots of "advanced" tricks in the example - I'll leave you to chew on it for a couple days, before answering the follow-ups 😉

      posted in Questions & Answers
      roar
      roar
    • RE: Check Candle 1-5 if Price was higher then MA

      @siggi12345 I think the logic is right and you do understand the structure, but there is just some minor bug. Maybe the MA is not 9, instead its 20, etc... Does the EA make trades at all, even in "weird" situations? Share a link?

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ https://fxdreema.com/shared/LgnX2WX3

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ Sorry, I confused even myself with the true/false things here.
      Made a fix: the comparator in the second block is ==, not !=.
      0_1601032823174_25678c0e-5194-4005-ad7a-e1b8922f72ce-image.png

      So, the logic is

      • when variable is false, run the loop and try to find a candle setup which makes the variable true
      • when it is true, proceed to next section of the EA.

      Edit: Goddamn now I'm confusing my projects with each other, fixed again.

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ said

      I think there is a big learning curve awaiting for me about loops.

      Yes I think its more "advanced" stuff - and the worst part is, this particular loop logic is my own scribble lol

      There is also an official loop block in the builder, it works a bit different. If youre familiar with the coding jargon, my loop here is a while loop, whereas the fxdreema loop block is a for loop.

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ this block needs to change the variable when the loop finds a suitable candle, otherwise the algo never proceeds to the next stage
      0_1601031610038_e914eee8-4e57-4e43-ac22-818eec0a3c55-image.png

      You dont need to reset the IDs, they dont matter in this EA. I just like to keep them small myself, just a preference.

      posted in Questions & Answers
      roar
      roar
    • RE: Check Candle 1-5 if Price was higher then MA

      @siggi12345 yes this is pretty technical stuff, youre smart for learning it so fast!

      Answer to question: "Pass orange first" is my method of organizing the whole algorithm. It first does the loop thing, and later does other things (whatever is connected to yellow output).
      Basically just to make sure the EA doesnt check the loop results before the loop has even done its calculations.

      Oh, didnt know about the casing.. I don't use boolean variables myself, just integers 0 and 1 for true/false, but I thought that would confuse others..

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ yeah looks ok, but because of the missing variables, cannot see the variable modifications (in right-side of blocks) which are critical for the logic
      0_1601017232351_606baba9-8148-4f8f-879d-f19b3ae27e4f-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Put an EA on the market

      @seb-0 go ahead
      0_1600977430085_382c0f38-181b-4c79-9f87-bd8379e5fb2c-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Re-edit projet description

      @rodrigo-ortuzar
      0_1600972555576_86850910-6024-4a94-b25d-8fd10d9867f8-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Check Candle 1-5 if Price was higher then MA

      @siggi12345 sure!

      To operate our loop, we need to first create 2 variables. The variables menu opens from the top of blocks list.
      0_1600969360771_59128d43-7e79-4105-b78a-31afac339e16-image.png

      The idea in my loop is to first set some boolean variable ("success" in the example) to TRUE, and then loop through all 5 candles -> if some of them breaks our condition, the variable is set to FALSE.
      After the loop, we can simply check if our variable has stayed TRUE, which would mean that all conditions were ok.
      https://fxdreema.com/shared/6Zmxnuj6c

      Edit: wrong pic

      posted in Questions & Answers
      roar
      roar
    • RE: FRACTALS DEFINITION

      @mmaarits hi!

      To keep it simple, here's an algo just to keep track of those 4 fractals. You can add the comparisons and trade operations yourself, right?
      https://fxdreema.com/shared/A9UObbiqe
      up1 is latest up fractal, you get the rest...
      0_1600966692136_aab160c0-6cca-43e5-b184-fe8055a97c09-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ Your example is missing all variables - you need to declare them yourself, exactly as is shown in my pictures above.

      I don't know any great learning source, my style is to try and fail, learn that way...
      Well, Miro has created a loop tutorial but that uses the actual, official loop block, I didnt.
      http://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-and-save-specific-value-from-indicator-history

      By the way, you can reset your block IDs from "Project Options" 🙂

      posted in Questions & Answers
      roar
      roar
    • RE: How do I make these fields constant?

      @ontrade are you familiar with fxdreema constants?
      Just declare them and insert into fields with right-click.
      And remove those tick marks.

      Method and applied price are a bit more technical, you need to refer to mql4 documentation (for example, "Simple" is constant value of 0 or MODE_SMA)
      https://docs.mql4.com/constants/indicatorconstants/enum_ma_method

      posted in Questions & Answers
      roar
      roar
    • RE: Error message when compiling

      @swissi worked in my own test but ok

      posted in Questions & Answers
      roar
      roar
    • RE: Simple market buy/sell on MQL5 code

      @nilsen ah, I noticed it too. I don't really know about this then, I'm starting to fear its not possible in "Custom MQL code".
      Making your own blocks in fxdreema studio would allow to use mql in "global scope", whatever that means. But I can't really help you further..
      https://fxdreema.com/studio/

      posted in Questions & Answers
      roar
      roar
    • RE: Simple market buy/sell on MQL5 code

      @nilsen maybe that's an outdated function, I can't find it in documentation..

      https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradebuy

      https://www.mql5.com/en/docs/trading/ordersend

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 41
    • 42
    • 43
    • 44
    • 45
    • 120
    • 121
    • 43 / 121