fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Formula Result

    Bug Reports
    4
    5
    1085
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      keyquest last edited by

      Formula Result is gone as a Condition option. All my projects with formulas are affected.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Fixed. It's now Value -> Numeric. There will be no "Formula" selection in "Condition" anymore, because the block "Formula" will write it's values in a regular Variables that must be manually defined.

        The first reason for this is because it's easier for me to have it in the code, it's much simpler than before. And the orher reason is because people tend to use Formula results in very bad way - when they create a Formula block, they just leave it's result name how it is, and I have seen many projects with many Formula blocks, each one of them creating it's own Formula result. I can't understand how such projects work, I can't imagine how people work with them. So now each Variable must be manually written, which means that the person will take a little bit more care of the way it is named, so later when he opens his project he will immediately know what that Variable means and for what it is used.

        I still don't like "Formula" block because it is too simple, but I'm not sure how to make it better, so if you (or anyone) have some idea, I'm here to listen 🙂 My goal is to make this block able to do multiple calculations, not only one.

        1 Reply Last reply Reply Quote 0
        • I
          izenati last edited by

          Dear fxDreema,
          I have a question, just to make sure i fully understand the formula.
          If I want to add +1 to a result formula whenever a certain condition is fullfilled , do I just connect the condition (Orange) to the Formula (White) ?
          And can I make 2 different results formulas and later on compare between the two?
          I will highly appreciate an answer and additional guidence.
          Thank you very much.
          Izik

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            What "Formula" block does is simple mathematical operation using two values (on the left and on the right) and then it writes the result in some Variable (the one you put in "Put the result into this Variable). After that you have new value in this Variable.

            Variables can also be incremented with "Modify Variables", like this http://prntscr.com/9egdkr or with "Custom MQL4 code".

            1 Reply Last reply Reply Quote 0
            • M
              MetaTrader last edited by

              Would be great to have a free formula block where we can write some mql4 code

              area for some lines of free code (hints apprecheated for the existing variables / constants / MQL4 keywords)
              last line must be an assignment like
              [ResultVariable = ] some free code.


              the User must define the Name of the ResultVariable

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              D

              9
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors