fxDreema

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

    absolute value variable

    Questions & Answers
    3
    6
    695
    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.
    • khalids222
      khalids222 last edited by

      I'm trying to put the absolute value of a variable so that the signals are as follows.
      1st Signal/Trade: Sell = (initial/new 0.01)= (Previous BUYs (0) - Previous SELLs (0) +1 ) = 0.01
      2nd Signal/Trade: Buy = ( Previous SELLs (0.01) - Previous BUYs (0) + 1) = 0.02
      3rd Signal/Trade: Buy= ( Previous SELLs (0.01) - Previous BUYs (0.02) +1) = 0.02
      4th Signal/Trade: Sell = (Previous BUYs(0.04) - Previous SELLs (0.01) +1) = 0.04
      5th Signal/Trade: Sell = (Previous BUYs( 0.04) - Previous SELLs ( 0.05) +1) = 0.02
      6th Signal/Trade: Buy= ( Previous SELLs (0.7) - Previous BUYs (0.04) +1) =0.04
      7th Signal/Trade: Sell= (Previous BUYs (0.08) - Previous SELLs (0.07) +1) = 0.02

      But it did not work - how do I put the variables to match the required size
      https://fxdreema.com/shared/zQEk0b8yd

      This is the required equation
      MathAbs(buylots-selllots)+lots

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

        @khalids222 said in absolute value variable:

        MathAbs(buylots-selllots)+lots

        https://fxdreema.com/shared/qorMKTySb

        Here I tried to place the variable, but unfortunately the following sizes were shown in the image.
        I don't know what the problem
        .
        0_1578498057268_999.jpg
        Sizes differ from reality

        roar 1 Reply Last reply Reply Quote 0
        • roar
          roar @khalids222 last edited by

          @khalids222
          I think the adjust here should be *lots
          0_1578499105025_78e57fc9-d9f2-4112-ae2c-da79bb7b915e-image.png

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @roar last edited by trader.philipps

            @roar Yepp. I solved it that way

            0_1578499389435_e09fb31e-546a-48bd-9302-5e3f548fb05a-image.png

            https://fxdreema.com/shared/3UxuF33Yd

            I like to share my knowledge, but expect the others to contribute as well.

            khalids222 2 Replies Last reply Reply Quote 1
            • khalids222
              khalids222 @trader.philipps last edited by

              @trader-philipps @roar Thank you very much: I will try it,

              1 Reply Last reply Reply Quote 0
              • khalids222
                khalids222 @trader.philipps last edited by

                @trader-philipps This is exactly required - thanks to everyone and especially @trader-philipps Thank you for your effort - you are always creative

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

                Online Users

                A
                A
                X
                K
                F

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors