fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Mantadiver
    3. Posts
    M
    • Profile
    • Following 1
    • Followers 1
    • Topics 40
    • Posts 102
    • Best 9
    • Controversial 0
    • Groups 0

    Posts made by Mantadiver

    • RE: Import Custom indicator - defaults change . . .

      Hi @kave
      For me the solution was to stop using the auto-import & use Custom MQL Code blocks to import custom indicator data by using iCustom.

      The issue may have been caused by the fxDreema import or maybe something in my custom indicators, either way, writing the raw code to import inficator values works 100%.

      Hope this helps.

      posted in Bug Reports
      M
      Mantadiver
    • RE: Error Parabolic "array out of range"

      Remove #property strict if exists.

      Fixed it for me, many thanks.

      posted in Questions & Answers
      M
      Mantadiver
    • RE: BLOCKS NOT CONNECTING

      @Mantadiver

      You need to make a note of the offending block title.

      In my case "cl;"

      I thought I had deleted it but it became the name of another block on another tab and caused the exact same problem. I managed to carefully rename it to 1234 and then refreshed the browser.

      Then Ctrl-F and try to find any blocks with the name "cl;". Only when I confirmed that there were no blocks on any tabs with that name was the problem completely resolved.

      The lesson: Thou shalt not use anything other than alphanumeric names for blocks.

      posted in Bug Reports
      M
      Mantadiver
    • RE: BLOCKS NOT CONNECTING

      I have experienced the same issue but trying 3 different browsers, clearing cookies & rebooting didn't help.
      I then tried to delete all the blocks on that tab and found that one block refused to delete. I had inadvertently entered a semi-colon when giving the block an alphabetical name rather than a number.
      I tried to change the name but it wasn't having any of it.

      The Solution that seemed worked for me:-

      1. RMC on the block and choose delete.
      2. In my case it didn't delete BUT...
      3. Next refresh the browser (F5) and it then gets deleted.
      4. Now blocks connect fine again.

      However, it's now occurred again on a different tab and I cannot find a reason for it . . . something is going on . . .

      posted in Bug Reports
      M
      Mantadiver
    • RE: Array Out Of Range

      Would it be possible to not use an array but use a simple integer instead ? When I build indicators I check for once per bar by populating an integer ThisBarStartTime = Time[0];

      The BIG issue here is that when an EA is running live an array out of range error stops it dead in its tracks and no further actions can be taken. There is no way to create an alert, push, sms or Telegram meassage to the user because it has simply stopped working. Therefore it ends up with orphaned trades unless they can be identified and managed by reapplying the EA to the chart.

      Instead of allow an array our of range error to occur, would it be possible to allow the code to continue and do further checks, i.e. look at the timeframe and check some other flag to see whether it has already been actioned yet on this bar. Then allow it to continue and maybe flag an alert to say there was an issue but at least the ea continues to run . . . . ?

      Thanks for looking into it. Appreciated.

      posted in Bug Reports
      M
      Mantadiver
    • RE: Array Out Of Range

      Yup, that's the issue, there doesn't appear to be a smoking gun. I've added a raft of logging messages to try and gain more insight when it happens again.

      posted in Bug Reports
      M
      Mantadiver
    • Array Out Of Range

      I have started getting Array Out Of Range errors.

      The EA starts & runs for a while and then simply stops.

      To fix a bug you need to replicate I haven't yet managed to find a series of events to replicate it.

      The error always points to the same area of "core" fxdreema code:-

      datetime new_value = time[0];

      This code appears under the heading:- // "Once per bar" model

      Judging by the last message before the error occurs I believe it is happening immediately on the start of a new bar.

      Any thoughts please ?

      posted in Bug Reports
      M
      Mantadiver
    • How to use a value from an array to populate a block field.

      Within the fxdreema blocks there are many fields for users to enter either a value or reference a constant / variable.

      Also rather than looking up a variable I am familiar with typing the name and adding a prefix v:: in front of variable or c:: in fron of a constant.

      My question is how do I add a value from an array ?

      For example . . . Lets say I have created a double variable called Lots[10] and I want to insert value Lots[5] into the Buy block field . . . "How much"

      I type in Lots[5] or v::Lots[5] but neither work. I always have to convert Lots[5] into a non array variable first to pass to the field.

      If anyone knows what I am doing wrong / how to do this it would be greatly appreciated.

      Many thanks

      MantaDiver

      posted in Questions & Answers
      M
      Mantadiver
    • RE: All Blocks Resized + Lost All Connections

      Hi roar, Yes you are right, there is plenty of scope for improvement and de-duplication of blocks. I'm getting better each project but also this is quite a large project in it's own right. fxdreema has confirmed it was a temporary change whilst testing the above issues and all is back to normal again today.

      And Yes, I do accept your challenge . . .

      Thanks

      posted in Bug Reports
      M
      Mantadiver
    • RE: All Blocks Resized + Lost All Connections

      @fxDreema have you implemented a maximum block limit per project ?

      Suddenly today I tried to add a new block to an admittedley large project and it says "For techincal reasons the maximum number of blocks that can be created is ____".
      I must have been operating well above the max blocks limit for months and never saw this message.
      Essentially my project is now unable to be worked on unless I somehow find a way to dramatically cut the number of blocks which isn't possible.

      Is this something that has just been imposed ? Is it related to the other issues in this thread ?

      I really hope you can make an exception for certain projects as I have been using fxdreema for years and never been aware of this restriction.

      Please help. Thank you.

      posted in Bug Reports
      M
      Mantadiver
    • RE: Number separator using commas

      Managed to incorporate the "NumberToString" function put forward by nicholish en at end of page one of this mql5 forum thread 135250 (Google: NumbersSeparator() function for Print big numbers).

      This allows numbers to be automatically formatted with commas by using a new function:
      NumberToString ( numbertoconvert , decimalplaces )

      1. Create Custom Block
      2. Enter "NumberToString" as new block title in "new block..." field
      3. Look for pane "Global variables, includes" at bottom of page
      4. Type in "#include<Strings\String.mqh>"
      5. Look for pane in bottom right titled "Custom Functions" press "new"
      6. Remove the default text
      7. Paste in the code supplied by nicholish en:

      //+------------------------------------------------------------------+
      #include<Strings\String.mqh>
      template<typename T>
      string NumberToString(T number,int digits = 0,string sep=",")
      {
      CString num_str;
      string prepend = number<0?"-":"";
      number=number<0?-number:number;
      int decimal_index = -1;
      if(typename(number)=="double" || typename(number)=="float")
      {
      num_str.Assign(DoubleToString((double)number,digits));
      decimal_index = num_str.Find(0,".");
      }
      else
      num_str.Assign(string(number));
      int len = (int)num_str.Len();
      decimal_index = decimal_index > 0 ? decimal_index : len;
      int res = len - (len - decimal_index);
      for(int i = res-3;i>0;i-=3)
      num_str.Insert(i,sep);
      return prepend+num_str.Str();
      }
      //+------------------------------------------------------------------+

      1. Press "save" & close window
      2. Press "save changes" at top of custom blocks screen
      3. Return to fxdreema builder, refresh browser window and add new custom block in Oninit

      Then whenever number formats using commas are required use:-

      NumberToString ( numbertoconvert , decimalplaces )

      Output will show as 1,234,567 rather than 1234567.

      posted in Questions & Answers
      M
      Mantadiver
    • RE: Possible to insert dll import code ?

      OK I have now managed to import a dll using fxdreema:

      1. Create a new CUSTOM block (click "Custom" from left hand panel).
      2. Enter a name for your block in the "new block..." field and press "create".
      3. Look down to the bottom panel on the screen with heading "Global variables,includes".
      4. Enter your import / include etc:
        #import " myDLLname.dll"
        or #include <Telegram.mqh>
      5. Press "SAVE CHANGES" at the top
      6. Refresh fxdreema browser and you should see your new block listed under Custom blocks.

      To get it to work I had to make sure the first block in OnInit is "Pass" and the next block is the DLL import block with no other blocks after it. I then started a separate "Pass" block to conduct the remaining OnInit actions.

      posted in Questions & Answers
      M
      Mantadiver
    • RE: Possible to insert dll import code ?

      Not yet, sorry.

      posted in Questions & Answers
      M
      Mantadiver
    • RE: EA Speed best practices

      Thanks jstap, so are you saying just use a single instance of Once per bar ? Does using multiple instances of Once per Bar cause slow down ?

      posted in Questions & Answers
      M
      Mantadiver
    • EA Speed best practices

      I would be interested on opinions as to which method is better to ensure a faster EA:-

      Which is faster ?

      a) A single "OncePerTick" followed by a long string of blocks to work through

      or break the blocks down and use multiple "Once per Tick" blocks ?

      I appreciate "it depends" but any insights as to best practice would be appreciated.

      Many thanks

      posted in Questions & Answers
      M
      Mantadiver
    • Number separator using commas

      I've searched the forum but unable to see a way to format numbers using commas as separators when adding to comments on screen.

      For example 34567 would display as 34,567

      Does anyone know if there is a built in function to achieve this or have a code snippet for such a function.

      Any help appreciated,

      Thank you

      posted in Questions & Answers
      M
      Mantadiver
    • RE: Comment Block - pseudo delete

      Thank you both for your input, @TipsyWisdom, tried your suggestion but didn't notice any change.

      @l-andorrĂ  the text blocks work well, it's just that I use a fair few and lining everything up / making changes takes time whereas the Comment block takes care of simple alignment and has the advantage of being manually moveable.

      My "solution" which is a cludge is as follows:-

      1. Make sure all variables used in the comment block are "string".
      2. Convert any numbers to string e.g Value / Text(code input) DoubleToString(AccountEquity())
      3. Create a variable to specify the font ie. Verdana
      4. Then to delete the comment text from screen I change the font variable to "Wingdings"
      5. Finally for each text field change Value / Text(code input) to CharToString(32)

      Wingdings charachter 32 is blank and this successfully removed the text from the screen.

      I then created a button to turn the comment block on / off and so far it works.

      I am not familiar enough with MQL to appreciate why a comment block cannot be deleted (yet?) but this workaround seems to work.

      posted in Bug Reports
      M
      Mantadiver
    • Comment Block - pseudo delete

      I still have not discovered a way to delete, ie completely remove a comment blcok from the chart.

      I can update values by feeding variables into the value fields.

      I am trying to pseudo turn comments off by inserting a "." and changing the text color to match the background, however although my color variable successfully sets the start text color it fails to update the color when the color variable is changed and comment vlock re-run.

      Is this a bug, intended or am I doing something wrong ?

      I have tried using both string and color variables to change the color.

      posted in Bug Reports
      M
      Mantadiver
    • RE: Block corruption ?

      Will try that, thank you

      posted in Bug Reports
      M
      Mantadiver
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 1 / 6