fxDreema

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

    Lot size based on a variable value?

    Questions & Answers
    4
    7
    2015
    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.
    • J
      Jennifer last edited by

      hello
      i am trying to use the value stored in variable as a lot size/order size.
      will that be possible ?
      0_1550147461657_SS.png

      all i want to do is to use a different lot size based on some calculations , the lot size needs to be keep changing thats why i am using a variable to store the result of the calculations in it and then use that variable as a lot size .

      ===>Jennifer Syn<===

      roar 1 Reply Last reply Reply Quote 0
      • J
        Jennifer last edited by

        someone?
        anyone??

        ===>Jennifer Syn<===

        1 Reply Last reply Reply Quote 0
        • H
          Hadees last edited by

          I do it by putting it in this one http://icecream.me/b77103c999a8ffcbf1de8e09722895e0

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

            @jennifer
            Yes, this works, it can be either "fixed value" or "custom value" to my experience..
            Remember to use visual backtest before trading real money

            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

            J 1 Reply Last reply Reply Quote 0
            • J
              Jennifer @Hadees last edited by

              @hadees
              Thanks hadees really appreciate

              ===>Jennifer Syn<===

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

                @roar
                Of course I will test it to the fullest before putting in some real money,
                Actually I thought it's not possible that's why I posted it here, I did try that but it didn't worked so now I am gonna try hadees's method
                Let see what happens

                ===>Jennifer Syn<===

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

                  It should be possible. In any case, if something doesn't happen as expected, look at the logs for errors. Also note that the block will take the input value and turn it into the nearest possible value, because you can't open any lot size, there is minimum, maximum and lot step.

                  The type of the variable should be "double".

                  But I see your projects and I can see that now you are setting this value in the Init section... I don't think it can be very dynamic that way.

                  Are you woman?

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

                  Online Users

                  E
                  H

                  9
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors