fxDreema

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

    Having Absolut Math inserted into Adjust field

    Questions & Answers
    2
    3
    1097
    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.
    • R
      robotdeforex last edited by

      Hello @FXDREEMA

      could you please add the possibility to put "Abs" or "AbsMath" into the Adjust field, so any negative value gets automatically converted into a positive value?

      That would save us from putting a block of custom code in between, which is always more clean, than using custom code blocks.

      If I was not clear with my request, willing to clarify anytime.

      Thanks in advance.

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

        I actually did that long time ago, but maybe I never wrote about it: Try this: https://fxdreema.com/shared/cjhGByvF

        In "Adjust" you have this:

        = MathAbs($)
        

        Where = means that the final value will equal what is after the = symbol, it's not like +, -, * or /. And $ is the value itself. MathAbs() is of course MQL4 function.

        1 Reply Last reply Reply Quote 1
        • R
          robotdeforex last edited by

          Perfect! Good to know. Will test it next week and get back to you, once it is all clear.

          Thanks!

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

          Online Users

          C
          S
          S
          P
          C
          E

          12
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors