fxDreema

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

    So, about custom code blocks and absolute values, suppose I want the difference between 2 lines, but just want the absolute value

    Questions & Answers
    2
    8
    620
    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.
    • L
      len 1 last edited by

      Re: How do I get absolute value of a number?

      How do I use the MQL Code Block to display the number I am seeking? For example I want the difference of Two moving averages and I have a value whether positive or negative and then I use the code Block, then what follows the code block? I ultimately want to display the absolute value on my screen but I am not sure how to put it into comment ugly

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @len 1 last edited by

        @len-1 Why should you use the custom code block? You can get that distance by using the standard 'formula' block and then visualize the result via variable on the 'comment (ugly)' block.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 1
        • L
          len 1 last edited by

          So, should I make boolean if I wanted to choose whether to multiply by -1 if negative and just +1 if positive? I wanted to compare candle stick ma's by comparing their absolute value distances, but I was thinking the custom code block may minimize the amounts of blocks I need to do the same thing

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @len 1 last edited by

            @len-1 I'm sure a custom code will always be more efficient, but I'm not a programmer so I cannot help there. You can use a 'check distance' block like this:

            01.png

            By selecting yes, the distance will be absolite and you will never need a +1/-1 factor.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            L 1 Reply Last reply Reply Quote 1
            • L
              len 1 last edited by

              As always, youre the best L'Andorra! This should help me with something. I am going to resume soon. Thanks

              1 Reply Last reply Reply Quote 1
              • l'andorrà
                l'andorrà last edited by

                You're welcome. 😉

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                1 Reply Last reply Reply Quote 0
                • L
                  len 1 @l'andorrà last edited by

                  @l-andorrà so then is this absolute distance in pips or ?....
                  For example, if I have a moving average that is at 86.795 and another at 8.830, is the distance .035 or is it 3.5 pips? or how will that absolute distance be registered?

                  1 Reply Last reply Reply Quote 0
                  • l'andorrà
                    l'andorrà last edited by

                    The absolute distance will be 77.965 pips no matter which one is above the other.

                    (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                    (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                    (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                    Online Users

                    J
                    T
                    J
                    B

                    17
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors