fxDreema

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

    Posts made by MetaTrader

    • Custom Block Help -> TypeError : Cannot read property 'trim' of undefined

      When I click the question mark on custom blocks (in online version) I get this

      TypeError : Cannot read property 'trim' of undefined

      What should I do? Do you have an explanation on that?

      posted in Questions & Answers
      M
      MetaTrader
    • Lost all my projects when I tried to use this block

      0_1515412934984_5a107291-01cc-48be-9879-39ca28f835d2-grafik.png

      I putted this block in my EA and I got an error today in the morning. Now all my projects has gone away. The two you can see in my account are created later.

      Not that hard for me because I didn't used Online version seriously so far but I am going to...

      posted in Bug Reports
      M
      MetaTrader
    • Current Block number in Custom Blocks

      I am on switching from offline to online version and running in trouble with my custom blocks:

      There is a global variable
      int aLoopIndex[];

      and here the source of my loop block which worked in Desktop version:

      int This_Block_Id = FXD_CURRENT_FUNCTION_ID;

      if (ArraySize(aLoopIndex) < (This_Block_Id +1)) {
      ArrayResize(aLoopIndex,(This_Block_Id + 1));
      }

      for (int i = 0; i < Cycles; i++) {
      aLoopIndex[This_Block_Id] = i;
      ~next~
      }
      aLoopIndex[This_Block_Id] = -1;
      ~inext~


      Now in online Version FXD_CURRENT_FUNCTION_ID is not working anymore.

      What is the right variable to use instead?

      posted in Questions & Answers
      M
      MetaTrader
    • Loop through arrays with custom block

      Problem 1: I need to loop through an array of Symbols and execute some code blocks for each iteration knowing the number of iteration.
      Problem 2: I need to nest those loops

      Solution 1: A custom block which sets a global LoopIndex
      Solution 2: Setting this global LoopIndex as an array with the block numbert as identifier.

      0_1512686256167_1acef93b-6169-457d-a6e8-c981dffd1bd7-grafik.png

      Do not forget the global variable at the bottom of my image
      Now you can use the new block several times....

      As input for the block (cycles) use the ArraySize of the array you want to loop through.
      To know the current iteration use aLoopIndex[BlockNumber] where BlockNumber is the id of the loop block. Sample is looping through aFoo and Alerting the current iteration and the current Array Element:

      0_1512686915818_a71596b9-99bd-46e0-8be4-e05146b04310-grafik.png

      posted in Tutorials by Users
      M
      MetaTrader
    • RE: Is it possible to have a dropdown list for inputs?

      Put the changes in an mqh file and in any custom block you can include the mqh

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How to Fix Critical Runtime Error 503 in Ontick Function

      But the function itself works and this "zero divide" thing is correct. I mean, it is a fatal error, but this error basically says that there is some problem with the symbol that s

      I had an understanding problem in custom blocks.
      Setting variables in the Variables List on white button (on Block entry) and then using this variable as input tricked me, because the input is taken before the variable is set by white button. Hopefully this is understandable. Now I set CurrentSymbol in the pass block and it works

      0_1512685687345_bcc77850-c861-4621-bbb2-b49b67954632-grafik.png

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How to Fix Critical Runtime Error 503 in Ontick Function

      I found the bug for me:

      I was looping through the allowed Symbols in my EA and when i have a non existing Symbol I get this strange error at a place where I wouldn't expect it.

      Some Alerts in the MT4 source Code are always helpful for debugging. 😉

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How to Fix Critical Runtime Error 503 in Ontick Function

      @eduardo55

      I have same issue in double PipValue function when I use the block
      No pending order exists

      posted in Questions & Answers
      M
      MetaTrader
    • RE: how to put pasword for my ea?

      i can not find the PM function anymore

      we have a licensing solution under developement for ea's with online check and timelimited and accountlimited solutions

      posted in Questions & Answers
      M
      MetaTrader
    • RE: New version of offline fxDreema?

      Hi Radoslav,

      the problem for the desktop loving guys is simply explained: Your FXDREEMA is simply the best

      And yes I understand your complains. I was leading a lot of IT Projects in the past and I am a web devloper like you. For the database there is a simple solution which is useful for the web and desktop as well:

      At first create a table lets call it migrations.
      Every time you have to modify the database you write a migration script (this is what you have to do anyway) then you give this script a name and a number. Name for readability only.

      On startup you make a lookup in the migration table and in the ini. lets assume in the ini the most recent migration is 42 and the lokup in the DB its 38, then your software hast to run the scripts 39, 40, 41 and 42.

      This way you will never have to deal with any old DB Versions.

      Depending on your needs you can write the "anti" migration for posible needed rollbacks. That requires good planning of course because deleted columns you can never rollback.

      Writing this kind of versioning is helpfull if you find out that an update needs an rollback

      posted in Bug Reports
      M
      MetaTrader
    • RE: New version of offline fxDreema?

      Did you see my link to http://electron.atom.io ? Its a tool to create desktop Versions from nodeJs, JS, HTML and css
      I was told about that from a friend who says its really easy to use compared with the php variant you used in the past for the old desktop.

      posted in Bug Reports
      M
      MetaTrader
    • RE: 3 month subscription not registered

      You are solving problems with the desktop version sounds great 😉

      posted in Questions & Answers
      M
      MetaTrader
    • New version of offline fxDreema?

      Maybe the unbeloved old desktop version can be easy replaced by a more recent offline version of the current online version using this tool to create a desktop app from existing code:
      http://electron.atom.io/

      posted in Bug Reports
      M
      MetaTrader
    • Arrays...

      I also often work with arrays and I always encapsulate them in a function with a static array
      Its a way of pseudo OOP in MQL4

      // usage
      // index and value both empty gives back the arraysize on int & index
      // index empty value set is array push
      // index set value empty is get value
      // index set value set is set value
      double myArray(int &index = EMPTY_VALUE, double value = EMPTY_VALUE){
      static double arr[];
      // pseudo code from here
      if (index is empty) resize array by +1
      if (index out of array) resize array
      if (value is Empty) return value of arr[index]
      else set arr[index] to value and return value
      }

      posted in Questions & Answers
      M
      MetaTrader
    • RE: German speaking?

      @Emit Hi Emit

      ich könnte das tun. Ich / meine Firma machen das professionell.

      Gruß
      Norbert
      CEO bei Brainfinder LTD
      www.brainfinder.eu

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How can I remove Comments

      I understand but is there a way to remove a comment?

      Imagine there are three status
      No Trade waiting for right conditions
      Long Trade
      Short Trade

      Lets say finishing a longtrade I want to remove its comment and write what ever the status is now

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How can I remove Comments

      I have changed the Title to be same but that is not helping

      posted in Questions & Answers
      M
      MetaTrader
    • RE: How to create custom block for a Between checker

      Jepp i got this and use it often but there is a way to create custom blocks.

      On the uper right side I can define the inputs for the block but how define the red and yellow output?

      Is there any description how to do this?

      posted in Bug Reports
      M
      MetaTrader
    • RE: How can I remove Comments

      http://www.4nn.de/screenshots/shot1.jpg

      posted in Questions & Answers
      M
      MetaTrader
    • RE: Vote for a new desktop version!

      Maybe there is something similiar to your NodeJs solution like that tool you used for "php to executable"

      posted in General Discussions
      M
      MetaTrader
    • 1
    • 2
    • 3
    • 4
    • 2 / 4