fxDreema

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

    Negative numbers

    Questions & Answers
    2
    3
    831
    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
      martin 1 last edited by

      Dear Coders,

      I am new in coding and have a lot of questions. Thank you for your help.

      Here the newxt question:

      How can I ,ake a negative numer to a positiv number.

      For example: value= -3
      I need this value = +3

      Best regards,
      Martin

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by josecortesllobat

        Hi martin 1

        I guess that you use the "Search" tool of the forum to find interesting post that probably will answer your questions. For example, here you have a post explaining the "Adjust" field that is available in almost all the blocks

        https://fxdreema.com/forum/topic/4247/question-regarding-the-adjust-field

        0_1545061863082_353503f6-6f41-4850-968a-d5c12fd2cc77-image.png

        In addition to this, the adjust field has a "?" character. When you click over it, you will get some examples of what you can do with this field. For what you are requesting, you just write "*(-1)" without quotes in that field to get the positive number you need. In the example above, the ajust field calculates the 2% of the value of the constant "ProfitTargetM1_Sells" and the result is stored in the variable called "BEOffsetPips".

        You also can use the "Formula" block that allows to code from the basis of the math functions to more complex ones.

        0_1545062056461_788095a5-c926-43cc-bd16-ac0cf785ee48-image.png

        1 Reply Last reply Reply Quote 1
        • M
          martin 1 last edited by

          Hello Jose,

          some solutions are too simple to see it at the first view!

          Thank you very much!!!! I am using FXDreema the 2nd day now...... and I really like it!

          Best regards,
          Martin

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

          Online Users

          V
          O
          J
          B

          21
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors