fxDreema

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

    Two compiler warnings in Trailing Block

    Bug Reports
    3
    4
    1310
    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.
    • M
      MetaTrader last edited by

      I get two warnings when i add a trailing block.

      "expression not boolean AW_tpl_EA.mq4 2280 37"

      Its not visible when compiling with fxdreema but if I compile it directly in MT4:

      in the second line of those

      bool go_modify=false;
      if (polarity=="buy" && TrailWhat*(askbid-avg_price>toDigits(t_start)))
      {
      if ((TrailWhat*(askbid-group_stop)>=toDigits(t_stop+t_step)) || group_stop==0 || resetSL==true)
      {
      group_stop=askbid-toDigits(t_stop)*TrailWhat;
      go_modify=true;
      }
      }

      and 8 lines later the same

      My settings are

      Group#
      2
      buys and sells
      TakeProfit
      fixed pips
      4
      Pips
      2
      Yes...
      Clear ...
      DeepPink

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

        Warnings are not scary. The block itself does not produce warnings, they are probably because you use some variable with. The important thing is to work properly 🙂

        1 Reply Last reply Reply Quote 0
        • P
          Processman last edited by

          Yeah , i have 1 warning with "Modify variables" , but all works well .
          One thing worries me , I cant load my online project(.mq4) to local version , win 7 and 10 ? (allmost 200 blocks).
          Where is gone "save xml" in online version ? . OK , i read some Dreema updates ... But my projekt looks
          better day by day , and i dont wanna loose it , so i hope at u have some backup for online projects ?
          OK , i dont wanna complain for that , there is more important things to do . like win 10 , etc.

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

            Copy of the project data is automatically embedded at the end of all .mq4/.mq5 files that you create (it is compressed, that's why it looks weird), so you have the actual code + fxDreema project data in the same file. Imagine that those .xml files are now .mq4 and .mq5 files.

            I change things sometimes and I even change the way that project data looks like. Old project data eventually becomes in "wrong" format for the new version of fxDreema, but I have functions that convert it to the newest version. Now the local version generates old version of that data and the web version can work with it, but the opposite is not true. If you try to import .mq4 file from the web version into the local versions, it will fail, because the local version is not aware of the new rules.

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

            Online Users

            P
            C
            J
            V
            G
            E
            H
            C
            D

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors