fxDreema

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

    Condition Check and Formula Calculations using Terminal Variables

    Questions & Answers
    2
    3
    1808
    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.
    • H
      hamedonline last edited by

      Hi,
      I have faced a few problems so far regarding terminal variables and using them to check conditions or calculate formulas.
      I'd be glad if you could shed some light on these matters. Apologies first, for the long post ahead 😉

      Please note that shared copies are not strategies, just simple conditions or order placement commands for demonstration purposes only.

      1. Checking condition using a Boolean terminal variable:
        https://fxdreema.com/shared/3NvSOAKEd
        I use terminal variables (as inputs) for condition check (and changing lot size), as attached.
        http://i58.tinypic.com/2wovl0h.png
        There is no difference if another variable of an integer type is used, no orders are placed. Would you please kindly check why no order executes?

      2. Using terminal variable to calculate lot volume size:
        This formula actually uses account balance to generate proper lot size:
        loSize = AccountBalance * 0.000025
        So, if account balance goes up or down, lots size changes respectfully, by a custom factor.
        https://fxdreema.com/shared/tOeTGVRfb
        http://i58.tinypic.com/27zgas1.png
        http://i58.tinypic.com/23wv1bl.png
        Just like the previous example, no order happens.

      3. Formulas
        I tend to see Formula block as the heart of this fabulous EA builder, especially when trades are based on custom complex formulas, this block plays an enormous rule.
        Formula block is currently limited to only two operands which makes it so hard to generate complex formulas.
        I know, it might be possible and even easier coding the formula by adding custom MQL code, but still somehow it doesn't feel right. I wonder if you have plans to take this block one step further.

      4. Since I mainly use Desktop version, I noticed there is no MQL prefix field while defining variables in web based version of fxDreema. Am I wrong or is it placed somewhere else?

      5. I tried to import Desktop generated MQL to web app (and vice versa) but an error occurred. Are these two apps (web version and Desktop version) incompatible?

      I'm sorry this got too long, but I believe some other users may have the same questions as well. I thought it would be better to share them publicly in detail and ask for your guidance.

      Many many thanks in advance Radoslav, you are an exceptional outstanding talented guy, with a great product 🙂

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

        Terminal Variables are NOT those Constants/Variables. Terminal Variables for EAs are like cookies (in browsers), but you don't need to use those at all.

        This is what you can do instead: http://prntscr.com/8ps91b

        1 Reply Last reply Reply Quote 0
        • H
          hamedonline last edited by

          Oh thank you, my bad, I understand now. Changed as you suggested and it works 🙂
          I know you could be terribly busy, but would be glad if you also answered highlighted 3 to 5 quotes.

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

          Online Users

          S
          C
          T
          G
          T
          J
          G
          C

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors