fxDreema

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

    Formula Results & Project Variables

    Questions & Answers
    2
    3
    842
    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.
    • T
      Trader3487 last edited by

      How do I store formula result in project variable and how do I recall the variable in the right operand of condition blocks 14 & 21 as in the following example: http://fxdreema.com/shared/1UqxtLlid

      Basically, I want to be able to use formula results with multiple blocks without having to physically connect the formula block with the other block.

      Thanks 🙂

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

        Upper_Part and Lower_Part are defined as global variables in MQL4 and they can be accessed from everywhere. You can use Value (numeric) and write variable name there.

        Currently when you have Formula blocks, even if they are not connected, their "Result" variables goes into the final file, but I think this can be considered as bug and I can "fix" it some day... who knows.

        Otherwise you can use "Variables" and "Modify Variables" block (or even Custom MQL4 code)... or custom block where it's easy to write some formula using known things 🙂

        1 Reply Last reply Reply Quote 0
        • T
          Trader3487 last edited by

          great, I'll give that a shot 🙂

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

          Online Users

          A
          M
          E
          A
          E
          N
          S
          K

          13
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors