fxDreema

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

    Splitting up grid orders so that the EA will respect the maximum lot size allowed by broker AND a virtual grid question

    Questions & Answers
    2
    2
    906
    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.
    • S
      safv6 last edited by

      Hi Radoslav,

      I am trying to make a grid-based EA, using the "pending orders in grid" block, in which "(every next) Volume Size" is doubled using the Gradation Setting. Some brokers though only allow the volume size per trade to be conciderably small (like 10.0 lots). Can you give me any advice on how I can make the EA respect the broker-sided volume limitation and make the EA use multiple trades instead when the limit is gonna be reached?
      For example: When a pending order in the grid has a lot size of 8.00 and the next grid level should be traded with doubled the volume (16 lots), can you think of a way to make the EA use 2 trades to get to that 16 lots instead of 1 trade? Also for the next grid level the volume size should be 32 lots. In this case there would be at least 4 trades needed to get to 32 lots if we want to respect that maximum lot limitation of 10.

      I made a complex construction using multiple formula blocks to achieve this, but it got real messy and inefficient, so any advice would be much appreciated!
      I hope the above makes sense. I didn't know how else to explain it 😐

      Also, (as if I didn't take enough of your time already with the question above), I would really like to make the whole grid invisible somehow and use market orders instead of pending orders while still having the ability to use the handy "Gradation Settings" for every next order and without making a big mess with a huge formula-chain. Any advice on this would be really really appreciated as well!

      Thanks again for your time,
      Best regards,

      Saf

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

        Maximum lot for a single order, this is something new and obviously very very stupid 😮

        There is one momeny management option - Custom sequence. But I don't know what to do with this max-lot thing. I guess that SYMBOL_VOLUME_MAX is what we are talking about

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

        Online Users

        M
        A
        E

        16
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors