fxDreema

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

    Money Managment Trigger/Switch

    Questions & Answers
    3
    5
    1235
    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.
    • P
      Pyro last edited by

      Hello World 😃

      I'm at my wits' end. ( sry for my english) 🙂

      i wrote an EA which works with "Freeze of % of Balance" it is nice but i want to make a trigger where i can handle it in Metatrader.
      in Example: on Init : Condition (if boolean is true -> Fixed volume; Else if boolean is false -> Freeze % of Balance

      but i dont know how i can do it.

      anyway. i want take no less than 0.5 lotsize

      hope you understand me 😄 >.<

      mfg Pyro

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

        I am using something that it is close to what you need. In my case, I am working in "OnTick" section but you can try it in the "OnInit" section.

        0_1529593378123_8a000ca0-660d-4b70-8f3a-28df3a213e14-image.png

        0_1529593866929_684f4301-f845-447f-b54b-fd1a9d7f605f-image.png

        1 Reply Last reply Reply Quote 0
        • R
          richard96816 last edited by

          In the Buy Now and Sell Now blocks there is a 'Volume upper limit' box which I've not seen used in examples.
          I usually fill that with a constant: Max_Lot_Size and set it to .01 initially -- for testing. Put a larger number in there when you're ready to go live.
          A simple override to money management.

          P 1 Reply Last reply Reply Quote 0
          • P
            Pyro last edited by

            Hi and thx. It works fine.
            I set my Switch direct to the beginning and it works.

            1 Reply Last reply Reply Quote 0
            • P
              Pyro @richard96816 last edited by

              @richard96816 hehe now i understand your example. a very good idea. wonderful. this is much better. 🙂

              Thanks you 2 🙂

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

              Online Users

              M
              R

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors