fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. afgmarkets
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by afgmarkets

    • afgmarkets

      Time as a STRING variable - wrong result
      Questions & Answers • • afgmarkets

      4
      0
      Votes
      4
      Posts
      763
      Views

      afgmarkets

      Thank you very much guys for your help. I solved it with this new point of view!

    • afgmarkets

      Minimum Volume Info
      Questions & Answers • • afgmarkets

      2
      0
      Votes
      2
      Posts
      490
      Views

      roar

      @afgmarkets this bunch of code returns the minimum volume:
      SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN)
      https://www.mql5.com/en/docs/marketinformation/symbolinfodouble
      https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_double
      However the partial closing bug is not just about minimum volume, but also lack of rounding (or flooring) the number.
      You can do the % calculation manually and then just put the code in Custom input field instead of the percent field.

      This code calculates 33% of your position and then floors the value to nearest hundredth:
      MathFloor(PositionGetDouble(POSITION_VOLUME)*0.33 *100)/100

    • afgmarkets

      Market is closed (10018)
      Questions & Answers • • afgmarkets

      6
      0
      Votes
      6
      Posts
      1908
      Views

      M

      Hi,

      I have the same problem and is not working with just close+open MT5. Anybody found any other solution?

      Thank you,

    • afgmarkets

      To take drawn objects by the EA as a condition.
      Questions & Answers • • afgmarkets

      2
      0
      Votes
      2
      Posts
      531
      Views

      J

      Take a look at this post

      https://fxdreema.com/forum/topic/4867/select-object-by-name-several-objects

    • 1 / 1