fxDreema

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

    How to use "Custom MQL code"?

    Questions & Answers
    3
    4
    462
    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
      Prot82 last edited by

      Hi Guys,

      I have 2 constants "Grid_Size" and "Lots" and also 2 variables "Variable_Lots" and "Spread".

      I would like to do calculation like in attached picture below:

      Screenshot 2023-05-11 233334.jpg

      So, I would like to put this calculation in my variable "Variable_Lots".

      Can someone tell me is this code correct? Should I add some prefixes like data type or something?

      Thanks in advanced,
      Mihajlo

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

        Should be fine but need to add ; at the end, put all in a comment so you can see what is happening.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • D
          dee108 last edited by

          does this work?

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @dee108 last edited by

            @dee108 You'll have to try it.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

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

            Online Users

            D
            A
            M
            K
            M
            B

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors