fxDreema

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

    Converting decimal points to whole points

    Questions & Answers
    2
    4
    761
    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.
    • M
      mustafaaydinol last edited by

      Is there a way to convert decimal points to whole points with a block?

      I'm trying to adjust the EA to close trades if (50SMA-Candle Close)<200.

      50SMA=1.32831 and Candle Close=1.32731

      50SMA-Candle Close=0.01000 and I want to convert this result to a whole number which would be 100.

      So 100<200 --> Close Trade

      Thanks 🙂

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

        Oh, this issue again. Tell me, how do you imagine this thing to happen in the builder? Now it's not impossible to do such things, but only with some custom functions that I don't recommend to be used.

        Anyway, you can always multiply some value by let's say 1000. The problem with this is that the EA then will work correctly only for certain symbols. But maybe you don't mind. Look at the description of "Condition" to see more about the "Adjust" field and you can also use "Formula" block for small calculations.

        1 Reply Last reply Reply Quote 0
        • M
          mustafaaydinol last edited by

          Thanks again and again 🙂

          However I think that is possible and I saw it in a few browser based ea builders...

          Let's say that 50EMA is working for most of the price action and I want EA to open position only if candle close is 500 pips above/below moving average.

          It would be a nice addition to fxdreema 🙂

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

            That conversion - to pips - is easily possible in this "Adjust" field. Just write something like +500pips, whete "pips" is a keyword and is then replaced by a function that converts 500 to the correct value, depending on the symbol

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

            Online Users

            A
            S
            K
            M
            R
            D
            S
            B

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors