fxDreema

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

    Zero Divide Error With Brokers Using 1 Lot Minimum

    Questions & Answers
    2
    2
    115
    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.
    • B
      btrader last edited by

      Hi,

      I have an EA which I built to trade stock indices and it works fine on all my normal brokers I use but there is one broker who forces you to use 1 lot increments and the EA just gives a 0 divide error. I've tested the EA on their FX pairs (allowing 0.01s) and it works fine so have narrowed it down to the fact they only allow 1.00 lots on the indices.

      The error is thrown up in this line in the code generated by FXDreema:

      size=MathRound(size/LotStep)*LotStep;

      I assume thats to do with the lotstep but having searched through the forum for this Zero Divide error I can't find any solution that seems to work. Have a tried a few.

      The EA doesn't use a stop loss and I even have it set to trade fixed lots and even when I set the lot size to 1 it still throws up the error.

      Anyone have any ideas on a fix?

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

        Can you please share the link to the project?

        (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.

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

        Online Users

        J
        A
        Z
        T
        B
        A

        16
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors