fxDreema

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

    Adjust Spread Value

    Questions & Answers
    3
    4
    647
    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.
    • F
      fabiobioware last edited by

      Hello friends, how can I do to adjust the spread value to a whole number?
      I created this project but it doesn't display the value correctly.
      The value is being displayed as 3.000_1588777203598_spread1.PNG
      I want it to be displayed with just the number 3

      Reasons:

      1. Get the entire value to create a condition for my EA not to open orders if the size of the Spread is above a value.

      2. Activate the trailling stop with a calculation of Pips above the Spread value, for example:
        Spread value (5) + a value that I determine (20) = 25, when the price is 25 pips away from where the trade was opened pull the stop loss to 15 pips.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Probably this will help:

        https://fxdreema.com/forum/topic/6571/round-results/3

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        F 1 Reply Last reply Reply Quote 0
        • F
          fabiobioware @l'andorrà last edited by

          @l-andorrà but in this case it will remain at 3.00 and not just number 3 alone without (.00)

          Do you have any other solution?

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

            Double datatype has decimal, while int only has whole numbers (integers).
            Change your variable datatype to int
            0_1588796992245_4a19f47e-43f3-4ba9-bb84-ff55ac7fcb80-image.png
            Note that there will now be rounding errors if you do any math with the variable. Maybe should create a dedicated int variable just for the comment display, and use double type variables elsewhere.

            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

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

            Online Users

            H
            H
            M
            S
            S
            L
            E
            M

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors