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: delay block

      @Nils what are you trying to accomplish with the delay? Why is it in last place, after everything is done?

      posted in Questions & Answers
      roar
      roar
    • RE: Filter for SPECIFIC days of the month?

      It signifies a function. Sometimes you need to put stuff inside the parenthesis, sometimes not, depending on function. But functions always need them to identify as functions instead of variables.

      I will write a more detailed example in a custom mql code block, but you will have to troubleshoot it from there (using the Print() function for example)

      datetime time = TimeCurrent();
      string timestring = TimeToString(time);
      int day = (int) StringSubstr(timestring, 8, 10);
      Print(day);
      Print("Today is " + day + "th day of the month");
      
      posted in Questions & Answers
      roar
      roar
    • RE: Filter for SPECIFIC days of the month?

      @GTOAT777 well TimeCurrent() will get you something like 2015.01.01 00:00 - then you can transform it into a string with TimeToString() and then you can take a StringSubstr() to get only the date.

      Maybe there is a simplier option too, but this should work.

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates here's some more points:

      • yes, you can add "== true" to the custom condition
      • when mql4/mql5 code is compiled into machine code, all spaces will be removed in the process. So you can put as many spaces as you like, wherever you want.
      • if you dont know how big your array is going to grow, you can do as you described: resize the array by +1 and then add your element to the last place
      • mql5 has a nifty function to remove one element from the middle of an array, and then combine the tails together again. You can use this in a custom mql code block. On mql4, you have to reconstruct this function with multiple ArrayCopy phases. It is also possible to just set the "disabled" elements as 0 or -1, but you should make sure your array doesn't grow too big, it will start affecting performance at some point. https://www.mql5.com/en/docs/array/arrayremove

      I'm not sure what other questions I should answer, maybe you can list them again đŸ™‚

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates said

      And greetings from a different part of Finland. Hahaha. I've noticed you seem to be Finnish. I'm American, but I live in Finland (my wife is Finnish). Anyways. Sorry. Lol. I know. Off topic.

      Oh hello there neighbor ':D

      fef76b23-7fe6-444f-966a-0f8d20a27ac5-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates said in First Attempt at Arrays. Could use an expert opinion.:

      Was I correct to do this?

      image.png

      This one works, but if you want to look smart and techy, you can also use the other condition block and just set your boolean array as the condition itself:
      f1cc7181-79da-4008-8529-94ea1e385906-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      Hi @MrDaisyBates!

      If you were coding in pure mql5 there wouldn't be any problem, but the "blocky" nature of fxdreema requires some extra consideration: when you declare variables in a "custom mql code" block, those variables are usable only inside that block - they are not global.

      You can declare them globally by using your Variables menu:

      6e45ad4e-aeaf-45c1-9fdb-a573349b4ecd-image.png


      After deleting block 16 and declaring the variables in Variables menu, there's just 2 errors, seemingly typos.
      48a07f65-659e-4e66-b88d-ac3a6bb53051-image.png

      In these situations it often helps to download the .mq5 and try to compile it in your own MetaEditor. Now you see the error line, and somewhere above that you can always see the fxdreema block number.
      https://fxdreema.com/shared/CfH27QXP


      78c40e7a-5de8-4b17-a95e-64cfa001dda4-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: EAS AUTOMATION PROBLEMS "STATUS"

      Then your "once per bar" filter cannot be before any conditions. Place it just before buying.

      posted in Bug Reports
      roar
      roar
    • RE: EAS AUTOMATION PROBLEMS "STATUS"

      @basque007 what do you mean the EA is not working ok? Both locations for the "once per bar" are functional, it just depends on your strategy. Do you want to check your conditions once per day, or do you want to check them continually but only trade once per day?

      posted in Bug Reports
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @MrDaisyBates the loop works as you described in the upper part of you reply.

      It doesnt automatically break if the array range is exceeded, but when you set "Cycles" to ArraySize(), this shouldn't be a problem.

      posted in Questions & Answers
      roar
      roar
    • RE: EAS AUTOMATION PROBLEMS "STATUS"

      @basque007 the EA probably has some other error

      posted in Bug Reports
      roar
      roar
    • RE: How can a button's backgorund colour be changed?

      @l-andorrĂ  if all else fails, you can use mql code:
      ObjectSetInteger(0,"objectname",OBJPROP_BGCOLOR,clrRed);
      https://docs.mql4.com/constants/objectconstants/enum_object/obj_button
      de705868-3584-4ac9-b1be-c8f7de710af1-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: EAS AUTOMATION PROBLEMS "STATUS"

      @basque007 I dont think there is anything wrong.
      "waiting for tick" = EA has just been placed on a chart and it has not recorded any tick
      "working" = the EA has began its normal working process

      If you look in the source code, you see the "waiting for tick" is the initial status

      a01b69e8-d51c-438d-91cf-c71bea065d32-image.png

      posted in Bug Reports
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      Hi @MrDaisyBates! I'm not subtracting one off, I'm setting its value to exactly -1. Furthermore, the white section executes only once, even with loop blocks. Orange section executes for each loop iteration.

      So effectively the loop_id is -1 before the loop starts, and it will be 0 when the loop starts working with the array. You need to start at 0 with arrays.

      posted in Questions & Answers
      roar
      roar
    • RE: How do i structure Grid Gradation settings without pending orders

      Use the positions loop to get the open price of 2 latest trades-> open new buy trade when price is above latest trade open plus 1.1 (or whatever) times the difference between 2 latest trades.

      posted in Questions & Answers
      roar
      roar
    • RE: Problem with variable string array

      It seems the Value field automatically escapes any quote marks, because normally you only write the text for string variables and fxdreema itself takes care of the quotation later.

      Try declaring the timef array as an empty array first, and then populate it separately in a "custom mql4 code" block

      posted in Bug Reports
      roar
      roar
    • RE: Poor countries, poor people

      What an interesting thread, couldn't agree more with the admin.

      posted in General Discussions
      roar
      roar
    • RE: EA based Prop Firm

      Something like https://www.darwinex.com/eu/ ?

      posted in General Discussions
      roar
      roar
    • RE: Opposite direction trade with specific entry

      The low of latest candle may be above or below your entry price. So you will end up with a negative (impossible) SL and lot size.

      posted in Questions & Answers
      roar
      roar
    • RE: Delete Pending Order After One Other Pending Order Has Been Triggered

      @Michael-Alex try these 2 blocks:
      If trade -> Delete pending orders

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 7
    • 8
    • 9
    • 10
    • 11
    • 120
    • 121
    • 9 / 121